all groups > dotnet jscript > march 2004 >
You're in the

dotnet jscript

group:

fire server side event from client side


fire server side event from client side Neil
3/23/2004 1:46:08 AM
dotnet jscript:
Hi

I have a number of HTML tables that are dynamically rendered from server side code. I've added an onClick event to the tables that fires a client side function (jscript) to redirect the user to an appropriate page using location.href

I need to capture this event some how on the server side so I can set a session variable to track the table onclick event that was raised

Does any one know how I can do this. I don't think I can set the session variable using jscript right? I'm guessing I need to hook up an event handler on the server side for the onClick event but I don't know how to do this

Re: fire server side event from client side bruce barker
3/23/2004 9:58:32 AM
you have to change the control to runat server, which will postback the
page, then the server responds with a redirect.


-- bruce (sqlwork.com)



[quoted text, click to view]
side code. I've added an onClick event to the tables that fires a client
side function (jscript) to redirect the user to an appropriate page using
location.href.
[quoted text, click to view]
variable using jscript right? I'm guessing I need to hook up an event
handler on the server side for the onClick event but I don't know how to do
this.
[quoted text, click to view]

AddThis Social Bookmark Button