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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding attibutes when the same attribute already exists 1

Status
Not open for further replies.

Billkamm

Programmer
Joined
Feb 9, 2006
Messages
74
Location
US
Hi, I have a control that already has an onblur event built-in on to it when it renders (it is a custom textbox control). However, I need to add an onblur event to this control (I'm using .Attributes.Add() in the code behind), but I do not believe that my onblur code is being fired due to there already being an onblur event associated with this control.

Does anyone know a way for me to be able to get my onblur event to fire or to add my client-side code into the existing onblur?
 
i.e. like this:
Code:
Text1.Attributes.Add("onblur", "alert('new message')[b];[/b]" & Text1.Attributes.Item("onblur"))


____________________________________________________________
Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]

Need help finding an answer? Try the Search Facility or read FAQ222-2244 on how to get better results.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top