Default1.aspx
codice:
<form id="form1" runat="server">
<div>
<asp:TextBox ID="tb" runat="server"></asp:TextBox>
<asp:Button ID="bt1" runat="server" Text="Pag.Successiva" PostBackUrl="Default2.aspx" />
</div>
</form>
Default2.aspx
codice:
<form id="form1" runat="server">
<div>
Nella pagina precedente hai scritto:
<asp:Label Font-Bold="true" ID="lb" runat="server"></asp:Label>
</div>
</form>
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Page.PreviousPage Is Nothing Then
Dim tb As New TextBox
tb = CType(PreviousPage.FindControl("tb"), TextBox)
If Not tb Is Nothing Then
lb.Text = tb.Text
lb.Text.ToUpper()
End If
End If
End Sub