i have a problem in showing the data in the other page which is saved from one page and should be shown in the other page after immediately saving it. can anyone tell how do it through form collection
here is the code
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim connstr As String
connstr = ConfigurationManager.ConnectionStrings("gate").ConnectionString()
Dim conn As New SqlConnection(connstr)
Dim dr As SqlDataReader
Dim da As New SqlClient.SqlCommand("select gp_no,belongs_to,from_whom,gp_date,officer_incoming,officer_nic,expected_takeback,purpose from gate_incoming ", conn)
conn.Open()
dr = da.ExecuteReader()
If dr.Read() Then
so.Text = dr(0).ToString
dt.Text = dr(3).ToString
belongto.Text = dr(1).ToString
fro.Text = dr(2).ToString
pur.Text = dr(7).ToString
expected.Text = dr(6).ToString
name.Text = dr(4).ToString
officer.Text = dr(5).ToString
End If
conn.Close()
End Sub
can any one give the sites for form collection