why my code in page_load loading twice ?

Posted by hareeshkumarkr-16190 under ASP.NET on 1/6/2014 | Points: 10 | Views : 571 | Status : [Member] | Replies : 1
Hi,

Why my function loading twice. i have written a function and calling that function in page_load() event.

E.G :

Private double Sumoftwono()
{
sum= a + b;

return sum;
}

in page_load()
{
if (!Page.IsPostBack)
{
Sumoftwono(); //this loading twice
}
}

I am using a master page, web-controls for header and footer.

Any ideas?

Thank you




Responses

Posted by: kgovindarao523-21772 on: 1/6/2014 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Hi,
I think there must be any logic errors in your code, we cannot come to a solution based on your posted data.

Thank you,
Govind

hareeshkumarkr-16190, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response