Author: hal.h | Posted on: 11/11/2010 11:03:44 PM | Views : 1254

I set the application to call subs  (view the behind code) when those events on the control are fired.
How do I  write code to insert data into the database, using the following sub event handlers: Button1_Click, Button1_Command, and Button1_Load ?
 
The site is located at http://cforedu.com
Behind the code reads:
 
Imports System Imports System.Web Imports System.Web.UI Imports System.Web.UI.WebControls Imports System.Data Imports System.Data.SqlClient Imports System.Configuration Partial Class _Default Inherits System.Web.UI.Page Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click, company.DataBinding, position.DataBinding, first.DataBinding, last.DataBinding, DropDownList1.DataBinding, zip.DataBinding, Button1.DataBinding, phone.DataBinding, fax.DataBinding, email.DataBindi ...

Go to the complete details ...