07 August 2010
Here is the code to solve that issue.
here we will create a reusable control so u can use it anywhere u want in ur project.
you can download the code from here.
add this files into ur project.
and now see the code below to use it.
add the following line in file before head
<%@ Register src="/DoAfterPostback.ascx" tagname="DoAfterPostback" tagprefix="uc1" %>
and web controls as follows:
Text ="Button" OnClick ="ButtonClicked" /> Text ="Label" />
Now runyour project and enter value in textbox and click on button to test it.
If u have any problem in implementing this then feel free to comment.