Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2008

Tip: Looking for answers? Try searching our database.

Required field and canceling out of a page.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mufasa - 13 Feb 2008 13:37 GMT
I have a page with required fields but also want a cancel button so the user
can stop doing what they are doing. Problem is, if I use a required field
validator and they then click cancel, it says the fields are required.

Any way around that other than writing the required code myself?

TIA - Jeff.
bruce barker - 13 Feb 2008 16:56 GMT
on the cancel button, set CausesValidation to false.

-- bruce (sqlwork.com)

> I have a page with required fields but also want a cancel button so the user
> can stop doing what they are doing. Problem is, if I use a required field
[quoted text clipped - 3 lines]
>
> TIA - Jeff.
Mufasa - 13 Feb 2008 18:54 GMT
Thanks everybody. That worked great.

> on the cancel button, set CausesValidation to false.
>
[quoted text clipped - 8 lines]
>>
>> TIA - Jeff.
Misbah Arefin - 13 Feb 2008 17:04 GMT
for the cancel button set CausesValidation to false

--
Misbah Arefin

> I have a page with required fields but also want a cancel button so the
> user can stop doing what they are doing. Problem is, if I use a required
[quoted text clipped - 4 lines]
>
> TIA - Jeff.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.