|
Base Question
Is it possible to call an ASP.NET function with onblur? I've seen javascript but no examples of ASP.NET.
Details
I have a standard ASP.NET application and in it I've created a Datagrid to display data pulled from a table (of course).
I've added a footer to the datagrid which is a blank template of all the row above it, to allow the user to enter new rows. What I want is when the user loses focus of each text box for it to call an asp.net function which will test to see if all the data is entered and if it is, add it to the database and reload the datagrid with the new data in it.
Code
Example of one of the textboxes with the onblur.
<asp:TextBox id="txtNewCreditAmount" runat="server" Width="80" onfocus="javascript: this.select();" onkeypress="javascript: ValidateHours(event);" onblur="AddEntry()" />
Any help would be appreciated. Thanks.
|
|
|
|
|
|
|
|