473,509 Members | 2,880 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Validation Breaks Postback

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!
Mar 5 '08 #1
2 1578
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
<wi**********@gmail.comwrote in message
news:13**********************************@e23g2000 prf.googlegroups.com...
>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!

Mar 5 '08 #2
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.

On Mar 5, 3:19 pm, "David Wier" <d...@dw.comwrote:
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 Wierhttp://aspnet101.comhttp://iWritePro.com- One click PDF, convert .doc/.rtf/.txt to HTML with no
bloated markup

<william.o...@gmail.comwrote in message

news:13**********************************@e23g2000 prf.googlegroups.com...
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!
Mar 5 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2590
by: Tim Meagher | last post by:
I am trying to use both validation controls and to add submit button attributes, but when I add the button attributes, the javascript fpr the validation controls is no longer created for the page. ...
4
4208
by: AIM48 | last post by:
Hi. We have a framework that we work with for our project. So far we have had very good success – basically the frame work wraps many day to day tasks so that they are all included in the...
5
2403
by: M | last post by:
Hi, it's possible to append a custom action to a client-side verification of a validation control ? I have a validator summary control that shows (automatically) a message box if the validation...
9
3165
by: Bill Long | last post by:
I have a control that simply displays a list of links. Following one of the links doesn't post back or redirect to another page, it simply hides the current panel and shows the one you selected......
0
1696
by: dhurwitz | last post by:
Hi, In my ASP.NET 2.0 web app, I have a user control, ucBinEdges, with several text boxes. The user control has several validation controls validating the Text of these text boxes -...
3
2745
by: teo | last post by:
Mozilla error on postback and validation ----------- A Button causes a Listbox to desappear. If no item has been selected on the Listbox, all is OK. If one or more items are selected,
0
1070
by: eurorscg | last post by:
Hi, i have this dropdownlist that breaks xhtml w3c validation.because it generates a select tag with a javascript property. this only happens when autopostback is set to true. so the the...
6
1682
by: spamguy | last post by:
Before I added validation features, I had a few controls that made use of postback: for example, click a checkbox to make Panel1 and subcontrols visible. I've since added clientside and serverside...
5
2615
by: da | last post by:
I've inherited an ASP.net 2.0 (VB.net) application that uses a lot of GridViews and DetailsViews. I've ran into an odd issue with validation. We've added some validators to the INSERT template...
0
7237
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7137
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7347
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7416
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7073
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5062
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3218
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1571
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
779
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.