Hi guys,
I have the following function that loads a drop down list from the db and then I am inserting a new value as the default. Could someone guide me to the best solution to validate the drop down so that they select a value
Protected Sub s3selcustomertitle_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles s3selcustomertitle.Load
'This Will DataBind The Payment Type Drop Down Control
If Not Me.Page.IsPostBack Then
s3selcustomertitle.DataSource = DataLoad.CustomerTitles
s3selcustomertitle.AutoPostBack = False
s3selcustomertitle.DataValueField = "CustomerTitle_Id"
s3selcustomertitle.DataTextField = "CustomerTitle_Name"
s3selcustomertitle.DataBind()
s3selcustomertitle.Items.Insert(0, "Select A Title ...")
End If
End Sub
I have the following function that loads a drop down list from the db and then I am inserting a new value as the default. Could someone guide me to the best solution to validate the drop down so that they select a value
Protected Sub s3selcustomertitle_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles s3selcustomertitle.Load
'This Will DataBind The Payment Type Drop Down Control
If Not Me.Page.IsPostBack Then
s3selcustomertitle.DataSource = DataLoad.CustomerTitles
s3selcustomertitle.AutoPostBack = False
s3selcustomertitle.DataValueField = "CustomerTitle_Id"
s3selcustomertitle.DataTextField = "CustomerTitle_Name"
s3selcustomertitle.DataBind()
s3selcustomertitle.Items.Insert(0, "Select A Title ...")
End If
End Sub