In this article we will learn how to pass values or variables from one page to other page.
FirstForm.aspx code
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="FirstForm.aspx.vb"Inherits="FirstForm" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD
XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled
Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Label ID="Label1" runat="server" Font-Bold="True" Text="First
Name"
Width="160px"></asp:Label>
<asp:TextBox ID="TextBox1" runat="server" Width="200px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="TextBox1" ErrorMessage="Name
Required"></asp:RequiredFieldValidator>
<br />
<asp:Label ID="Label2" runat="server" Font-Bold="True" Text="Email"
Width="160px"></asp:Label>
<asp:TextBox ID="TextBox2" runat="server" Width="200px"></asp:TextBox>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
ControlToValidate="TextBox2" ErrorMessage="Invalid
Email"
ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
ControlToValidate="TextBox2" ErrorMessage="Email
Required"></asp:RequiredFieldValidator>
<br />
<asp:Label ID="Label3" runat="server" Font-Bold="True" Text="Mobile
No"
Width="160px"></asp:Label>
<asp:TextBox ID="TextBox3" runat="server" Width="200px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"
ControlToValidate="TextBox3" ErrorMessage="Mobile
No. Required"></asp:RequiredFieldValidator>
<br />
<asp:Label ID="Label4" runat="server" Font-Bold="True" Text="Country"
Width="160px"></asp:Label>
<asp:DropDownList ID="DropDownList1" runat="server">
<asp:ListItem>India</asp:ListItem>


Shawn FaciniPosted Apr 30, 2019, 5:01 PM
How would u do it from a email to a webpage
sharon saldanhaPosted Feb 13, 2015, 4:17 AM
Great (y)
Danish habibPosted Jun 3, 2014, 3:46 AM
this is not working with my Code