Click here to Skip to main content
15,912,504 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionhow to disable previous dates in popup Calendar using Ajax Calendar control Pin
Johndas9-May-08 5:20
Johndas9-May-08 5:20 
AnswerRe: how to disable previous dates in popup Calendar using Ajax Calendar control Pin
ChrisKo9-May-08 9:02
ChrisKo9-May-08 9:02 
QuestionSingleton Pattern Pin
Pranav Thakur9-May-08 3:53
Pranav Thakur9-May-08 3:53 
AnswerRe: Singleton Pattern Pin
Sylvester george9-May-08 4:15
Sylvester george9-May-08 4:15 
AnswerRe: Singleton Pattern Pin
led mike9-May-08 4:21
led mike9-May-08 4:21 
AnswerRe: Singleton Pattern Pin
Guffa9-May-08 5:17
Guffa9-May-08 5:17 
GeneralRe: Singleton Pattern Pin
Pranav Thakur9-May-08 5:43
Pranav Thakur9-May-08 5:43 
GeneralRe: Singleton Pattern Pin
CodingYoshi9-May-08 12:02
CodingYoshi9-May-08 12:02 
Singleton Pattern is used when only one instance of a class is needed to provide services. In other words, only one instantiation. Here is an example:

public class SingletonClass
{
private static SingletonClass _myInstance;

//Private constructor so clients can not instantiate
private SingletonClass
{
}

// Clients call this when they need an instance of this class
// Needs to be static as it can be called without instantiation or instance of this class
public static SinletonClass getInstance()
{
if (_myInstance == null)
{
_myInstance = new SingletonClass();
}

return _myInstance;


}

}

The whole idea is the class checks whether an instance is available, if yes it returns it, else creates and returns it.

Let me know if you have questions.
QuestionAsp:HyperLink Pin
danasegaranea9-May-08 3:39
danasegaranea9-May-08 3:39 
AnswerRe: Asp:HyperLink Pin
Sylvester george9-May-08 3:49
Sylvester george9-May-08 3:49 
GeneralRe: Asp:HyperLink Pin
danasegaranea9-May-08 3:56
danasegaranea9-May-08 3:56 
GeneralRe: Asp:HyperLink Pin
Sylvester george9-May-08 4:02
Sylvester george9-May-08 4:02 
GeneralRe: Asp:HyperLink Pin
danasegaranea9-May-08 4:18
danasegaranea9-May-08 4:18 
QuestionError in Mailing Pin
Krazy Programmer9-May-08 3:23
Krazy Programmer9-May-08 3:23 
AnswerRe: Error in Mailing Pin
Sylvester george9-May-08 3:54
Sylvester george9-May-08 3:54 
AnswerRe: Error in Mailing Pin
eyeseetee9-May-08 3:58
eyeseetee9-May-08 3:58 
GeneralRe: Error in Mailing Pin
Krazy Programmer9-May-08 7:00
Krazy Programmer9-May-08 7:00 
QuestionA socket operation was attempted to an unreachable host Pin
eyeseetee9-May-08 3:17
eyeseetee9-May-08 3:17 
AnswerRe: A socket operation was attempted to an unreachable host Pin
Sylvester george9-May-08 3:57
Sylvester george9-May-08 3:57 
GeneralRe: A socket operation was attempted to an unreachable host Pin
eyeseetee9-May-08 3:59
eyeseetee9-May-08 3:59 
GeneralRe: A socket operation was attempted to an unreachable host Pin
Sylvester george9-May-08 4:03
Sylvester george9-May-08 4:03 
Questionfacing problem when pressing back button from browser Pin
shraddha19049-May-08 2:32
shraddha19049-May-08 2:32 
AnswerRe: facing problem when pressing back button from browser Pin
eyeseetee9-May-08 3:19
eyeseetee9-May-08 3:19 
QuestionAutoEventWireUp Pin
Pankaj Garg9-May-08 2:22
Pankaj Garg9-May-08 2:22 
Questionmessage box with or without the ajax Pin
Pankaj Garg9-May-08 1:53
Pankaj Garg9-May-08 1:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.