Home
Current Affairs January 2024

What is the correct answer?

4

To redirect an user to a particular page when a user logs in use

A. Use Response.Redirect in Session_Start event of Global.asax file

B. Use Response.Redirect in Application_Start event of Global.asax file

C. Use Server.MapPath in Session_Start event of Global.asax file

D. Use Server.MapPath in Application_Start event of Global.asax file

Correct Answer :

A. Use Response.Redirect in Session_Start event of Global.asax file


Related Questions

What is the correct answer?

4

Default Session data is stored in ASP.Net.

A. StateServer

B. Session Object

C. InProcess

D. all of the above

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

To set text programmatically without adding extra HTML tags use

A. Literal

B. Response.Write

C. Both of the above

D. None of the above

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

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

A. Value

B. Text

C. Item

D. Id

What is the correct answer?

4

What class does the ASP.NET Web Form class inherit from by default?

A. System.Web.UI.Page

B. System.Web.UI.Form

C. System.Web.GUI.Page

D. System.Web.Form

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

Radio Button's have same name and different values while Checkboxes have the reverse

A. True

B. False

What is the correct answer?

4

____________ enables you to add, modify and delete records and you will see the changes made by other users

A. OpenForwardOnly

B. OpenKeyset

C. OpenDynamic

D. OpenStatic

What is the correct answer?

4

Difference between Response.Write() andResponse.Output.Write().

A. Response.Output.Write() allows you to buffer output

B. Response.Output.Write() allows you to write formatted output

C. Response.Output.Write() allows you to flush output

D. Response.Output.Write() allows you to stream output

What is the correct answer?

4

In ASP.NET if a file is saved, it is save only in the server machine.

A. True

B. False

What is the correct answer?

4

ASP.NET can be installed on Windows 98 machine

A. True

B. False

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

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

For Adrotator control the XML file is mentioned through ________ property

A. File

B. Name

C. Advertisement File

D. Ad File

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

Cookies collection is present in

A. Response and Request

B. Request and Server

C. Response and Server

D. All of the above

What is the correct answer?

4

ASP.NET is object oriented

A. True

B. False

What is the correct answer?

4

What keyword is necessary to expose a public function as a method of a Web Service?

A. WebSub()

B. WebFunction()

C. WebMethod()

D. WebClass

What is the correct answer?

4

Can you have more than one form declaration on a web form?

A. Yes

B. No

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

Error handling can be done through Global.asax

A. True

B. False

What is the correct answer?

4

Menus can be added to an ASP.NET Page

A. True

B. False

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

To open Microsoft Word from ASP.NET page use

A. Response.Content

B. Response.ContentType

C. Request.Content

D. Request.ContentType

What is the correct answer?

4

Which of the following method must be overridden in a custom control?

A. The Paint() method

B. The Control_Build() method

C. The default constructor

D. The Render() method

What is the correct answer?

4

Why is Global.asax is used?

A. Declare Global variables

B. Implement application and session level events

C. No use

D. Both a and b

What is the correct answer?

4

File extension used for ASP.NET files.

A. .Web

B. .ASP

C. .ASPX

D. None of the above

What is the correct answer?

4

This tag in Repeater control is mandatory

A. AlternateTemplate

B. ItemTemplate

C. SeperatorTemplate

D. FooterTemplate

What is the correct answer?

4

An error handling is Structured when we use

A. On Error GoTo

B. Try Catch

C. Both of the above

D. Any one of the above