Wrox Programmer Forums
|
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 8th, 2011, 12:28 PM
Registered User
 
Join Date: Jul 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Question Instances in asp.net

Hi Everyone,

I request anyone to please help me out here.

Till date i have never came across concept called as "INSTANCE in ASP.NET";

Please let me know about the "instance in ASP.NET".

What are the instance in ASP.NET..? how many instances are there in

ASP.NET..?


i have been dying to know about these. Please help me out.


THANKS IN ADVANCE....
 
Old July 9th, 2011, 05:29 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

I guess it depends on the context, as Instance is quite a generic term. It could refer to the name of a SQL Server instance (e.g. in the string .\SqlExpress, SqlExpress is the instance name).

It could also refer to programming where you create an instance of an object. E.g. in this code:

Code:
 
public class Person
{
  public string FirstName { get; set; }
}
....
 
Person somebody = new Person() { FirstName = "John" };
the somebody variable refers to an instance of the class Person.

For more information: http://en.wikipedia.org/wiki/Object_(computer_science)

Since you create as many objects / instances as you need, you can't really say how many instances there are in ASP.NET.

Hope this helps,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old July 11th, 2011, 07:01 AM
Registered User
 
Join Date: Jul 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Smile Thanks imar

Hi imar,

thnx for the explanation you have given on instances of asp.net.

actually I came across this questions in a technical interview that i have been
for and i replied the same thing but the technical interviewer said that's not the correct answer.

hence i want to know

but any way thnx for the explanation.

hope i could return the favor one day.

take care
bye
 
Old July 11th, 2011, 07:46 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
but the technical interviewer said that's not the correct answer.
Then they are asking vague questions. Both my answers are correct but there might be other cases where the word instance is used. So, in this case, the interviewer is probably at fault here by not asking questions that can be answered ;-)

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
How many Instances are running dash dev C# 2005 7 December 5th, 2007 04:05 PM
Question on DataSet instances VictorQ BOOK: Beginning C# 2005 Databases 0 January 28th, 2007 11:11 PM
Running 2 instances of tomcat steevo590 Apache Tomcat 0 April 5th, 2006 12:53 PM
Named Instances and Performance Hal Levy SQL Server 2000 0 May 23rd, 2005 12:50 PM
Preventing new instances of the same application aehb C# 3 May 18th, 2005 01:14 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.