Hi ramco1917,
Please refer below sample.
HTML
Default
<asp:LinkButton Text="Send" runat="server" PostBackUrl="~/Home.aspx?Value=Atom" />
Home
<asp:HiddenField ID="hfType" runat="server" />
<asp:Button Text="Save" runat="server" OnClick="OnSave" />
Code
Home
C#
protected void Page_Load(object sender, EventArgs e)
{
if (!string.IsNullOrEmpty(Request.QueryString["Value"]))
{
hfType.Value = Request.QueryString["Value"];
}
}
protected void OnSave(object sender, EventArgs e)
{
string type = hfType.Value;
ClientScript.RegisterStartupScript(this.GetType(), "alert", "alert('" + type + "');", true);
}
VB.Net
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) handles Me.Load
If Not String.IsNullOrEmpty(Request.QueryString("Value")) Then
hfType.Value = Request.QueryString("Value")
End If
End Sub
Protected Sub OnSave(ByVal sender As Object, ByVal e As EventArgs)
Dim type As String = hfType.Value
ClientScript.RegisterStartupScript(Me.GetType(), "alert", "alert('" & type & "');", True)
End Sub
Screenshot