473,382 Members | 1,204 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Knowing if a button has been clicked in Page_Load

I know the ASP.NET page cycle: The Clicked event is called after the
Page_Load...

Don't ask why but I need to in the Page_Load if a particular control has
caused the postback...

Any ideas?

Thanks!
Jul 30 '08 #1
3 1383
"Mike Gleason jr Couturier" <no****@invalidhost.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
Don't ask why but I need to in the Page_Load if a particular control has
caused the postback...

Any ideas?
GIYF:
http://www.google.co.uk/search?sourc...aused+postback
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jul 30 '08 #2

"Mark Rae [MVP]" <ma**@markNOSPAMrae.neta écrit dans le message de news:
u9**************@TK2MSFTNGP06.phx.gbl...
"Mike Gleason jr Couturier" <no****@invalidhost.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>Don't ask why but I need to in the Page_Load if a particular control has
caused the postback...

Any ideas?

GIYF:
http://www.google.co.uk/search?sourc...aused+postback
Can you read me what it says please, I'm in the middle of something here?
LOL I kid, I kid...

No seriously thanks, you reminded me to go back to the sources (google) and
to remain calm in the storm of "the deadline approaching".

Thanks
Jul 30 '08 #3
Hi Mike,

Try Peter's approach:

http://www.eggheadcafe.com/articles/20050609.asp

HTH
--
Milosz
"Mike Gleason jr Couturier" wrote:
>
"Mark Rae [MVP]" <ma**@markNOSPAMrae.neta écrit dans le message de news:
u9**************@TK2MSFTNGP06.phx.gbl...
"Mike Gleason jr Couturier" <no****@invalidhost.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
Don't ask why but I need to in the Page_Load if a particular control has
caused the postback...

Any ideas?
GIYF:
http://www.google.co.uk/search?sourc...aused+postback

Can you read me what it says please, I'm in the middle of something here?
LOL I kid, I kid...

No seriously thanks, you reminded me to go back to the sources (google) and
to remain calm in the storm of "the deadline approaching".

Thanks
Jul 31 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Paul Hodgson | last post by:
I have quite a few pages that have multiple command buttons on them - for example one button might be to logout, and others might be to display different segments of the data being shown. The...
3
by: Dave | last post by:
If you have multiple buttons on a web form, how can you detect which control was clicked in the Page_Load event Thanks, Dave
7
by: Amadelle | last post by:
Hi all and thanks in advance, I am stuck! I can't figure out how to identify which button was clicked on my ASP.NET page in the PostBack event? So what I am trying to do is to is to have an if...
0
by: Oz | last post by:
Hi Using VS.NET 2003, Windows XP SP1, We have a page which has been developed using ASP.NET. On it, is a button which when clicked is supposed to add some data to a table. When the button is...
2
by: Krista Lemieux | last post by:
Hello, In my form I have a button, and the button_Click function (which gets called when the button is clicked). However the functionality that I have in the button_Click function, needs to be...
4
by: Shawn | last post by:
Hi. I have a ToolBar with a couple of ToolBarButtons. On postback after clicking on of the buttons Page_Load is called first then the ToolBarButton's click event is called. Is there anyway for...
0
by: Alex | last post by:
Hi there! I got some LinkButtons, all declared as "Public Withevents buttonName as LinkButton". I know the button names and IDs. Now I want to check in the Page_Load Method which button was...
7
by: Jimmy Jazz | last post by:
Hi, I have created a control with some buttons an alphabet. When one of these buttons are pressed it posts back and in the postback event for the button pressed a list of tems is created with a...
4
by: bbawa1 | last post by:
I have a button( btnLogOut)in my master page. In page_load event of this master page I want to verify if the button is clicked or not. How can I do that. Thanks in advance. seema
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.