-
Dec 12th, 2002, 09:22 AM
#1
Thread Starter
Lively Member
ASP.NET Question: In Page_Init, how can you find which control caused the PostBack?
Hi, there.
I have some code that must be run in the Page_Init event of my ASP.NET page. However, this code should only be run if a certain button is clicked. The problem that I am having is that the Page_Init event fires before the Button_Click event.
Is there a way, in the Page_Init event to find out which control caused the page PostBack? If so, I can use this to determine whether to run the code.
-
Dec 12th, 2002, 09:25 AM
#2
Fanatic Member
I dont know about ASP .net but in standard ASP I either set a hidden control or send something back in the URL to indicate the users action (IE what button they clicked)...
Leather Face is comin...
MCSD
-
Dec 12th, 2002, 09:42 AM
#3
Thread Starter
Lively Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|