When upon checking, all you see that's available is a TextChanged event. And you know that the html input tag can support other events like:
A workaround is to create an ASP.NET Button and place it inside a hidden div:
<div style="display: none;">
<asp:Button ID="btnTextBoxEventHandler" runat="server"
OnClick="btnTextBoxEventHandler_Click" />
</div>
And here's the markup for the textbox, just a regular one:
<asp:Textbox ID="txt1" runat="server" />
Now on your page onload event, add an attribute to your textbox:
protected void Page_Load(object sender, EventArgs e)
{
txt1.Attributes.Add("onblur", this.Page.ClientScript.GetPostBackEventReference(this.btnTextBoxEventHandler, ""));
}
Then of course, the event handler for the button:
protected void btnTextBoxEventHandler_Click(object sender, EventArgs e)
{
//Place code here for onblur..
}
Now place the code you want to trigger (when the textbox loses focus) inside the button event and see what happens. Try experimenting with other event attributes and ASP.NET control combinations too.
-k

