Set text on control with javascript

To set the text on a control with javascript use:   /* Set the text value of the given element. This function assumes this document is defined and not null and has a function getElementById Used by: – */ function SetText(elementId, text) { // Check input values if(IsNullOrUndefined(document)){alert(‘SetText: Object [document] …

Change cursor to hand with CSS, when mouse over a column in a ASP .NET 2.0 GridView

When you want to change the cursor to a hand instead of the default pointer on mouse over, use CSS. In you’re gridview column: <Columns> <asp:TemplateField HeaderText=”Barcode”> <ItemTemplate><span class=”hand”><%# Eval(“Column”)%></span></ItemTemplate> </asp:TemplateField> </Columns> In the header: <style type=”text/css”>    .hand { cursor: pointer; cursor: hand; } /* cross browser hand */</style>   …