use the __doPostBack('MyButton', '') javascript function. MyButton is, say,
an <asp:linkbutton> (definitely works) but I think it can be anything.
If you look at the html source generated when you run an aspx page you will
find that this is what asp.net server controls do anyway.
You can use
document.forms['Form1'].item('postbackparams').value = arg
where postbackparams is, say, an <input type="hidden" id="postbackparams">
to set parameters.
"asadikhan" <as*******@hotmail-dot-com.no-spam.invalid> wrote in message
news:40**********@127.0.0.1...
Hi, I have a timer in javascript on my ASP.NET page. When the time
expires (a point in my javascript code) I want to call a subroutine
in my ASP.NET page. But I can't seem to figure out how to do this.
My subroutine is actually a function I call as a result of a button
click. But if the user doesn't click the button in the allotted time,
I want to go ahead and call the function anyways.
Any idea how I can do this?
Thanks.
Asad