Try this,
<div id="div1">
Name <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><br />
Mobile <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox><br /><asp:Button ID="Button1" runat="server" Text="Insert" OnClick="pass_QS" />
</div>
In page1.aspx.cs(button click event)
protected void pass_QS(object sender, EventArgs e)
{
ArrayList myAL1 = new ArrayList();
myAL1.Add(TextBox1.Text.ToString());
myAL1.Add(TextBox2.Text.ToString());
string items = String.Join(",", ((string[])myAL1.ToArray(typeof(String))));
string url = "Default3.aspx?items=" + items;
Response.Redirect(url);
}
In page2.aspx.cs
protected void Page_Load(object sender, EventArgs e)
{
if (Request.QueryString["items"].ToString() != null)
{
string[] items = Request.QueryString["items"].ToString().Split(',');
ArrayList al = new ArrayList();
foreach (string item in items)
{
al.Add(item);
}
string ss = al[0].ToString();
Response.Write(ss);
}
}