473,466 Members | 1,388 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Can't see my textbox values in a GridView

Hey guys,

I'm using ASP.NET 2.0 GridView for the first time. I have the following
setup

On the .aspx side I have this in my GridView

<asp:TemplateField HeaderText="New">

<ItemTemplate>

<%# Eval("New")%>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="tbxNew"
runat="server" Text='<%# Eval("New")%>'></asp:TextBox>
</EditItemTemplate>

</asp:TemplateField>

and when I .cs side I have this

protected void gvLicenseSplit_RowUpdating(object sender,
GridViewUpdateEventArgs e)
{
GridViewRow row = gvLicenseSplit.Rows[e.RowIndex];

TextBox t = (TextBox)row.FindControl("tbxNew");

Response.Write("The Text Entered is" + t.Text);
}

The value of tbxNew is always empty. Could someone please help me with
this?

Thanks
M.

Jan 25 '07 #1
0 1125

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: cyningeston | last post by:
OS: WinXP Pro, VB/ASP/ADO.NET I'm building a web-based supplier management application. For each supplier we are required by the FDA to track certain documents. I've managed to pull them from...
0
by: maflatoun | last post by:
Hey guys, I'm using ASP.NET 2.0 GridView for the first time. I have the following setup On the .aspx side I have this in my GridView <asp:TemplateField HeaderText="New"> <ItemTemplate>
4
by: rohitscripts | last post by:
I need to fill my gridview with the values that are entered into textboxes. For this, i thought to fill a datatable with the textbox values first and then bind this datatable to my gridview. Could...
2
by: mrutyunjaya | last post by:
hello, i have two textbox column and one button control in gridvie when i click button it will ask plese enter price in first textbox . when enter values it is asking again. how to pass...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.