ViewState is responsible for maintaining data across the Page Post Back
Does ViewState is responsible for maintaining data across the Page Post Back for Postback controls (like textbox, dropdownlist) and non-postbackcontrols(like label)?
It is false. For NonPostback controls it is true but for postback controls, ASP.NET retrieves their values one by one from the HTTP request and copies them to the control values while creating the HTTP response.
Compete in Cloud Code Contests, Win Cash
CloudSpokes is a new dev community, focused exclusively on cloud platforms. Come develop new skills with real world contests and win cash for winning entries. Join us!
What is Bugzillas features?
* integrated, product-based granular security schema
* inter-bug dependencies and dependency graphing
* advanced reporting capabilities ·
* a robust, stable RDBMS back-end
* extensive configurability ·
* a very well-understood and well-thought-out natural bug resolution protocol
* email, XML, console, and HTTP APIs ·
* available integration with automated software configuration management systems, including Perforce and CVS (through the Bugzilla email interface and checkin/checkout scripts)
Background of ASP.NET Session State
ASP.NET session state enables you to store and retrieve values for a user as the user navigates ASP.NET pages in a Web application. HTTP is a stateless protocol. This means that a Web server treats each HTTP request for a page as an independent request. The server retains no knowledge of variable values that were used during previous requests. ASP.NET session state identifies requests from the same browser during a limited time window as a session, and provides a way to persist variable values for the duration of that session. By default, ASP.NET session state is enabled for all ASP.NET applications.
Alternatives to session state include the following:
*
Application state, which stores variables that can be accessed by all users of an ASP.NET application.
*
Profile properties, which persists user values in a data store without expiring them.
*
ASP.NET caching, which stores values in memory that is available to all ASP.NET applications.
*
View state, which persists values in a page.
*
Cookies.
*
The query string and fields on an HTML form that are available from an HTTP request.
ASP.NET 2.0 Interview Questions
1. What is the name of the property of ASP.NET page that you can query to determine that a ASP.NET page is being requested not data being submitted to web server? A. FirstGet B. Initialized C. IncludesData D. IsPostBack
IsPostBack
2. While creating a Web site with the help of Visual Studio 2005 on a remote computer that does not have Front Page Server Extensions installed, which Web site type will you create in Visual Studio 2005? A. Remote HTTP B. File C. FTP D. Local HTTP
Hypertext Transfer Protocol (HTTP)
3. If you want to create a new Web site with the help of Visual Studio 2005 on a Web server that is hosted by your ISP (Internet Services provider) and the Web server has Front Page Server Extensions installed, what type of Web site type would you create in Visual Studio 2005? A. Local HTTP B. File C. FTP D. Remote HTTP
Hypertext Transfer Protocol (HTTP)
4. For separating server-side code from client-side code on a ASP.NET page, what programming model should you use? A. Separation model B. Code-Behind model C. In-Line model D. ClientServer model
5. Amit created a new Web site using Visual Studio 2005 in programming language C#. Later, Amit received an existing Web page from his boss, which consisted of the Contact.aspx file with the Contact.aspx.vb code-behind page. What must Amit do to use these files? A. Amit can simply add the files Contact.aspx, Contact.aspx.vb into the existing Web site, because ASP.NET 2.0 supports Web sites that have Web pages that were programmed with different languages. B. The Contact.aspx file will work, but Amit must rewrite the code-behind page using C#. C. Both files Contact.aspx and Contact.aspx.vb must be rewritten in C#. D. Amit must create a new Web site that contains these files Contact.aspx and Contact.aspx.vb. Set a Web reference to the new site.
6. If you want to make a configuration setting change in your server that will affect to all Web and Windows applications on the current machine. Where you will make the changes? A. Global.asax B. Web.config C. Machine.config D. Global.asax
7. If you want to make a configuration setting change that will affect only the current Web application. Which file will you change? A. Web.config that is in the same folder as the Machine.config file B. Web.config in the root of the Web application C. Machine.config D. Global.asax
8. For making a configuration setting change that will affect only the current Web application. Is there any tool that has a user-friendly Graphical User Interface (GUI)? A. The Microsoft Management Utility B. Microsoft Word C. Visual Studio, using the Tools > Options path D. Web Site Administration Tool