Hi nauna,
Check this example. now take its reference.
HTML
<asp:TextBox runat="server" ID="txtValue" /><br />
<asp:Button Text="Get" runat="server" ID="btnGet" OnClick="OnGet" /><br />
<asp:Label Text="" runat="server" ID="lblValue" />
Code
C#
protected void OnGet(object sender, EventArgs e)
{
string value = txtValue.Text.Trim();
string name = value.Substring(value.IndexOf('?')).Split('=')[1];
lblValue.Text = name;
}