Logo 
Search:

Asp.net Forum

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds

Client-side events

  Asked By: Bailey    Date: Dec 15    Category: Asp.net    Views: 900
  

Another question I have, is:
Let's say I click an ImageButton, it does
it's work and the page reloads. How can I
call a client-side event which fires after
the pages reloads and calls a setTimeout
to fire another javascript function. This can
only occur due to a ImageButton click, I
don't want it to work on my original
page load.

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Ludo Ricci     Answered On: Dec 15

No problem. I had a simmilar problem on my User Control. I made a public bool
property on the control and passed it into an if statement inside javascript
which executed when true...:


if (<%=MyBool.ToString().ToLower()%>)
{
// execute what you have to
}

Put this script inside client aspx/ascx file and it will execute when the
property will be true... Of course set the property to true in the server click
event.

 
Didn't find what you were looking for? Find more on Client-side events Or get search suggestion and latest updates.




Tagged: