Geeks With Blogs
Shashi Kumar
I am trying to explain some of the basic oops Concepts in a simple way. Class:A class is a blueprint of an object that contains variables for storing data andfunctions to perform operations on the data.It is a collection of objects.A class will not occupy any memory space and hence it is only a logicalrepresentation of dataObject:It is a real time entity.An ......

Coding Standard for C#We Usually use two type of naming Conventions.1. Camel Casing : First 2. Pascal Casing1. Declaration of variable should be in Camel casestring empName=string.Empty;2. Class Name should be in Pascalpublic class HelloWorld(){}3. Method name should be Pascalpublic string SayHello( String name ){return name;}4. All Constant should ......

Constructor is a special method of a class which will invoke automatically whenever instance or object of class is created. Constructors are responsible for object initialization and memory allocation of its class. If we create any class without constructor, the compiler will automatically create one default constructor for that class. There is always ......

Here I will explain how to count number of visitors to a website in asp.net using C# open Global.asax file and write the code as shown below1234567891011121314void Application_Start(object sender, EventArgs e){Application["VisitorCount"] = 0;} void Session_Start(object sender, EventArgs e){Application["VisitorCount"] = (int)Application["VisitorCo... ......

File Upload will not work with a partial post back. So it will not work when placed inside update panel.So to make it work within an update panel we can use sessions and save the path on file upload completed event.The best way is to use PostBackTrigger which will make file upload to work inside an update panel as below.<div> <asp:FileUpload ......

Copyright © Shashi Kumar | Powered by: GeeksWithBlogs.net