Connecting Tech Pros Worldwide Help | Site Map

code executing twice in the dot net aspx page

acharyaks@yahoo.com
Guest
 
Posts: n/a
#1: Jul 21 '05
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>
}
dabuskol
Guest
 
Posts: n/a
#2: Jul 21 '05

re: code executing twice in the dot net aspx page


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.

[color=blue]
>-----Original Message-----
>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>
>}
>.
>[/color]
Closed Thread


Similar .NET Framework bytes