You can use Property Procedure and Context to transfer web form data to another page Read the program given below:
Code:
<%@ Page Language="VB" ClassName="SenderClass123" %>
<script runat="server">
' Readonly property for name
Public ReadOnly Property Name() As String
Get
Return USerName123.Text
End Get
End Property
'Readonly Property for phone
Public ReadOnly Property Phone() As String
Get
Return UserPhone123.Text
End Get
End Property
'Event to transfer page control to Result.aspx
Sub Page_Transfer(sender As Object, e As EventArgs)
Server.Transfer("Result123.aspx")
End sub
</script>
Bookmarks