Thursday, October 30, 2008

Retrieve Idenity

Lets say that you are inserting a row in a table which has an identity column.
You can retrieve the new identity using
Select @@IDENTITY

Pixel Character ratio

Lets say you want to fix the width of a textbox using pixel, this is the thumb rule.
70px = 10 char

Image Button using LinkButton

Isn't it cool to use just a linkbutton and some css stuff and make it look like an image button.


div class="btn_area">asp:LinkButton ID="LinkButton1" runat="server" CssClass="button" onclick="OkButton_Click">SEARCH /asp:LinkButton
/span
/div