hi frnds
i had got a problem,
i want to increase the serial number automatically when page is loaded and it will be inserted into the database at every time when the page is loaded .......
here my coding in page load event is given below,,,,,
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim connstr As String
connstr = ConfigurationManager.ConnectionStrings("guest1").ConnectionString()
Dim conn As New SqlConnection(connstr)
Dim dr As SqlDataReader
Dim da As New SqlClient.SqlCommand("select booking_no=booking_no+1 from guesthouse", conn)
conn.Open()
dr = da.ExecuteReader()
If dr.Read() Then
sino.Text = dr(0).ToString
End If
conn.Close()
pls reply me answer....
here i use vb.net coding.........
here iam using sqlserver 2005 as a database...........