Question:

How to prevent postback when refreshing page?

by  |  earlier

0 LIKES UnLike

I have a web page which was written BY VB.NET.I have a web control which is embedded in a that page.I use the code in ascx file

If Not (Page .IsPostback)

Do something here.When pages loads once.

end if

But with IE7 when i refresh the page the code is always working which theoratically should not work.However with firefox and Opera it works correctly.(It works only once and one I refresh the page it does not work which is the corect.)

Does anyone have idea why does it work incorrectly with IE7.

Thank you...

 Tags:

   Report

1 ANSWERS


  1. You might try setting the EnableViewState property of the control appropriately...

    Sorry if that isn't what you are looking for, question isn't entirely clear to me...

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions