hi any one try to tell me,,
i created a button control ,, by double clicking only the process was going on,,when iam single click the button nothing is to be happenend,,so i want to change into single click insted of double click........
here my coding is given below.......
<asp:Button ID="getrec" UseSubmitBehavior ="false" runat="server" Style="left: 30px; position: relative; top: 0px; z-index: 101;"
Text="Get Record" />
Protected Sub getrec_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles getrec.Click
Call getrecord()
End Sub
Private Sub getrecord()
Dim dr As System.Data.SqlClient.SqlDataReader
Dim nic, ecode As String
Dim st As New SqlClient.SqlCommand("select date_of_arr,no_beds,room_no,name,desig,dept,addr,booked_by,date_of_dept,nicstaff,status,booking_date from guesthouse where booking_no='" & Trim(bkno.Text) & "' ", conn)
conn.Open()
dr = st.ExecuteReader
nic = ""
ecode = ""
If dr.Read() Then
If dr("status") = "Booked" Or dr("status") = "Pending" Then
Panelview.Visible = True
dateofarrival.Text = dr(0).ToString().Substring(0).Remove(9)
noofbeds.Text = dr(1).ToString
roomno.SelectedItem.Text = dr(2).ToString
bookingname.Text = dr(3).ToString
designation.Text = dr(4).ToString
department.Text = dr(5).ToString
address.Text = dr(6).ToString
ecode = dr(7).ToString
dateofdeparture.Text = dr(8).ToString().Substring(0).Remove(9)
nic = dr("nicstaff")
dateofbooking.Text = dr("booking_date").ToString().Substring(0).Remove(9)
status.Text = dr("status")
If nic = "Y" Then
requestedby.Visible = False
empname.Visible = True
ecode = dr(7).ToString
dr.Close()
pace.Open()
Dim dr1 As System.Data.SqlClient.SqlDataReader
Dim str As New SqlClient.SqlCommand("select name from apcms_email where empcd='" & Trim(ecode) & "' ", pace)
dr1 = str.ExecuteReader
staff.SelectedValue = "Y"
If dr1.Read() Then
empname.SelectedItem.Text = dr1(0).ToString
End If
pace.Close()
Else
staff.SelectedValue = "N"
requestedby.Text = ecode
End If
Else
MsgBox("This Booking No is not valid as the status is " + dr("status"))
End If
ElseIf dr.HasRows = False Then
MsgBox("No Record(s) found for the given criteria!!")
Call reset()
End If
conn.Close()
End Sub
here the coding is all are correct but the problem is when double clicking the button only it was worked ,,,iwant want to change it into single click