Tip of the day: Don’t misuse the Link button control

Posted by anas on ASP.net Weblogs See other posts from ASP.net Weblogs or by anas
Published on Mon, 19 Apr 2010 22:09:38 GMT Indexed on 2010/04/19 22:13 UTC
Read the original article Hit count: 593

Filed under:
Misuse ? Yes it is ! I have seen a lot of developers who are using the LinkButton to do redirection only ! They are handling it’s click event to just write Response.Redirect ("url”) like this: protected void LinkButton1_Click( object sender, EventArgs e) { Response.Redirect( "~/ForgotPassword.aspx" ); } Ok so to understand why it’s not a good practice let’s discuss the redirection steps involved when using the mentioned method: User submits the page by clicking on the LinkButton control...(read more)

© ASP.net Weblogs or respective owner

Related posts about ASP.NET