Collecting Data on one form and outputing it on another form

  • Thread starter Michael Mitchell via DotNetMonster.com
  • Start date
M

Michael Mitchell via DotNetMonster.com

* I need to collect the input data on example1.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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top