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);
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
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()
{
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
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)
{
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
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);
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.