Asp.net Basic

Gridview Column date Format
DataFormatString=”{0:MM/dd/yyyy}”  HtmlEncode=”False”
—————————————————————————————
Date in “MM/dd/yyyy” Format
DateTime.Parse(dtTable.Rows[0][“StartedDate”].ToString()).ToString(“MM/dd/yyyy”);
—————————————————————————————
Check Query String is Null
if (!String.IsNullOrEmpty(Request.QueryString[“Id”]))
{
}
—————————————————————————————

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s