Home
Current Affairs January 2024

What is the correct answer?

4

You need to modify an ASP.NET page to prevent the browser window from going blank after a postback and to maintain the correct control focus after events are processed. What should you do?

A. Add the following attribute to the HTML code for the controls that cause the postbacks:
RunAt="client"

B. Add the following attribute to the HTML code for the controls that cause the postbacks:
EnableViewState="True"

C. Add the following attribute to the Page directive for the aspx file:
SmartNavigation="True"

D. Add the following attribute to the OutputCache directive for the aspx file:
Location="client

Correct Answer :

C. Add the following attribute to the Page directive for the aspx file:
SmartNavigation="True"


Related Questions

What is the correct answer?

4

Which of the following tool is used to manage the GAC?

A. RegSvr.exe

B. GacUtil.exe

C. GacSvr32.exe

D. GacMgr.exe

What is the correct answer?

4

____________ enables you to add, modify and delete records but you won't see the changes made by other users

A. OpenForwardOnly

B. OpenKeyset

C. OpenDynamic

D. OpenStatic

What is the correct answer?

4

How can you check if the page is visited for the first time

A. Use PostBack

B. Use IsPostBack

C. Use Post

D. Use Get

What is the correct answer?

4

This file stores your web configuration

A. Web.conf

B. Web.config

C. WebConfig.ini

D. WebConf.ini

What is the correct answer?

4

We can write an XML document from ASP.NET without mentioning the encoding format ie even without specifying 'Nothing'

A. True

B. False

What is the correct answer?

4

You need to modify an ASP.NET page to prevent the browser window from going blank after a postback and to maintain the correct control focus after events are processed. What should you do?

A. Add the following attribute to the HTML code for the controls that cause the postbacks:
RunAt="client"

B. Add the following attribute to the HTML code for the controls that cause the postbacks:
EnableViewState="True"

C. Add the following attribute to the Page directive for the aspx file:
SmartNavigation="True"

D. Add the following attribute to the OutputCache directive for the aspx file:
Location="client

What is the correct answer?

4

.DirectoryInfo gives information about any Directory

A. True

B. False

What is the correct answer?

4

This property is inapplicable in DropDownList

A. SelectionMode

B. Items

C. DataMember

D. None of the above

What is the correct answer?

4

If someone accidentally deletes the Page Directive of an ASP.NET page say "First.aspx" under "Sales", what will you do?

A. <%@ Page Language="vb" Codebehind="FirstQuarter.aspx.vb" Inherits="FirstQuarter"%>

B. <%@ Page Language="vb" Codebehind="FirstQuarter.aspx.vb" ClassName="Sales.FirstQuarter"%>

C. <%@ Page Language="vb" Codebehind="FirstQuarter.aspx.vb" Inherits="Sales.FirstQuarter"%>

D. <%@ Page Language="vb" Codebehind="FirstQuarter.aspx.vb" ClassName="Sales.FirstQuarter" Inherits="FirstQuarter"%>

What is the correct answer?

4

To save an XML file from ASP.NET use

A. Save

B. Update

C. SaveXML

D. UpdateXML

What is the correct answer?

4

Default scripting language in ASP.

A. EcmaScript

B. VBScript

C. PERL

D. JavaScript

What is the correct answer?

4

What is used to validate complex string patterns like an e-mail address?

A. Extended expressions

B. Basic expressions

C. Regular expressions

D. Irregular expressions

What is the correct answer?

4

_________ is used to write/read into a leaf node

A. Value

B. InnerText

C. Text

D. InnerValue

What is the correct answer?

4

Checkboxes have same name and different values while Radio Buttons have the reverse

A. True

B. False

What is the correct answer?

4

If a page name is WebForm1.aspx and it resides in ../Test/, then it will inherit from

A. WebForm1

B. WebForm1/Test

C. Test/WebForm1

D. Test.WebForm1

What is the correct answer?

4

Can you use client-side event handler and server-side event handler for the same ASP.NET server control?

A. Yes

B. No

What is the correct answer?

4

__________ and __________ event are the two most commonly supported server-side events. (Click and Change)

A. Click and Change

B. Click and DblClick

C. KeyUp and KeyDown

D. KeyEnter and KeyPress

What is the correct answer?

4

To read an XML file from ASP.NET use

A. XMLTextReader

B. XMLReader

C. XML.Reader

D. ReadXML

What is the correct answer?

4

You want to ensure that the user ID is saved between requests when the user is moving through pages. What will you do?

A. Use Session variables

B. Use Application variables

C. Any one of the above

D. No of the above

What is the correct answer?

4

ASP.NET is object oriented

A. True

B. False

What is the correct answer?

4

Which DLL translate XML to SQL in IIS?

A. SQLISAPI.dll

B. SQLXML.dll

C. LISXML.dll

D. SQLIIS.dll

What is the correct answer?

4

What is the default data type of a variable in ASP.NET?

A. Variant

B. Object

C. Integer

D. String

What is the correct answer?

4

_________ object represents all information sent form a server to a browser

A. Response

B. Request

C. Session

D. Application

What is the correct answer?

4

ASP.NET uses _______ as the code behind

A. VB

B. VBScript

C. JavaScript

D. Jscript

What is the correct answer?

4

Caching type supported by ASP.Net

A. Output Caching

B. DataCaching

C. a and b

D. none of the above

What is the correct answer?

4

You can send an e-mail with an attachment using only SmtpMail class

A. True

B. False

What is the correct answer?

4

Error handling can be done through Global.asax

A. True

B. False

What is the correct answer?

4

You have an image that is clickable and you want a pop-up window to display text that identifies the action that will be taken if the user clicks the image. What will you do?

A. For each image, set the AlternateText property to specify the text you want to display, and set the ToolTip property to True.

B. For each image, set the ToolTip property to specify the text you want to display.

C. In the onmouseover event handler for each image, add code that calls the RaiseBubbleEvent() method of the System.Web.UI.WebControls.Image class.

D. In the onmouseover event handler for each image, add code that calls the ToString() method of the System.Web.UI.WebControls.Image class.

What is the correct answer?

4

Of the following controls which can be used to add a control at runtime

A. Panel

B. Image

C. Label

D. All of the above

What is the correct answer?

4

While accessing values submitted to a web form, __________ property of a control is used.

A. Value

B. Text

C. Item

D. Id