Clearing Text in a Label Control Before Redericting The Page
-
Hi.. I want to clear the Text of a label Control Before Redericting the page to another page.How should i do it in .Net 2003 I am clearing the Text of the Label in a Button Click event and then I am Redericting the Page But it is not working. I am Expecting a reply Thanks Mahesh.J
-
Hi.. I want to clear the Text of a label Control Before Redericting the page to another page.How should i do it in .Net 2003 I am clearing the Text of the Label in a Button Click event and then I am Redericting the Page But it is not working. I am Expecting a reply Thanks Mahesh.J
Mahesh.J wrote:
I am Expecting a reply
I bet you are... What do you want to do ? Your button click event will fire on the server side, and the page with the label cleared will not be rendered, because you will redirect before that can happen. Why do you need to clear it first ? It's lost anyhow.... To do this so the user sees it clear, you'd need to use javascript.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )