Hello,
I have a simple question about a HTML textbox. I've made a form with some checkboxes and textboxes in it. Now i want to fill my database with the values of the textboxes and checkboxes in the code behind. Is that posible and how?
Thx
Printable View
Hello,
I have a simple question about a HTML textbox. I've made a form with some checkboxes and textboxes in it. Now i want to fill my database with the values of the textboxes and checkboxes in the code behind. Is that posible and how?
Thx
You have a slightly confusing description of your problem...
There is an <asp:textbox> tag or a <input type="text" /> tag.
When you say HTML textbox, I assume you mean the latter:
html:
<input id="htmltextbox1" type="text" value="hi" runat="server" />
On the code behind page, you declare:
VB Code:
Protected WithEvents htmltextbox1 As System.Web.UI.HTMLControls.HTMLInputText
And you can handle the serverChange event of this object, or get and access its text using the .Value property.
Thnx!! That was the anwser! :thumb: