S
Sam
I want to control textbox where if textbox is not empty process ADO.NET
If TextBox_Account.Text is not null then
Dim con As New
SqlConnection(ConfigurationSettings.AppSettings("ConnectionString"))
Dim cmd As New SqlCommand()
cmd.CommandText = "Select * from Info where ID = " &
TextBox_Account.Text"
cmd.Connection = con
end if
However, null does not support in .Net and advise to use system.dbnull.
Please advise how to use null in asp.net
If TextBox_Account.Text is not null then
Dim con As New
SqlConnection(ConfigurationSettings.AppSettings("ConnectionString"))
Dim cmd As New SqlCommand()
cmd.CommandText = "Select * from Info where ID = " &
TextBox_Account.Text"
cmd.Connection = con
end if
However, null does not support in .Net and advise to use system.dbnull.
Please advise how to use null in asp.net