Logo 
Search:

Asp.net Answers

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds
  Question Asked By: Sienna Hughes   on Oct 08 In Asp.net Category.

  
Question Answered By: Seth Anderson   on Oct 08

If I get this right it's plain and simple answer. The first time the page gets loaded the button  doesn't have the onclick attribute because U add  it in the server on click. After that you have it because of EnabledViewState... So. Put your lone of code into Page_Load but only the fisrt time it loads (!isPostBack).

Share: 

 

This Question has 3 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Add javascript to a button Or get search suggestion and latest updates.


Tagged: