Groups | Blog | Home
all groups > asp.net datagrid control > october 2004 >

asp.net datagrid control : Grid texbox autopostback



Ian Oldbury
10/4/2004 6:19:27 PM
Hi All,

I'm trying to perform an autopostback on a textbox, when i leave the cell it
does postback to the server but i can't find the event that it calls. I
create the datagrid using the ItemDataBound event.

has anyone got any ideas?

cheers ian

aspx page
<edititemtemplate>
<asp:textbox id="txtItem" runat="server" maxlength="9"
autopostback="True" ></asp:textbox>
</edititemtemplate>

code within code behind page
Public Sub txtItem_TextChanged(ByVal sender As Object, ByVal e As
System.EventArgs) Handles txtItem.TextChanged

BindGridItems()

End Sub



Ian Oldbury
10/5/2004 1:49:07 PM
if anyone needs to know the answer checkout ...
ontextchanged="function name within the code behind page" for the textbox
control



[quoted text, click to view]

AddThis Social Bookmark Button