Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / JScript / March 2004

Tip: Looking for answers? Try searching our database.

fire server side event from client side

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Neil - 23 Mar 2004 10:46 GMT
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

Thanks
bruce barker - 23 Mar 2004 18:58 GMT
you have to change the control to runat server, which will postback the
page, then the server responds with a redirect.

-- bruce (sqlwork.com)

> 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.

> Thanks

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.