validation(asp.net):attribution onblur is not a valid attribute of

G

Guest

I use asp.net 2.0.
I try to use onblur in textbox of asp.net.


however,
it said that
validation(asp.net):attribution onblur is not a valid attribute of element
'textbox'

what casuse this problem?
I can not use OnBlur in textbox of asp.net???

this is the code
<asp:TextBox ID="uxOverride" Runat="server" Onblur="Overridetest();"
Columns="5" CssClass="ms-generaltext"
Text='<%#session("DefaultOverride")%>'></asp:TextBox></td></tr></table>
 
M

Mark Newmister

Add via code-behind as such:

uxOverride.Attributes.Add("onblur", "Overridetest();");
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,821
Messages
2,569,748
Members
45,726
Latest member
RaleighAll

Latest Threads

Top