Data abstraction refers to, providing only essential
features by hiding its background details.
example:
class result
{
int marks;
float percentage;
char name[20];
void input();
void output();
}
main()
{
bank b1;
b1.input();
b1.output();
}
in the above example, b1 is an object calling input and
output member functions, but that code is invisible to the
object b1.
Wednesday, October 14, 2009
Thursday, October 8, 2009
Start day, dayname and end day of the month
http://anuraj.wordpress.com/2007/12/03/last-day-and-first-day-of-the-month-using-c/
//Get startday of month
DateTime firstDay = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1);
//Get endday of month
DateTime.DaysInMonth(DateTime.Now.Year,DateTime.Now.Month)
if day is 1 of any month use DateTime.Now.DayOfWeek returns dayname
else DateTime.Now.AddDays(-(DateTime.Now.Day-1)).DayOfWeek returns dayname
//Get startday of month
DateTime firstDay = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1);
//Get endday of month
DateTime.DaysInMonth(DateTime.Now.Year,DateTime.Now.Month)
if day is 1 of any month use DateTime.Now.DayOfWeek returns dayname
else DateTime.Now.AddDays(-(DateTime.Now.Day-1)).DayOfWeek returns dayname
Wednesday, September 30, 2009
CustomErrors asp.net
http://www.c-sharpcorner.com/UploadFile/akukreja/CustomErrorHandlingASPNET11142005235614PM/CustomErrorHandlingASPNET.aspx
http://dotnetguts.blogspot.com/2007/10/error-handling-in-net-with-example.html
Otherwise, create a error page with two divs such as divMain and divError. divMain contains common error message with warning image. Upon clicking that image show the divError with error message. For that in global.asax, put error message in Context.Items["Mesg"] and use server.transfer(errorpage.aspx,true) and set customerrors to off
[Note: server.transfer(folder/errorpage.aspx,true) shows Error executing child request for errorpage.aspx ]
http://dotnetguts.blogspot.com/2007/10/error-handling-in-net-with-example.html
Otherwise, create a error page with two divs such as divMain and divError. divMain contains common error message with warning image. Upon clicking that image show the divError with error message. For that in global.asax, put error message in Context.Items["Mesg"] and use server.transfer(errorpage.aspx,true) and set customerrors to off
[Note: server.transfer(folder/errorpage.aspx,true) shows Error executing child request for errorpage.aspx ]
Tuesday, September 29, 2009
My Logins
sqlservercentral.com - arun@bpinfotek.com
csharpcorner.com-arunkumar.niit
dotnetspider.com-arunkumar.niit
forums.asp.net-arunkumar.niit
codeproject.com-arun@bpinfotek.com
Books/Articles
scribd.com-arun_ama
Slideshare.net-arunanitha
docstoc.com-arunanitha
csharpcorner.com-arunkumar.niit
dotnetspider.com-arunkumar.niit
forums.asp.net-arunkumar.niit
codeproject.com-arun@bpinfotek.com
Books/Articles
scribd.com-arun_ama
Slideshare.net-arunanitha
docstoc.com-arunanitha
maximum row size in sql is 8060 bytes
In my global.asax page, I used to insert error details to error details table whereas few errors could not get inserted this is because of maximum row size in sql is 8060 bytes.
Workaround is to Log Errors in a xml file http://www.c-sharpcorner.com/uploadfile/jamesupton/errorhandler11142005040047am/errorhandler.aspx?login=true&user=arunkumar.niit
Workaround is to Log Errors in a xml file http://www.c-sharpcorner.com/uploadfile/jamesupton/errorhandler11142005040047am/errorhandler.aspx?login=true&user=arunkumar.niit
Asp.net Concepts Guide
http://www.careerride.com/ASPNet-Tutorial.aspx
http://www.c-sharpcorner.com/UploadFile/puranindia/WhatisASPNET09242009010116AM/WhatisASPNET.aspx
http://www.code-magazine.com/Article.aspx?quickid=0401041
http://www.almohandes.org/vb/archive/index.php/t-2240.html
http://www.c-sharpcorner.com/UploadFile/puranindia/WhatisASPNET09242009010116AM/WhatisASPNET.aspx
http://www.code-magazine.com/Article.aspx?quickid=0401041
http://www.almohandes.org/vb/archive/index.php/t-2240.html
Subscribe to:
Posts (Atom)
