Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 14th, 2005, 12:42 AM
Authorized User
 
Join Date: Oct 2005
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to monuindia2002
Default Multiple event handlers for a single button

Hi
I have created a web user control, that has a button, i am using this user control in 5 aspx pages and i want to write different actions for the button in user control in different aspx page.
How should i do that.



Mahesh
__________________
Mahesh
 
Old October 16th, 2005, 11:22 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

You could try to do something like this in the click event of the button:
Select Case HttpContext.Current.Request.UrlReferrer 'Need to trim the string
   Case "Some Page
      ... do something
   Case "Some Page
      ... do something

etc...

End Case






Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding Multiple Event to button in layered PopUp saqlain.abbas ASP.NET 1.0 and 1.1 Professional 1 June 28th, 2007 04:05 AM
Event handlers jwebb Visual Basic 2005 Basics 1 June 25th, 2007 08:44 PM
Event handlers does not work after some changes geetageetageeta ASP.NET 2.0 Basics 0 March 6th, 2006 04:19 AM
Conflicting Event Handlers chp Excel VBA 3 February 24th, 2006 03:00 PM
Using Multiple Event Handlers in Excel chp Excel VBA 4 February 15th, 2006 06:25 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.