Where & When to use asp:LinkButton Control

LinkButton control is a control just like a Button control along with the flexibility to make it look like a Hyperlink.  It implements an anchor <a/> tag that uses only ASP.NET postback mechanism to post the data on the server. Despite being a hyperlink, you can’t specify the target URL. There is no UserSubmitBehavior property like Button control with this control. Its properties like BackColor, ForeColor, BorderColor, BorderStyle, BorderWidth, Height etc. are implemented through style properites of <a/> tag. You can set its Text property either by setting Text properties in the .aspx page or from server side page. (other properties can … Click here to continue…..

Where & When to use asp:Hyperlink Control?

Hyperlink control is used to jump to another location or to execute the script code. When rendered on the page, it implements an anchor <a/> tag. Its properties like BackColor, ForeColor, BorderColor, BorderStyle, BorderWidth, Height etc. are implemented through style properites of <a/> HTML tag. You can set its Text either by setting Text property in the .aspx page or from server side page. (other properties can also be set from both pages) Following are some important properties that are useful. NavigateUrl Used to specify the location to jump to. ImageUrl Used to place an image instead of text as … Click here to continue…..

Where & When to use asp:Button control?

Button control is used to post the form or fire an event either client side or server side. Button control is generally used to post the form or fire an event either client side or server side. When it is rendered on the page, it is generally implemented through <input type=submit> HTML tag. However, if UserSubmitBehavior property is set to false then control will render out as <input type=button>. Its properties like BackColor, ForeColor, BorderColor, BorderStyle, BorderWidth, Height etc. are implemented through style properites of <input> tag. You can set its Text property either by setting Text property in the … Click here to continue…..

Where & When to use asp:ImageButton Control?

ImageButton control is used to post the form or fire an event either client side or server side. Its like a asp:Button control, the only difference is, you have the ability to place your own image as a button. ImageButton control is generally used to post the form or fire an event either client side or server side. When it is rendered on the page, generally it is implemented through <input type=image > HTML tag. There is no UserSubmitBehavior property like Button control with this control. Its properties like BackColor, ForeColor, BorderColor, BorderStyle, BorderWidth, Height etc. are implemented through style … Click here to continue…..

Tips to improve performance of Asp.Net applications developed using VB

1) Enable Option Strict and Option Explicit for your pages With Option Strict on, you protect yourself from inadvertent late binding and enforce a higher level of coding discipline. 2) Use early binding in Visual Basic or JScript code Visual Basic 6 does a lot of work under the hood to support casting of objects, and many programmers aren’t even aware of it. In Visual Basic 7, this is an area that out of which you can squeeze a lot of performance. Solution: When you compile, use early binding. This tells the compiler to insert a Type Coercion is only … Click here to continue…..