IGNOU BCA MCA Students - VIVA Question Answer for .NET
.NET with C# Selected Question Answer - PART V
Ques 5) What is the lifespan for items stored in
ViewState?
Ans) The items stored in ViewState live
until the lifetime of the current page expires including the postbacks to the
same page.
Ques 6) What are
the advantages of the code-behind feature?
Ans) The code-behind feature
of ASP.NET offers a number of advantages:
- Makes
code easy to understand and debug by separating application logic from
HTML tags
- Provides
the isolation of effort between graphic designers and software engineers
- Removes
the problems of browser incompatibility by providing code files to exist
on the Web server and supporting Web pages to be compiled on demand.
Ques 7) What is AutoPostBack?
Ans) If you want a control to postback
automatically when an event is raised, you need to set the AutoPostBack property
of the control to True.
Ques 8) What
is the function of the ViewState property?
Ans) The ASP.NET 4.0 introduced a new property
called ViewStateMode for the Control class.
Now you can enable the view state to an individual control even if the view
state for an ASP.NET page is disabled.
Ques9) What is
Query String? What are its advantages and limitations?
Ans) The Query String helps in
sending the page information to the server.
The Query String has the following advantages:
The Query String has the following advantages:
- Every
browser works with Query Strings.
- It
does not require server resources and so does not exert any kind of burden
on the server.
The following are the limitations of Query String:
- Information
must be within the limit because URL does not support many characters.
- Information
is clearly visible to the user, which leads to security threats.
Ques10) What is actually returned from server to the
browser when a browser requests an .aspx file and the file is displayed?
Ans) When a browser requests an .aspx file
then the server returns a response, which is rendered into a HTML string.
Ques11) Which two new properties are added in ASP.NET
4.0 Page class?
Ans) The two new properties added in the Page
class are MetaKeyword and MetaDescription.
No comments:
Post a Comment