code executing twice in the dot net aspx page

  • Thread starter Thread starter acharyaks
  • Start date Start date
A

acharyaks

Hi Guru,

the aspx page code executing behind the controls and
functions executing twice. How can I avoid running the
code behind the controls (for example this vanishes the
control box text previously entered) when the postback
method is triggered
Page_Load{
If !(IsPstback then){
<Please tell me what I have to do to stop executing code
behind textbox1 twice>
}
 
it will onyl execute once if you put your code inside the
statement
if (!IsPostback)
{
StartProcess();
}

Otherwise, there is something wrong with your logic or
your function was created in two separate location.
 
Back
Top