Is JavaScript validation is enough?
Client-Side Script:
Script run by the viewing web browser is called client-side script. Client side script example javascript, vbscript.
JavaScript:
JavaScript is an object-oriented scripting language used to enable programmatic access to objects within both the client application and other applications. It is primarily used in the form of client-side JavaScript, implemented as an integrated component of the web browser, allowing the development of enhanced us...
Read More
IISRESET
IIS RESET from CMD
Command : iisreset [computername] /[option]
Computername:
If local computer ignore it.
Options:
/RESTART
Stop and then restart all Internet services.
/START
Start all Internet services.
/STOP
Stop all Internet services.
/REBOOT
Reboot the computer.
/REBOOTONERROR
Reboot the computer if an error occurs when starting,
stopping, or restarting Internet services.
/NOFORCE
Do not forcefully terminate Internet services if
attempting to stop them gracefully fails.
/TIM...
Read More
String Format for DateTime in C#
String Format for DateTime in C#
To Custom DateTime Format
There are following custom format specifiers is available y (year),
M (month), d (day), h (hour 12),
H (hour 24), m (minute), s (second),
f (second fraction), F (second fraction, trailing
zeroes are trimmed), t (P.M or A.M) and z
(time zone).
// create date time 2008-03-09 16:05:07.123
DateTime dt = new DateTime(2008, 3, 9, 16, 5, 7, 123);
String.Format("{0:y yy yyy yyyy}", dt); // "9 09 009 2009" year
String.Format("{0:M MM MM...
Read More