I want to be able to display what end-users entered prior to submitting data to sql server DB. How do I accomplish this task?
Currently, I have a textbox1 and submit button. Upon Submit button, I have the following code running.
Imports System.Data.SqlClient
Partial Class _Default
Inherits System.Web.UI.Page
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
' instantiate and open connection
Dim conn As SqlConnection = New SqlConnection("Server=(local);DataBase=ASP;Integrated Security=SSPI")
conn.Open()
Dim cmd As SqlCommand = New SqlCommand("insert into Trial (FirstName) VALUES (@FirstName)", conn)
' define parameter used in command object
Dim param As SqlParameter = New SqlParameter()
param.ParameterName = "@FirstName"
param.Valu ...
Go to the complete details ...