Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Where's the LinkButton Name attribute???

Status
Not open for further replies.

steverbs

Programmer
Jul 17, 2003
253
GB
Hi all.

Currently updating quite a large project and have had to make some major modifications to the interface design to save on screen-space and to make the interface more user friendly. One of the modifications that we found to be necessary is the replacing of many of the existing asp-buttons with LinkButtons.

This has however, just become a problem as, for some reason, the LinkButtons don't seem to create a Name attribute. Apparently the asp-buttons generate the Name attribute based on the ID attribute and this has been an important part of the interface design as there are many times where we need to know what was clicked before the click-event-handler is fired and so we use the Request.Form("buttonName") to achieve this. Now that the Name attribute isn't showing, this doesn't work.

Is there any way we can get the Name attribute to appear? Or is there another way of finding out which LinkButton was clicked during the Page_Load routine?

Any help is greatly appreciated.

Regards.

Stephen.
 
OK. My appologies. It looks like we are way off track. I found that the Name attribute doesn't make a difference. So, on to the key point... how can I tell which link button was clicked before the event handler? In particular I need to know how to catch the clicked LinkButton during the execution of the Page_Load sub.

Thx.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top