input validation
-
Hi all, I am still new to web base programming. I have a redio button list and I am currently setting autopostback to true. But it blink the page, when change optins, I don't want the trip to server when I am not doing anything with the server. I wanted to use javascript to do the work for me. Since I have never used it before having very dificult to use it. Lets Say Yes and No two optins. if user slect No it should do something and same for Yes option. please help.
-
Hi all, I am still new to web base programming. I have a redio button list and I am currently setting autopostback to true. But it blink the page, when change optins, I don't want the trip to server when I am not doing anything with the server. I wanted to use javascript to do the work for me. Since I have never used it before having very dificult to use it. Lets Say Yes and No two optins. if user slect No it should do something and same for Yes option. please help.
you would set autopostback to false. that stops the server trip. Put your "do something" code as follows
protected void RadioButtonList1_SelectedIndexChanged(object sender, EventArgs e)
{
//do something here
}Programming is a race between programmers trying to build bigger and better idiot proof programs, and the universe trying to build bigger and better idiots, so far... the universe is winning.
-
you would set autopostback to false. that stops the server trip. Put your "do something" code as follows
protected void RadioButtonList1_SelectedIndexChanged(object sender, EventArgs e)
{
//do something here
}Programming is a race between programmers trying to build bigger and better idiot proof programs, and the universe trying to build bigger and better idiots, so far... the universe is winning.
-
I alredy have something like this. but when I change my selection the page blink which I am trying to avoid. Just use javascript to do that so it will not go through server.
you said you had autopostback set to true. this must be set to false to stop the postback when you select a different button
Programming is a race between programmers trying to build bigger and better idiot proof programs, and the universe trying to build bigger and better idiots, so far... the universe is winning.
-
you said you had autopostback set to true. this must be set to false to stop the postback when you select a different button
Programming is a race between programmers trying to build bigger and better idiot proof programs, and the universe trying to build bigger and better idiots, so far... the universe is winning.
-
Hi all, I am still new to web base programming. I have a redio button list and I am currently setting autopostback to true. But it blink the page, when change optins, I don't want the trip to server when I am not doing anything with the server. I wanted to use javascript to do the work for me. Since I have never used it before having very dificult to use it. Lets Say Yes and No two optins. if user slect No it should do something and same for Yes option. please help.
You can use a update panel for partial postback of the page.
jashimu wrote:
I wanted to use javascript to do the work for me
Check the link and change your code according to your requirement. http://weblogs.asp.net/gurusarkar/archive/2010/10/14/get-radiobuttonlist-selectedvalue-in-javascript.aspx[^]
-
you said you had autopostback set to true. this must be set to false to stop the postback when you select a different button
Programming is a race between programmers trying to build bigger and better idiot proof programs, and the universe trying to build bigger and better idiots, so far... the universe is winning.
In case of Auto postback false selected index change will not fire.
-
In case of Auto postback false selected index change will not fire.