code executing twice in the dot net aspx page

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>
}
 
D

dabuskol

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top