ASP.Net/EnableViewState

I would like to know
-if ASP.net is installed withh IIS server or separate and what do they mean by Web Server, Application Server and Web Application

-a simple example of when EnableViewState needs to be true or false

thanks
jskfanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

VovinECommented:
Regarding definitions:
Web Server - the server that serves web content to the client browsers. It requests fles from several sources(filesystem, web applications, etc...) In windows it is IIS which acts also as an Application Server.
Application Server - service that is capable of running web applications and from there delivering content to external services like web server.
Web Applcation - application written by user, in this forum context it may be ASP.NET application. Application consists of configuration file (web.config) application controler class Global.asax and aspx pages. Web Application runs within Application server.

Regarding ViewState. As you probably know Viewstate is the state of the controls, that is being sent to the user browser in encoded form every time the page postbacks.
It may be sometimes helpfull to get rid of the viewstate to decrease number of bytes sent to the browsers. On the other hand it might be used in several other places:
Viewstate persists control state, so you might not want to do this. This may be for example for textbox with user password. It will be needed only once, whenthe postbacks so ou do not need to persist this information.
EnableViewState can be set also for some one time message labels. If you make the label invisible at design time and disable viewstate, then when you set its visibility to true it will show only once - it will disapear after second postback.

0
jskfanAuthor Commented:
regarding the first point, if you are an ASP.NET with VB.NET programmer, can you tell me where are you going to install the Visual Studio/VB.Net/ASP.net and the IIS in order to build a web application?

I think IIS is installed on the windows server.I also think the Database will reside in the SQL server. what about the rest?

Thanks
0
VovinECommented:
VB.NET and ASP.NET comes with .NET Framework. ASP.NET is installed if you have IIS installed previously.
Typical folder is %WINDOWSFOLDER%\Microsoft.NET\Framework\ sub folders contain different version of .NET Framework (for v1.1 it is v1.1.4322).
Visual studio is installed where the installer ask it to be installed. Default folder is: C:\Program Files\Microsoft Visual Studio .NET 2003
for other versions of visual studio path is similiar tough different by version.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
VovinECommented:
Oh, if you're asking about server it is best to have Visual studio on the same machine that IIS is run :)
It is not needed for the production tough.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.