Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

if(!Page.IsPostBack) problem

Status
Not open for further replies.

Sniipe

Programmer
Oct 9, 2006
115
IE
perhaps I'm doing this all wrong... :)

I have a page with a form and button which when pressed goes back to the same page. It works grand but the statement
if(Page.IsPostBack)
does not work.
Its loaded from the Page_Load function

I got so frustrate that I put in a hidden value which works fine but even the following won't catch
if(!data.Value.Equals("")) {//my code}

Perhaps I'm doing something totally stupid... enlighten me please.
 
Hi,

Better post this on forum855 for ASP.NET

And, when you post there, I suggest you elaborate what the statement "IsPostBack is not working" means so you'll get quick responses.

[wink]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top