andycharger Posted August 26, 2003 Posted August 26, 2003 I have a page which is a web form. On the form I have a text box called "title_text" and a text area called "item_text". I want to submit these items, call my database and add them. While I know how to do the insert, can someone tell me how I do the function call from the web page? Do I do it like the old way with an onsubmit in the form tag? Andy Quote
Datahighway Posted August 26, 2003 Posted August 26, 2003 Hi Andycharger, you must use e.g a Button. Public Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ' get you Values from the Textbox And Text Area Dim strTB As String = Textbox1.Text Dim strTA as String = TextArea.Text ' You can write here the code for the Database ' insert Command or update Command and so on End Sub Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.