guys, guys....frst of all hello to u all..
hey all , am facing one problem, wenever my insert fails ..exception helps me on if ther is duplicate id in database.
but when valid insertion happen in database , exception is again fired, which i dont want.
My code is below:
Protected Sub regbtn_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles regbtn.Click
SqlDataSource1.InsertCommand = " insert into customers values (@Fname,@Lname,@Username,@Email,@Password,@Secques,@Secq,@Age,@Profession,@Phno,@Location) "
Try
Dim param1 As New ControlParameter
param1.Name = "fname"
param1.ControlID = "fnamebox"
param1.PropertyName = "text"
SqlDataSource1.InsertParameters.Add(param1)
Dim param2 As New ControlParameter
param2.Name = "lname"
param2.ControlID = "lnamebox"
param ...
Go to the complete details ...