RE: Moving Data

From: Michael Mitchell via DotNetMonster.com (forum_at_DotNetMonster.com)
Date: 01/23/05


Date: Sun, 23 Jan 2005 17:52:37 GMT

James, thanks for the input, i have tried server.transfer. Here is some example code, I think I didn't specify exactly what needed to be accomplished. Thanks for the quick response. If you have further input please let me know.
Thanks, mike

* I need to collect the input data on exampl1.aspx by hitting the review button.
* Out put the data in the corresponding Labels on Example2.aspx.
* Save Example2.aspx to a File of the users choice when the save button is clicked
* I USE WebMatrix

Example1.aspx:
<%@ Page Language="VB" %>
<script runat="server">

    'I have tried all kinds of things:
    'Server.Transfer("Example2.aspx", True)

</script>
<html>
<head>
</head>
<body>
    <form runat="server" ID="frmForm1">
        <p>
            &nbsp;
        </p>
        <p>
            <asp:Label id="lblFirstName" runat="server">First Name</asp:Label>
            <asp:TextBox id="txtFirstName" runat="server"></asp:TextBox>
        </p>
        <p>
            <asp:Label id="lblLastName" runat="server">Last Name</asp:Label>
            <asp:TextBox id="txtLastName" runat="server"></asp:TextBox>
        </p>
        <p align="left">
            <asp:Button id="btnReview" runat="server" Text="Review"></asp:Button>
        </p>
        <!-- Insert content here -->
    </form>
</body>
</html>

Example2.aspx:
<%@ Page Language="VB" %>
<script runat="server">

    

</script>
<html>
<head>
</head>
<body>
    <form runat="server" ID="frmForm2">
        <p>
            &nbsp;
        </p>
        <p>
            First&nbsp;Name is:
            <asp:Label id="lblFirstName" runat="server"></asp:Label>
        </p>
        <p>
            Last Name is:<asp:Label id="lblLastName" runat="server"></asp:Label>
        </p>
        <p>
            <asp:Button id="btnSave" runat="server" Text="Save"></asp:Button>
        </p>
        <!-- Insert content here -->
    </form>
</body>
</html>

-- 
Message posted via http://www.dotnetmonster.com