How do you add text to asp:textbox

There should be text attribute in textbox web control. If you add HTML textbox, then there is value attribute.

Or I misunderstand your problem?
 
Programatically, after the text box is created, there is no text attribute so that you cant go

Code:
Private Sub AddText()

txtText.Text = "123"

End sub

after the asp:textbox id=txtText is created on the html page
 
Actually what happened is that the textbox got declared as a table in the codebehind section of the web pages, and then took on the properties of the table and didnt throw an error.

When I reentered it as a text box the right methods were there.

Which is good, because I thought I was going nuts
 
Back
Top