
passing values between web forms in ASP.NET
Hi there,
I cannot pass values between web forms in my application. You can see the
code at the bottom. I can't figure out what's wrong.
Thanks,
Burak
Public ourFileNumber As String
Public Property proOurFileNumber() As String
Get
Return ourFileNumber
End Get
Set(ByVal Value As String)
proOurFileNumber = Value
End Set
End Property
Private Sub btnAddNewClients_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnAddNewClients.Click
Server.Transfer("Clients.aspx")
End Sub
Public webformbir As WebForm1
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
If Not Page.IsPostBack Then
webformbir = CType(context.Handler, WebForm1)
txtOurFileNumber.Text = webformbir.proOurFileNumber
End If
End Sub