R
Rob Roberts
Is there any way to add attributes to GridView ButtonFields? I'm looking
for a way to add event handlers to ButtonFields. With regular ASP.NET
buttons, I can add event handlers by using the Attributes collection, like
this:
MyButton.Attributes.Add("onmouseover", "this.className='actionH'");
MyButton.Attributes.Add("onmouseout", "this.className='actionN'");
But the GridView ButtonField doesn't seem to have an Attributes property.
Is there any way that event handlers can be added to ButtonFields?
Thanks in advance,
--Rob Roberts
for a way to add event handlers to ButtonFields. With regular ASP.NET
buttons, I can add event handlers by using the Attributes collection, like
this:
MyButton.Attributes.Add("onmouseover", "this.className='actionH'");
MyButton.Attributes.Add("onmouseout", "this.className='actionN'");
But the GridView ButtonField doesn't seem to have an Attributes property.
Is there any way that event handlers can be added to ButtonFields?
Thanks in advance,
--Rob Roberts