Hi Amol111,
Please take reference the below code and correct your code.
You can send data from one page to another page using QueryString. Refere below example.
HTML
CS.aspx
Name:
<input type="text" id="txtName" name="Name" /><br />
<br />
<input type="button" id="btnSubmit" onclick="SendData()" value="Submit" /><br />
<script type="text/javascript" language="javascript">
function SendData() {
var name = document.getElementById("txtName").value;
window.location = "Default.aspx?name=" + name;
}
</script>
Code
Default.aspx.cs
protected void Page_Load(object sender, EventArgs e)
{
Response.Write(Request.QueryString["name"]);
}
Screenshot