Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > Grid texbox autopostback

Reply
Thread Tools

Grid texbox autopostback

 
 
Ian Oldbury
Guest
Posts: n/a
 
      10-04-2004
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




 
Reply With Quote
 
 
 
 
Ian Oldbury
Guest
Posts: n/a
 
      10-05-2004
if anyone needs to know the answer checkout ...
ontextchanged="function name within the code behind page" for the textbox
control



"Ian Oldbury" <ian_oldbury@_NO_msn_SPAM_.com> wrote in message
news:(E-Mail Removed)...
> 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
>
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
width of texbox in editItem David ASP .Net 0 01-25-2005 06:02 PM
no autopostback on a grid? Tina ASP .Net 3 11-30-2004 12:44 AM
no AutoPostBack for Grid? Tina ASP .Net Datagrid Control 0 11-28-2004 04:04 PM
Hidden Texbox Rob T ASP .Net 5 06-10-2004 05:41 PM
Programmatically change width of texbox? Gandalf ASP .Net 12 08-01-2003 12:44 AM



Advertisments