Visual Basic .NET » Database Programming
TextBox control not accepting value. -- MadBull --


I am relatively new to ASP.Net but not to VB.

I have a number of unbound asp:TextBox controls which are placed upon a web form. These controls are populated with information with information garnered by running a stored procedure and selecting information out of a table in SQL Server. In columns where NULLS are found, I populate the TextBox.Text property with an empty string.

I then try to modify this information. I type new information into these controls and click an asp:button control (btnSaveChanges1) which is on the same form.. As expected, the Event procedure btnSaveChanges1_Click starts to run. In that code, I have a number of assignment statements, assigning the values of the asp:textbox controls which I have just updated with information into session variables as in the single line example below.

Session("ExtDirAdLine") = v_ExtDirAdLine.Text

The problem is that the Text property of the asp:TextBox control
"v_ExtDirAdLine" does not contain the Information I entered into it.
Instread it contains an empty string. Why would this be?

-- Dinuk --


When you originally assign the data to the textboxes do they appear on the page?

Also, the textboxes have a runat='server' tag right?

[Submit Comment]Home