Asp.net
SET FOCUS ON PARTICULAR CONTROL IN ASP.NET PAGE---
SetFocus(txtForumReply);
DateDiff in Sql server---
http://msdn2.microsoft.com/en-us/library/aa258269(sql.80).aspx
DATEDIFF ( datepart , startdate , enddate )
Datepart
Abbreviations
Year
yy, yyyy
quarter
qq, q
Month
mm, m
dayofyear
dy, y
Day
dd, d
Week
wk, ww
Hour
hh
minute
mi, n
second
ss, s
millisecond
ms
pubs
GO
SELECT DATEDIFF(day, pubdate, getdate()) AS no_of_days
FROM titles
GO
USE OF SPLIT FUNCTION
string str = "manpreet,Firoz";
string[] sas=str.Split(',');
str = sas[0];
Query string--
if (Request.QueryString["Id"] != null && Request.QueryString["Id"] != "")
Session Variable always strores object To access it we have to convert it in specified
type
Session.Abandon();----End the Current Session.
Session.Clear();----Remove all keys and ...