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 / March 2008

Tip: Looking for answers? Try searching our database.

Validation Breaks Postback

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
william.oram@gmail.com - 05 Mar 2008 19:46 GMT
I have a few controls on a basic form I'm working on that make use of
postback: for example, click a checkbox to make Panel1 and its
subcontrols visible.

I've since added clientside and serverside validation and suddenly
postback is broken. Only if 'Submit' is clicked does the form update
with changes that should have occured automatically.

Page_Load() has nothing involving IsPostBack, and all applicable
controls are set to AutoPostBack. These controls reacted appropriately
before I meddled in validation, so I have no idea what else could be
breaking it. I'd love to supply code to back myself up on this, but
I'm utterly lost.

Thanks!
David Wier - 05 Mar 2008 21:19 GMT
I'm not exactly sure of your situation - - but for any controls that you
don't want to cause validation - try checking the 'CausesValidation'
property for that control, and make the setting appropriately

David Wier
http://aspnet101.com
http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with no
bloated markup

>I have a few controls on a basic form I'm working on that make use of
> postback: for example, click a checkbox to make Panel1 and its
[quoted text clipped - 11 lines]
>
> Thanks!
william.oram@gmail.com - 05 Mar 2008 21:51 GMT
The checkbox enabling a Panel is already set to CausesValidation=true,
as are like controls. Fields that don't interact are set to false. The
submit button is set to false, but Page.Validate() occurs in the
codebehind.

> I'm not exactly sure of your situation - - but for any controls that you
> don't want to cause validation - try checking the 'CausesValidation'
[quoted text clipped - 22 lines]
>
> > Thanks!

Rate this thread:







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.