473,394 Members | 1,717 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,394 software developers and data experts.

Possible to detect which server control was clicked outside of it'shandlers?

I have some code in the OnPreRender event that I don't want to execute
when a certain server control was clicked (by the time any of that
control's events fire it's too late). I can't see any way to get to such
data but it must be there...
Nov 19 '05 #1
2 997
Sure. You can simply inspect the __EVENTTARGET & __EVENTARGUMENT
values in Request.Form.

Jason Kester
Expat Software Consulting Services
http://www.expatsoftware.com/

Nov 19 '05 #2
except for <asp:button> and <asp:imagebutton> which do not use these fields
for postback. a safer way is to set a flag on the client handler, any check
it on the prerender.
-- bruce (sqlwork.com)
"jasonkester" <ja*********@gmail.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
Sure. You can simply inspect the __EVENTTARGET & __EVENTARGUMENT
values in Request.Form.

Jason Kester
Expat Software Consulting Services
http://www.expatsoftware.com/

Nov 19 '05 #3

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

Similar topics

5
by: Colin McKinnon | last post by:
Hi, I'm currently writing a wee library tool in PHP. It generates a few (actually a lot) of temporary files and directories, so I need to setup some garbage collection. I can do this a lot more...
0
by: bredal Jensen | last post by:
Dear gurus, I have a "farm " of radio buttons server control in a table. I need to detect when the user has selected any of them( before any postback). i'm not quit sure how to do this. Is...
2
by: Oney | last post by:
How can I send a javascript code from an asp server control to client and run that script on client for example; when an asp server button clicked, an alert javascript must be sent to client and...
2
by: Brian | last post by:
NOTE ALSO POSTED IN microsoft.public.dotnet.framework.aspnet.buildingcontrols I have solved most of my Server Control Collection property issues. I wrote an HTML page that describes all of the...
20
by: Guadala Harry | last post by:
In an ASCX, I have a Literal control into which I inject a at runtime. litInjectedContent.Text = dataClass.GetHTMLSnippetFromDB(someID); This works great as long as the contains just...
1
by: Martin | last post by:
Hi, I have produced a custom server control that simple outputs a row of 26 buttons, one button for each letter of the english alphabet. now what I would like to do is catch the button click...
2
by: Steve Franks | last post by:
In ASP.NET 2.0 you can now apparently do this: <asp:label runat="server" text="some browser" IE:text="any IE browser" IE5:text="the IE 5 browser" PIE:text="the Pocket PC browser" /> Now the...
5
by: Arpan | last post by:
In order to populate any server control with data dynamically, is it ALWAYS NECESSARY to either BIND the DataSource to that server control or call the DataBind method of that server control? For...
1
by: antonyliu2002 | last post by:
I am using the server side Toggle Controls implemented by Jos (cf: http://www.codeproject.com/aspnet/ToggleControls.asp), which is pretty cool, if you wanna toggle controls. On my web page, I...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.