473,395 Members | 1,473 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Web DataGrid text box doesn't post back (or something else wrong)

I try to use EditCommandColumn of Datagrid control to update a record.
EditCommand works and Update and Cancel button appear. Then a modify
text in one of appeared text boxes. There is a part of my UpdateCommand
code:

Private Sub DataGrid1_UpdateCommand(ByVal source As Object, _
ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs ) _
Handles DataGrid1.UpdateCommand
Dim txtKeyID As TextBox = CType(e.Item.Cells(1).Controls(0), TextBox)
Dim txtCube As TextBox = CType(e.Item.Cells(2).Controls(0), TextBox)
Me.Label1.Text = txtCube.Text

Label control is just for troubleshooting. After I click Update button
Label receives old value, not the one that I just typed in. I try to
force Textbox to post back setting AutoPostBack to true as
txtCube.AutoPostBox = true with no result.

Please help.

*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #1
1 1495
--------------------------------------------------
THIS POST IS FURTHER PROOF
--------------------------------------------------

<asp:Unpredictable Rubbish="true"/>

HtmlControls
UserControls
WebControls

are all:

- overcomplicated
- unpredictable
- counter-productive
- inefficient

they cause many more problems than they solve
and it is strongly recommended you avoid them

furthermore it is a farce that ASPX pages do not allow
you to create methods and classes with <%%> script blocks
which are the best way to handle html literals in
presentation logic

--------------------------------------------------
(END)
--------------------------------------------------

Nov 19 '05 #2

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

Similar topics

12
by: Jim H | last post by:
We ahve a .NET web page that we dynamically create a bunch of DataGrids and add them to a place holder. When the user hits submit we need to go through all of the DataGrids to get some data. We...
6
by: Paul Perot | last post by:
Hi All: I was wondering if it was possible to evoke a post back event during code execution. I have a form that contains file specific information. I would like to iterate through an array of...
3
by: Kevin Cunningham | last post by:
I have a repeater with some labels in it (code below). For whatever reason the text for the label is not persisted in viewstate on the postback. Is there a trick to get this to work? Is there...
2
by: David Tilman | last post by:
I'm new to ASP .NET and have run into a problem. I have a child page open in a web application that the user adds information to and then clicks the save button. The information is added to a...
0
by: Tony Hedge | last post by:
Hello, I have done this before but now cannot get it to work... ASP.Net 1.1, a datagrid on a page. There are two template columns. Each of the those columns has a HeaderTemplate section. The...
4
by: ymk | last post by:
Hi Guys, I am new to web development and trying to see the best way to do the following. I need to have a calender control where the user selects a date. Once the date is selected I need to...
12
by: Michael Lang | last post by:
I'm adding checkbox controls to a panel in a post back, I then have a second post back in which I attempt to process the checkbox controls however they seem to have disappeared off the panel. The...
13
blazedaces
by: blazedaces | last post by:
Hey guys, how's it going today? So basically I have a program that uses hotbits (a real online random number generator based off radioactive decay) to produce truly random alphanumeric codes (Note:...
8
by: =?Utf-8?B?V2ViQnVpbGRlcjQ1MQ==?= | last post by:
I the page knows there was a cross post back. but i can not find the control. (asp.net 3.5) calling page has a master calling control: <asp:Button ID="btnSendAlert" runat="server" Text="Go"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
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...

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.