Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Basics
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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....
  #2 (permalink)  
Old July 9th, 2011, 05:29 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 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!
  #3 (permalink)  
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
  #4 (permalink)  
Old July 11th, 2011, 07:46 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 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!
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 09:58 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.