Post back

M

Manan

hello all,

I have a simple question. on my .aspx page I have bunch of
textbox, and dropdowns. One of the dropdown2 has postback
= true. When the user selects an item, the brower will
post back to the server. My problem is I only wants the
browser will post back to the server if (textbox1,
textbox2, and dropdown1) are not null values. I have a
javascript that checks for the null value for textbox1,
textbox2, and dropdown1. how can i do in client-side,
postback occurs only if certain fields are not blank.
Please let me know if u have any suggestion or any
examples that help..



Thanks
manan
 
S

Swanand Mokashi

use validation controls and set the CausesValidation to true for the
control that has AutoPostBack.
Validate in the validation control what you want to be not null.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top