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);
I am a programmer and the founder of Girfa IT Services, working in the field of technology since 2009. I started my career as a computer teacher, which was my full-time profession for nearly 10 years. After a decade of teaching, I decided to turn my passion for programming into my full-time career, while continuing teaching as a part-time activity. In real life, I consider myself a bit lazy—and I have actually turned that laziness into my programming philosophy! I always try to build reusable components, tools, and solutions instead of writing the same code repeatedly. This has become one of my key strengths as a programmer and helps me save time, reduce repetitive work, and build applications more efficiently. For me, programming is not just about writing code; it is about finding smarter, simpler, and reusable ways to solve problems. I believe that a good programmer should not only make things work, but should also make them easier to maintain, reuse, and improve.
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()
{
I am a programmer and the founder of Girfa IT Services, working in the field of technology since 2009. I started my career as a computer teacher, which was my full-time profession for nearly 10 years. After a decade of teaching, I decided to turn my passion for programming into my full-time career, while continuing teaching as a part-time activity. In real life, I consider myself a bit lazy—and I have actually turned that laziness into my programming philosophy! I always try to build reusable components, tools, and solutions instead of writing the same code repeatedly. This has become one of my key strengths as a programmer and helps me save time, reduce repetitive work, and build applications more efficiently. For me, programming is not just about writing code; it is about finding smarter, simpler, and reusable ways to solve problems. I believe that a good programmer should not only make things work, but should also make them easier to maintain, reuse, and improve.
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)
{
I am a programmer and the founder of Girfa IT Services, working in the field of technology since 2009. I started my career as a computer teacher, which was my full-time profession for nearly 10 years. After a decade of teaching, I decided to turn my passion for programming into my full-time career, while continuing teaching as a part-time activity. In real life, I consider myself a bit lazy—and I have actually turned that laziness into my programming philosophy! I always try to build reusable components, tools, and solutions instead of writing the same code repeatedly. This has become one of my key strengths as a programmer and helps me save time, reduce repetitive work, and build applications more efficiently. For me, programming is not just about writing code; it is about finding smarter, simpler, and reusable ways to solve problems. I believe that a good programmer should not only make things work, but should also make them easier to maintain, reuse, and improve.
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);
I am a programmer and the founder of Girfa IT Services, working in the field of technology since 2009. I started my career as a computer teacher, which was my full-time profession for nearly 10 years. After a decade of teaching, I decided to turn my passion for programming into my full-time career, while continuing teaching as a part-time activity. In real life, I consider myself a bit lazy—and I have actually turned that laziness into my programming philosophy! I always try to build reusable components, tools, and solutions instead of writing the same code repeatedly. This has become one of my key strengths as a programmer and helps me save time, reduce repetitive work, and build applications more efficiently. For me, programming is not just about writing code; it is about finding smarter, simpler, and reusable ways to solve problems. I believe that a good programmer should not only make things work, but should also make them easier to maintain, reuse, and improve.