protected void LinkButton1_Click(object sender, EventArgs e) { if(TextBox1.Text=="") { Response.Write("Enter content"); } else { Response.Redirect("Page2.aspx"); }
<asp:LinkButton runat="server" Text="Default Page" PostBackUrl="~/Default.aspx"></asp:LinkButton>
<a href="Default.aspx">Default</a>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)