Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...