What is difference between a Label control and a Literal control?
Ans- The
Label control's final html code has an HTML tag; whereas, the Literal
control's final html code contains only text, which is not surrounded by
any HTML tag.
What is the difference between ASP session and ASP.NET session?
What is the difference between ASP session and ASP.NET session?
Ans- ASP
does not support cookie-less sessions;
whereas, ASP.NET does. In addition, the ASP.NET session can span across multiple servers.
What is the use of the <sessionState> tag in the web.config file?
whereas, ASP.NET does. In addition, the ASP.NET session can span across multiple servers.
What is the use of the <sessionState> tag in the web.config file?
Ans- The <sessionState>
tag is used to configure the session state features. To change the
default timeout, which is 20 minutes, you have to add the following code
snippet to the web.config file of an application: <sessionState timeout="40"/>
Which class is inherited when an ASP.NET server control is added to a Web form?
What type of the CatalogPart control enables users to restore the Web Parts that have been removed earlier by the user?Which class is inherited when an ASP.NET server control is added to a Web form?
Ans- The System.Web.UI.WebControls class is inherited when an ASP.NET server control is added to a Web form.
How many types of Cookies are available in ASP.NET?
Ans- There are two types of Cookies available in ASP.NET:
What are Web server controls in ASP.NET?
How many types of Cookies are available in ASP.NET?
Ans- There are two types of Cookies available in ASP.NET:
- Session Cookie - Resides on the client machine for a single session until the user does not log out.
- Persistent Cookie - Resides on a user's machine for a period specified for its expiry, such as 10 days, one month, and never.
What are Web server controls in ASP.NET?
Ans- The
ASP.NET Web server controls are objects on the ASP.NET pages that run
when the Web page is requested. Many Web server controls, such as button
and text box, are similar to the HTML controls. In addition to the HTML
controls, there are many controls, which include complex behavior, such
as the controls used to connect to data sources and display data.
Ans- The PageCatalogPart control.
0 comments:
Post a Comment