Get Month Name From Given Date
SELECT DATENAME(MONTH,'08/15/1947')
int i = 0;
while (i <= datatableid.Rows.Count - 1)
{
if (datatableid.Rows[i]["ColumnName"].ToString().Trim() == string.Empty)
{
datatableid.Rows.RemoveAt(i);
}
else
{
i += 1;
}
}
datagridname.Items.Count
Items
Gets a collection of DataGridItem objects that represent the individual items in the DataGrid control
COALESCE ( expression [ ,...n ] )
Example :
SELECT COALESCE(FieldName,'0.00') FROM TableName;
If The Specified Field have null value it will be replace by 0.00 in the Result.
It's equivalent to Oracle NVL.
function maxLengthPaste(field,maxChars)
{
event.returnValue=false;
if((field.value.length + window.clipboardData.getData("Text").length) > maxChars)
{
return false;
}
event.returnValue=true;
}
Use OnPaste Went To Call This Function
onpaste="return maxLengthPaste(this,500)"
This Code Has Been Post By The Viewer As Comment