DateTime dt = DateTime.Now;
string format = "ddmmyy";
string postfix = dt.ToString(format);
Output : 110920
Console.WriteLine(postfix);
DateTime dt = DateTime.Now;
string format = "ddmmyy";
string postfix = dt.ToString(format);
Output : 110920
Console.WriteLine(postfix);
ASP.Net MVC is a popular platform to design dynamic website
and CRM etc. One I was stuck in a situation when I want to use a common view
to different privileged users. So I had to bind multiple layouts on a single view
as per the related users menu or sidebar. This post will help you to bind
dynamic layouts on a single view.
public ActionResult
Task()
{
You can resize your image as per your requirement by using
WebImage Class which implemented in System.Web.Helpers namespace and resizing is
done by Resize and save method.
Namespace : using System.Web.Helpers;
[HttpPost]
public JsonResult
UploadCommonImage(string fnm, string
pth,string w,string
h)
{
The ALTER TABLE statement
is used to add, delete, or modify columns in an existing table.
The ALTER TABLE statement
is also used to add and drop various constraints on an existing table.
To add a column in a table,
use the following syntax:
ALTER TABLE table_name
ADD column_name
datatype;
The following SQL adds an
"Email" column to the "Customers" table:
ALTER TABLE Customers
ADD Email
varchar(255);