Refreshing problem....
-
Hi friends, I am adding dynamic controls on form on button click....everything working fine....but if I click on button and refresh the page one more control get added. If anybody has any idea please share with me.... Thanks, Nagraj
-
Hi friends, I am adding dynamic controls on form on button click....everything working fine....but if I click on button and refresh the page one more control get added. If anybody has any idea please share with me.... Thanks, Nagraj
One more control adds because the existing controls are resurrected from ViewState. Did you try XmlHttp based refresh?
Vasudevan Deepak Kumar Personal Homepage Tech Gossips
-
One more control adds because the existing controls are resurrected from ViewState. Did you try XmlHttp based refresh?
Vasudevan Deepak Kumar Personal Homepage Tech Gossips
Hi, I simply press F5 due to which page get refreshed....and one more control get added.
-
Hi friends, I am adding dynamic controls on form on button click....everything working fine....but if I click on button and refresh the page one more control get added. If anybody has any idea please share with me.... Thanks, Nagraj
Hi, When you refresh your page the last executed event in the aspx page gets executed again. Thats why one more controls is added.
Thanks and Regards, Chetan Ranpariya
-
Hi friends, I am adding dynamic controls on form on button click....everything working fine....but if I click on button and refresh the page one more control get added. If anybody has any idea please share with me.... Thanks, Nagraj
Whilst the other two answers are technically correct I thought I'd elaborate: When you click the button it causes a POST request to the server and returns a page. When you refresh the page it re-submits the POST request which contains the event information to perform, causing it to add another control. I'm not sure what you can do about it, why is this a problem anyway?
-
Hi friends, I am adding dynamic controls on form on button click....everything working fine....but if I click on button and refresh the page one more control get added. If anybody has any idea please share with me.... Thanks, Nagraj
I'm sorry, i didn't find your problem all that refreshing...
-
I'm sorry, i didn't find your problem all that refreshing...
Hi , I am adding dynamic controls on form on button click....everything working fine....but if I click on button and refresh the page one more control get added. Thanks. Nagraj