24
rated 0 times
[
25]
[
1]
/ answers: 1 / hits: 47785
/ 11 Years ago, tue, july 23, 2013, 12:00:00
I am using ASP.NET and would like to do the following on client side because I do not want the page to reload (do not want postback). I would like to check for user input with following conditions:
- There are 2 radiobuttons and 2 textboxes and 1 button. Something like this:
- User must tick the radiobutton in order to activate the textbox (textboxes by default is disabled)
- If user tick radiobutton 1, textbox1 will be activated and textbox2 will be empty and disabled, if user press the button and textbox1 is empty message1 will activate.
- Same goes to the second radiobutton and textbox2.
Edit
I noticed that my button is in <asp:button>
and not <input type=submit>
therefore it will run my code behind to valdiate at server. Correct me if I am wrong. So how do I make my <asp:button>
to validate user input without have to pass to server?
More From » asp.net