The Highest Post

Related Topics
  • Question # 5 What is the full meaning of ASP Net?
  • Question # 7 What is ASP short for?
  • Question # 8 What is the difference between C# and .NET?
  • Question # 9 What is the difference between ASP and ASP NET?
  • Question # 10 Is asp net a programming language or framework?
  • Question # 11 Can you use C# without .net?
  • Question # 12 What are the advantages of ASP Net?
  • What is a web farm?
  • What is web garden?
  • What is a Web pool?
  • What is the use of worker process in asp net?
  • What is the application pool?
  • How does the IIS work?
  • What is the difference between trace and debug in asp.net?
  • Explain different types of validators in ASP.NET?
  • How many types of session state management options available in ASP.NET?
  • What are the page life cycle events?
  • How many types of cookies are there in ASP.NET?
  • There are the following two types of validation in ASP.NET
  • What does “PostBack” mean in ASP.NET?
  • Explain the ASP.NET page life cycle in brief.
  • What's the use of Response.Output.Write()?
  • In which event of page cycle is the ViewState available?
  • What is the difference between Server.Transfer and Response.Redirect?
  • From which base class all Web Forms are inherited?
  • Which validator control you use if you need to make sure the values in two different controls matched?
  • What is ViewState?
  • Where the viewstate is stored after the page postback?
  • How long the items in ViewState exists?
  • What are the different Session state management options available in ASP.NET?
  • How you can add an event handler?
  • Which type if caching will be used if we want to cache the portion of a page instead of whole page?
  • Can we have a web application running without web.Config file? Yes
  • Is it possible to create web application with both webforms and mvc?
  • How can we prevent browser from caching an ASPX page?
  • What is the good practice to implement validations in aspx page?
  • What are the event handlers that we can have in Global.asax file?
  • Can we have multiple web config files for an asp.net application?
  • What is the difference between web config and machine config?
  • What is Cross Page Posting?
  • What is RedirectPermanent in ASP.Net?
  • Explain the working of passport authentication.
  • What are the asp.net Security Controls?
  • In which event are the controls fully loaded?
  • How we can force all the validation controls to run?
  • List all templates of the Repeater control.
  • List the major built-in objects in ASP.NET?
  • What is the appSettings Section in the web.config file?
  • What is the difference between an HtmlInputCheckBox control and an HtmlInputRadioButton control?
  • Which namespaces are necessary to create a localized application?
  • What is the file extension of web service?
  • What are the components of ADO.NET?
  • What is the difference between ExecuteScalar and ExecuteNonQuery?
  • What is __ viewstate?
  • How do we identify that the page is Postback? Options
  • _________ allows executing ASP.NET application level events and setting application-level variables. Options
  • ____ file apply settings to all ASP.NET applications Options
  • In case of _______________, there is a round trip and hence puts a load on server. Options
  • Which one of the following has a parameter called as "preserveForm"?
  • _______________ is verifying the identity of a user.
  • Which authentication method allows anyone to access the ASP.NET application and that IIS doesn’t perform any authentication?
  • ASP.NET doesn’t run by itself, it runs inside the process of IIS
  • From performance point of view which is the fastest:
  • ____________event is fired just before an application is destroyed.
  • How can we force all the validation control to run?
  • Which one of the class contains the objects that we use to connect to a data source via an OLE-DB provider?
  • ______________object can hold more than one rowset from the same data source and the relationships between them.
  • Which method of command object doesn’t return any row?
  • Where do we store connection string in ASP.NET?
  • Which type of caching is good if the website is fairly static?
  • From which class global.asax file derived?
  • In which mode of storing ASP.NET session, session state is serialized and stored in a separate process?
  • Where is the viewstate information stored?
  • _________________ directive informs the compiler of any custom server control added to the page.
  • How many readers can simultaneously read data with ReaderWriterLock if there is no writer lock apply?
  • Which of the following are value types?
  • Which of the following are reference types?
  • From the following which works client side ?
  • From the following which works server side?
  • Application_Start event is available in which file ?
  • You have to log the data into database if your session times out. Which event will you use?
  • Which of the following is true when referencing master page from content page?
  • If you are using Webparts in your web page then which control is necessary?
  • What component do you need to enable for a user to add new web parts ?
  • Which of the following are required to enable users to change the title of web part ?
  • Which of the following is true ?
  • If you are using the DataSet and you have to display the data in sorted order what will you do?
  • What data types do the Range Validator control support?
  • If you are using user control in ASP.NET page which directive will be used?
  • A web application can contain.....?
  • What is the last event of web page life cycle ?
  • ByDefault ASP.Net SessionID is stored in
  • When the garbage collector runs.
  • How do we ensure encrypted communication over the internet in ASP.NET?
  • Paybill.aspx file is used to collect customer contact information like name, address phone no and credit card details. User can select change address option. If user selects changes address option then changeaddress.aspx page will be called after submitting page paybill.aspx. There isn’t any user interface on changeaddress.aspx. After processing changeaddress.aspx page, success message will be displayed on paybill.aspx. we need to write one line of code to process changeaddress.aspx page. This line should be:
  • From a dataview dv who has a column “EmpNo” from employee table, how will u bind a textbox
  • From a dataview dv who has a column “EmpNo” from employee table, how will u bind a textbox?
  • The uniqueId that gets generated at the start of the Session is stored in
  • What property is used on the datatable to indicate conflicts after update method is called?
  • The page class file is generated when:
  • You need to encrypt the SOAP header. What is the correct method to use?
  • DataSet supports which type of Architecture?
  • 1. Which of the following object is not an ASP component?
  • . The first event triggers in an aspx page is.
  • Difference between Response.Write() andResponse.Output.Write().
  • Which of the following method must be overridden in a custom control?
  • An alternative way of displaying text on web page using
  • Why is Global.asax is used?
  • Which of the following is not a member of ADODBCommand object?
  • Which DLL translate XML to SQL in IIS?
  • Default Session data is stored in ASP.Net.
  • Which of the following is the way to monitor the web application?
  • The ________________ property affects how the .Net Framework handles dates, currencies, sorting and formatting issues.
  • Where do we include the user lists for windows authentication?
  • . Where do we include the user lists for Form authentication?
  • . Where do we include the user lists for Form authentication?
  • ____________is the first method that is fired during the page load.
  • What namespace does the Web page belong in the .NET Framework class hierarchy?
  • ______________ is the DataType return in IsPostback property.
  • Name the ASP.NET object that is used to get information about the web servers.
  • Which one of the following is used to validate an e-mail address pattern?
  • Explain the significance of Server .MapPath?
  • Explain the significance of Server .MapPath?
  • For separating server-side code from client-side code on a ASP.NET page, what programming model should you use?
  • What ASP.NET object encapsulates the state of the client and the browser?
  • You need to store state data that is accessible to any user who connects to your Web application. Which object should you use?
  • What is the difference between synchronous postback and asynchronous postback?
  • Asp.Net Core Top questions

    Find by name:


    New Post

    Recent Post

  • Peter Agyekum Question # 5 What is the full meaning of ASP Net?

    Answer # It was first released in January 2002 with version 1.0 of the .NET Framework, and is the successor to Microsoft’s. Active Server Pages (ASP) technology. ASP.NET is built on the Common Language Runtime (CLR), allowing programmers to writeASP.NET code using any supported .NET language.

    Peter Agyekum Question # 7 What is ASP short for?

    Answer # ASP is also an abbreviation for Active Server Page. An application service provider (ASP) is a company that offers individuals or enterprises access over the Internet to applications and related services that would otherwise have to be located in their own personal or enterprise computers.

    Peter Agyekum Question # 8 What is the difference between C# and .NET?

    Answer # C# is a language, .NET is an application framework. The .NET libraries can run on the CLR and thus any language which can run on the CLR can also use the .NET libraries. This common .net format is what allows libraries to be shared between .net languages (C#, VB.Net, F# and others) easily.

    Robinson Bossman Question # 9 What is the difference between ASP and ASP NET?

    ASP is interpreted whereas, ASP.NET is compiled. This implies that since ASP uses VBScript; therefore, when an ASP page is executed, it is interpreted. On the other hand, ASP.NET uses .NET languages, such as C# and VB.NET, which are compiled to Microsoft Intermediate Language (MSIL).

    Robinson Bossman Question # 10 Is asp net a programming language or framework?

    Answer # ASP.NET is a framework generally written in one of two languages – VB script or C#. ASP .NET is a server-side scripting language. Your .aspx pages are just scripts that tell IIS how to render a page.

    Robinson Bossman Question # 11 Can you use C# without .net?

    Answer # C# is just a programming language. … C# is the choice for developing managed applications which run on .NET Framework. If you want to avoid it, you can go to Visual C++ (without .NET) development using Visual Studio. However, .NET framework comes pre-installed with latest Operating system.

    Kai Tran Question # 12 What are the advantages of ASP Net?

    Answer # Some key advantages of ASP.NET framework for Web development are as follows: * Built-in Windows authentication and per-application configuration keep your applications secured. * ASP.NET reduces the line of code needed to develop large applications. * The ASP code and HTML smoothly mix with each other to generate dynamic web pages. * It is an ideal server-side scripting technology that is why code runs on the windows server before displaying on the web browser.

    Kai Tran What is a web farm?

    Answer # A web farm is a group of two or more servers used to host the same site. Web farms increase the capacity of a web site, and improve availability by providing fail-over. Web farms are universally used for high-traffic and mission critical web sites.

    Jessica Raster What is web garden?

    Answer # Application pool is used to separate sets of IIS worker processes and enables a better security, reliability, and availability for any web application. Now, by default, each and every Application pool contains a single worker process. Application which contains the multiple worker process is called “Web Garden”.

    Jessica Raster What is a Web pool?

    Answer # When you run IIS 6.0 in worker process isolation mode, you can separate different Web applications and Web sites into groups known as application pools. An application pool is a group of one or more URLs that are served by a worker process or set of worker processes.

    Jessica Raster What is the use of worker process in asp net?

    Answer # Application Pool. Worker Process: Worker Process (w3wp.exe) runs the ASP.Net application in IIS. This process is responsible for managing all the request and response that are coming from the client system. All the ASP.Net functionality runs under the scope of the worker process.

    Jessica Raster What is the application pool?

    Answer # Application pools are used to separate sets of IIS worker processes that share the same configuration and application boundaries. Application pools used to isolate our web application for better security, reliability, and availability and performance and keep running without impacting each other .

    Jay Man How does the IIS work?

    Answer # IIS (Internet Information Server) is one of the most powerful web servers from Microsoft that is used to host your Web application. IIS has it’s own Process Engine to handle the request. So, when a request comes from client to server, IIS takes that request and process it and send response back to clients.

    Jay Man What is the difference between trace and debug in asp.net?

    Answer # The Debug and Trace classes have very similar methods. The primary difference is that calls to the Debug class are typically only included in Debug build and Trace are included in all builds (Debug and Release). You can control this through the compiler flags DEBUG and TRACE.

    Jay Man Explain different types of validators in ASP.NET?

    Answer # Required field Validator Range Validator Compare Validator Custom Validator Regular expression Validator Summary Validator

    Jay Man How many types of session state management options available in ASP.NET?

    Answer # In ASP.Net, there are two session state managemtn options are available, they are: In-Process Out-of-Process.

    Jay Man What are the page life cycle events?

    Answer # List the events in page life cycle. 1) Page_PreInit 2) Page_Init 3) Page_InitComplete 4) Page_PreLoad 5) Page_Load 6) Page_LoadComplete 7) Page_PreRender 8) Render

    Jay Man How many types of cookies are there in ASP.NET?

    Answer # Session Cookie – Resides on the client machine for a single session until the user logs out. Persistent Cookie – Resides on a user’s machine for a period specified for its expiry, such as 10 days, one month, and never based on the settings.

    Peter Agyekum There are the following two types of validation in ASP.NET

    Client-Side Validation Server-Side Validation

    Peter Agyekum What does “PostBack” mean in ASP.NET?

    A PostBack happens when a user takes some action (like submitting a form) that sends information from the page to the server for processing via POST method.

    Thomas Kush Explain the ASP.NET page life cycle in brief.

    ASP.NET goes through a series of stages in the life cycle of each page. Page request. The user requests a page. ASP.NET decides whether to compile it or serve it from a cache. Page Start. The Request and Response objects are created. Page Initialization. All page controls are initialized, and any themes are applied. Page Load. ASP.NET uses the view state and control state properties to set the control properties. Default values are set in the controls. Postback event handling. This event is triggered if the same page is loaded again. Rendering. ASP.NET saves the view state for the page and writes the output of rendering to the output stream. It happens just before the complete web page is sent to the user. Unload. The rendered page gets sent to the client. ASP.NET unloads page properties and performs cleanup. All unwanted objects are removed from memory.

    Peter Agyekum What's the use of Response.Output.Write()?

    We can write formatted output using Response.Output.Write().

    Peter Agyekum In which event of page cycle is the ViewState available?

    After the Init() and before the Page_Load().

    Peter Agyekum What is the difference between Server.Transfer and Response.Redirect?

    In Server.Transfer page processing transfers from one page to the other page without making a round-trip back to the client's browser. Response.Redirect is used to redirect the user's browser to another page or site. It performs trip back to the client where the client's browser is redirected to the new page

    Peter Agyekum From which base class all Web Forms are inherited?

    Page class

    Peter Agyekum Which validator control you use if you need to make sure the values in two different controls matched?

    Compare Validator control.

    Peter Agyekum What is ViewState?

    ViewState is used to retain the state of server-side objects between page post backs.

    Peter Agyekum Where the viewstate is stored after the page postback?

    ViewState is stored in a hidden field on the page at client side. ViewState is transported to the client and back to the server, and is not stored on the server or any other external source.

    Peter Agyekum How long the items in ViewState exists?

    They exist for the life of the current page.

    Peter Agyekum What are the different Session state management options available in ASP.NET?

    1) In-Process: Stores the session in memory on the web server. 2) Out-of-Process: Session state management stores data in an external server. The external server may be either a SQL Server or a State Server. All objects stored in session are required to be serializable for Out-of-Process state management.

    Peter Agyekum How you can add an event handler?

    Using the Attributes property of server side control. e.g. btnSubmit.Attributes.Add("onMouseOver","JavascriptCode();")

    Peter Agyekum Which type if caching will be used if we want to cache the portion of a page instead of whole page?

    Fragment Caching: It caches the portion of the page generated by the request. For that, we can create user controls with the below code: <%@ OutputCache Duration="120" VaryByParam="CategoryID;SelectedID"%>

    Peter Agyekum Can we have a web application running without web.Config file? Yes

    YES

    Peter Agyekum Is it possible to create web application with both webforms and mvc?

    Yes. We have to include below mvc assembly references in the web forms application to create hybrid application. System.Web.Mvc, System.Web.Razor, System.ComponentModel.DataAnnotations,

    Peter Agyekum How can we prevent browser from caching an ASPX page?

    We can SetNoStore on HttpCachePolicy object exposed by the Response object's Cache property: Response.Cache.SetNoStore (); Response.Write (DateTime.Now.ToLongTimeString ());

    Peter Agyekum What is the good practice to implement validations in aspx page?

    Client-side validation is the best way to validate data of a web page. It reduces the network traffic and saves server resources.

    Peter Agyekum What are the event handlers that we can have in Global.asax file?

    Application Events: Application_Start , Application_End, Application_AcquireRequestState, Application_AuthenticateRequest, Application_AuthorizeRequest, Application_BeginRequest, Application_Disposed, Application_EndRequest, Application_Error, Application_PostRequestHandlerExecute, Application_PreRequestHandlerExecute,Application_PreSendRequestContent, Application_PreSendRequestHeaders, Application_ReleaseRequestState, Application_ResolveRequestCache, Application_UpdateRequestCache

    Peter Agyekum Can we have multiple web config files for an asp.net application?

    Yes

    Peter Agyekum What is the difference between web config and machine config?

    Web config file is specific to a web application where as machine config is specific to a machine or server. There can be multiple web config files into an application where as we can have only one machine config file on a server.

    Peter Agyekum What is Cross Page Posting?

    When we click submit button on a web page, the page post the data to the same page. The technique in which we post the data to different pages is called Cross Page posting. This can be achieved by setting POSTBACKURL property of the button that causes the postback. Findcontrol method of PreviousPage can be used to get the posted values on the page to which the page has been posted.

    Peter Agyekum What is RedirectPermanent in ASP.Net?

    RedirectPermanent Performs a permanent redirection from the requested URL to the specified URL. Once the redirection is done, it also returns 301 Moved Permanently responses.

    Peter Agyekum Explain the working of passport authentication.

    First of all it checks passport authentication cookie. If the cookie is not available then the application redirects the user to Passport Sign on page. Passport service authenticates the user details on sign on page and if valid then stores the authenticated cookie on client machine and then redirect the user to requested page

    Peter Agyekum What are the asp.net Security Controls?

    asp:Login>: Provides a standard login capability that allows the users to enter their credentials asp:LoginName>: Allows you to display the name of the logged-in user asp:LoginStatus>: Displays whether the user is authenticated or not asp:LoginView>: Provides various login views depending on the selected template asp:PasswordRecovery>: email the users their lost password

    Peter Agyekum In which event are the controls fully loaded?

    Page load event.

    Peter Agyekum How we can force all the validation controls to run?

    The Page.Validate() method is used to force all the validation controls to run and to perform validation.

    Peter Agyekum List all templates of the Repeater control.

    ItemTemplate AlternatingltemTemplate SeparatorTemplate HeaderTemplate FooterTemplate

    Peter Agyekum List the major built-in objects in ASP.NET?

    Application, Request, Response, Server, Session, Context, Trace

    Peter Agyekum What is the appSettings Section in the web.config file?

    The appSettings block in web config file sets the user-defined values for the whole application. For example, in the following code snippet, the specified ConnectionString section is used throughout the project for database connection: configuration> appSettings> add key="ConnectionString" value="server=local; pwd=password; database=default" /> appSettings>

    Peter Agyekum What is the difference between an HtmlInputCheckBox control and an HtmlInputRadioButton control?

    In HtmlInputCheckBoxcontrol, multiple item selection is possible whereas in HtmlInputRadioButton controls, we can select only single item from the group of items.

    Peter Agyekum Which namespaces are necessary to create a localized application?

    System.Globalization System.Resources

    Peter Agyekum What is the file extension of web service?

    Web services have file extension .asmx..

    Peter Agyekum What are the components of ADO.NET?

    The components of ADO.Net are Dataset, Data Reader, Data Adaptor, Command, connection.

    Peter Agyekum What is the difference between ExecuteScalar and ExecuteNonQuery?

    ExecuteScalar returns output value where as ExecuteNonQuery does not return any value but the number of rows affected by the query. ExecuteScalar used for fetching a single value and ExecuteNonQuery used to execute Insert and Update statements.

    Peter Agyekum What is __ viewstate?

    What is viewstate? Viewstate is a technique used in ASP.NET to convey changes to the state of web forms across postbacks. A postback is the exchange of form data with the server. The viewstate of a page is, by default, stored in a hidden form field in the web page named __VIEWSTATE and this is where problems can arise.

    Peter Agyekum How do we identify that the page is Postback? Options

    - IsPostBack property - Smart Navigation property - AutoPostBack property - By using session CORRECT ANSWER : IsPostBack property

    Peter Agyekum _________ allows executing ASP.NET application level events and setting application-level variables. Options

    - Application object - Global.asax file - Impersonation - Web.config file CORRECT ANSWER : Global.asax file

    Peter Agyekum ____ file apply settings to all ASP.NET applications Options

    - web.config - machine.config - global.asax file - application object CORRECT ANSWER : machine.config

    Peter Agyekum In case of _______________, there is a round trip and hence puts a load on server. Options

    - response.redirect - server.transfer CORRECT ANSWER : response.redirect

    Peter Agyekum Which one of the following has a parameter called as "preserveForm"?

    Options - Server.transfer - Response.redirect CORRECT ANSWER : Server.transfer

    Peter Agyekum _______________ is verifying the identity of a user.

    Options - Authorization - Authentication - Impersonation - Web.config CORRECT ANSWER : Authentication

    Peter Agyekum Which authentication method allows anyone to access the ASP.NET application and that IIS doesn’t perform any authentication?

    Options - Windows integrated - Anonymous - Basic - Digest CORRECT ANSWER : Anonymous

    Peter Agyekum ASP.NET doesn’t run by itself, it runs inside the process of IIS

    Options - True - False CORRECT ANSWER : True

    Peter Agyekum From performance point of view which is the fastest:

    Options - Datalist - Datagrid - Repeater CORRECT ANSWER : Repeater

    Peter Agyekum ____________event is fired just before an application is destroyed.

    Options - Application_Error - Application_Disposed - Application_End - Application_EndRequest CORRECT ANSWER : Application_Disposed

    Peter Agyekum How can we force all the validation control to run?

    Options - Set EnableClientScript true - Page.IsValid() - Page.Validate CORRECT ANSWER : Page.Validate

    Peter Agyekum Which one of the class contains the objects that we use to connect to a data source via an OLE-DB provider?

    Options - System.XML - System.Data.SQLClient - System.Data - System.Data.OLEDB CORRECT ANSWER : System.Data.OLEDB

    Peter Agyekum ______________object can hold more than one rowset from the same data source and the relationships between them.

    Options - DataReader object - Dataset object - OleDB connection object - Data Adapter CORRECT ANSWER : Dataset object

    Peter Agyekum Which method of command object doesn’t return any row?

    Options - ExecuteReader - ExecuteScalar - ExecuteNonQuery CORRECT ANSWER : ExecuteNonQuery

    Peter Agyekum Where do we store connection string in ASP.NET?

    Options - Web.config - App.config - Global.asax - ALL CORRECT ANSWER : Web.config

    Peter Agyekum Which type of caching is good if the website is fairly static?

    - Page Fragment caching - Page output caching CORRECT ANSWER : Page output caching

    Peter Agyekum From which class global.asax file derived?

    Options - HTTP Application class - HTTP SessionState class CORRECT ANSWER : HTTP Application class

    Peter Agyekum In which mode of storing ASP.NET session, session state is serialized and stored in a separate process?

    Options - InProc - StateServer - SQL Server CORRECT ANSWER : StateServer

    Peter Agyekum Where is the viewstate information stored?

    Options - File system - Session object - In the HTML hidden field - SQL Server state CORRECT ANSWER : In the HTML hidden field

    Peter Agyekum _________________ directive informs the compiler of any custom server control added to the page.

    Options - Page - Register - OutputCache - Application CORRECT ANSWER : Register

    Peter Agyekum How many readers can simultaneously read data with ReaderWriterLock if there is no writer lock apply?

    Options - 9 - 11 - 13 - No Limit CORRECT ANSWER : No Limit

    Peter Agyekum Which of the following are value types?

    Options - String - System .Value - System.Drawing - System.Drawing.Point CORRECT ANSWER : System.Drawing.Point

    Peter Agyekum Which of the following are reference types?

    Options - String - Exception - Class - All of the above CORRECT ANSWER : All of the above

    Peter Agyekum From the following which works client side ?

    Options - ViewState - HiddenField - ControlState - All of the above CORRECT ANSWER : All of the above

    Peter Agyekum From the following which works server side?

    Options - ViewState - HiddenField - Application and session - All of the above CORRECT ANSWER : Application and session

    Peter Agyekum Application_Start event is available in which file ?

    Options - Global.asax - Local.asax - Web.config - None CORRECT ANSWER : Global.asax

    Peter Agyekum You have to log the data into database if your session times out. Which event will you use?

    Options - Session_End - Application_End - Application_Start - Application_SessionTimeout CORRECT ANSWER : Session_End

    Peter Agyekum Which of the following is true when referencing master page from content page?

    Options - Content pages can reference private indexer in the master page. - Content pages can reference private Properties in the master page. - Content pages can reference public Properties in the master page. - Content pages can reference private Methods in the master page. CORRECT ANSWER : Content pages can reference public Properties in the master page.

    Peter Agyekum If you are using Webparts in your web page then which control is necessary?

    Options - WebpartController - WebPartmanager - WebpartZone - None CORRECT ANSWER : WebPartmanager

    Peter Agyekum What component do you need to enable for a user to add new web parts ?

    Options - WebpartZone - CatalogZone - WebPartManager - WebManager CORRECT ANSWER : CatalogZone

    Peter Agyekum Which of the following are required to enable users to change the title of web part ?

    Options - CatalogZone - TitleZone - EditorZone , AppearanceEditorPart - WebPart CORRECT ANSWER : EditorZone , AppearanceEditorPart

    Peter Agyekum Which of the following is true ?

    Options - DataTable object contain DataRow and DataColoumn objects - DataSet and DataTable can be binary serialized - DataSet and DataTable can be XML serialized - All of the above CORRECT ANSWER : All of the above

    Peter Agyekum If you are using the DataSet and you have to display the data in sorted order what will you do?

    Options - Use Sort method of DataTable - Use Sort method of DataSet - Use DataViev object with each sort - Use datapaging and sort the data. CORRECT ANSWER : Use DataViev object with each sort

    Peter Agyekum What data types do the Range Validator control support?

    Options - Integer - String - Currency - All of the above CORRECT ANSWER : All of the above

    Peter Agyekum If you are using user control in ASP.NET page which directive will be used?

    Options - Register - Assembly - Implements - Aspx CORRECT ANSWER : Register

    Peter Agyekum A web application can contain.....?

    Options - Only One Web.Config File - Only Two Web.Config File - Can be more than ONE - None of the above CORRECT ANSWER : Can be more than ONE

    Peter Agyekum What is the last event of web page life cycle ?

    Options - Page_Load - Page_LoadComplete - Page_Finish - Page_Unload CORRECT ANSWER : Page_Unload

    Peter Agyekum ByDefault ASP.Net SessionID is stored in

    Options - Application - Session - Cookies - ViewState CORRECT ANSWER : Cookies

    Peter Agyekum When the garbage collector runs.

    Options - It runs automatically - EveryDay - Every alternate day - When IIS restart. CORRECT ANSWER : It runs automatically

    Peter Agyekum How do we ensure encrypted communication over the internet in ASP.NET?

    Options - Using windows authentication - By installing a server certificate and using HTTPS CORRECT ANSWER : By installing a server certificate and using HTTPS

    Peter Agyekum Paybill.aspx file is used to collect customer contact information like name, address phone no and credit card details. User can select change address option. If user selects changes address option then changeaddress.aspx page will be called after submitting page paybill.aspx. There isn’t any user interface on changeaddress.aspx. After processing changeaddress.aspx page, success message will be displayed on paybill.aspx. we need to write one line of code to process changeaddress.aspx page. This line should be:

    Options - Response.redirect (“changeaddress.aspx”) - Server.transfer(“changeaddress.aspx”) - Server.writefile(“changeaddress.aspx”) - Server.execute(“changeaddress.aspx”) CORRECT ANSWER : Server.execute(“changeaddress.aspx”)

    Peter Agyekum From a dataview dv who has a column “EmpNo” from employee table, how will u bind a textbox

    Options - Textbox.databinding.add(“Text”,dv,”EmpNo”); - Textbox.databinding.adddv,”EmpNo”); - Textbox.databinding.add(EmpNo”); - None of the above CORRECT ANSWER : Textbox.databinding.add(“Text”,dv,”EmpNo”);

    Peter Agyekum From a dataview dv who has a column “EmpNo” from employee table, how will u bind a textbox?

    Options - Textbox.databinding.add(“Text”,dv,”EmpNo”); - Textbox.databinding.adddv,”EmpNo”); - Textbox.databinding.add(EmpNo”); - None of the above CORRECT ANSWER : Textbox.databinding.add(“Text”,dv,”EmpNo”);

    Peter Agyekum The uniqueId that gets generated at the start of the Session is stored in

    Options - Client computer as a cookie - Server machine - Passed to and fro on each and every request and response - Both a and b are correct CORRECT ANSWER : Server machine

    Peter Agyekum What property is used on the datatable to indicate conflicts after update method is called?

    Options - HasErrorConflict - HasError - HasCollision - HasDataError CORRECT ANSWER : HasError

    Peter Agyekum The page class file is generated when:

    Options - Every time a page is accessed - Whenever the assembly is recompiled and deployed - Whenever the configuration settings are changed - None of the above CORRECT ANSWER : Whenever the assembly is recompiled and deployed

    Peter Agyekum You need to encrypt the SOAP header. What is the correct method to use?

    Options - Inherit the web service class from the SoapHeaderEncrypt class - Custom SOAP headers - SOAP header extensions - Enable SSL for the XML web service and configure it to encrypt the headers CORRECT ANSWER : SOAP header extensions

    Peter Agyekum DataSet supports which type of Architecture?

    Options - connection - oriented Architecture - connection – less Architecture - both - none CORRECT ANSWER : connection – less Architecture

    Peter Agyekum 1. Which of the following object is not an ASP component?

    LinkCounter Counter AdRotator File Access ANSWER: LinkCounter

    Peter Agyekum . The first event triggers in an aspx page is.

    Page_Init() Page_Load() Page_click() ANSWER: Page_Init()

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

    Response.Output.Write() allows you to buffer output Response.Output.Write() allows you to write formatted output Response.Output.Write() allows you to flush output Response.Output.Write() allows you to stream output ANSWER: Response.Output.Write() allows you to write formatted output

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

    The Paint() method The Control_Build() method The default constructor The Render() method ANSWER: The Render() method

    Peter Agyekum An alternative way of displaying text on web page using

    asp:label asp:listitem asp:button ANSWER: asp:label

    Peter Agyekum Why is Global.asax is used?

    Declare Global variables Implement application and session level events No use ANSWER: Implement application and session level events

    Peter Agyekum Which of the following is not a member of ADODBCommand object?

    ExecuteScalar ExecuteStream Open ExecuteReader ANSWER: Open

    Peter Agyekum Which DLL translate XML to SQL in IIS?

    SQLISAPI.dll SQLXML.dll LISXML.dll SQLIIS.dll ANSWER: SQLISAPI.dll

    Peter Agyekum Default Session data is stored in ASP.Net.

    StateServer Session Object InProcess all of the above ANSWER: InProcess

    Peter Agyekum Which of the following is the way to monitor the web application?

    MMC Event viewers Performance logs Alerts Snap-ins ALL ANSWER: ALL

    Peter Agyekum The ________________ property affects how the .Net Framework handles dates, currencies, sorting and formatting issues.

    CurrentUICulture CurrentCulture ANSWER: CurrentCulture

    Peter Agyekum Where do we include the user lists for windows authentication?

    < Credential> < authorization> < identity> < authentiation> ANSWER: < authorization>

    Peter Agyekum . Where do we include the user lists for Form authentication?

    < credential> < authorization> < Identity> < authentication> ANSWER: < credential>

    Peter Agyekum . Where do we include the user lists for Form authentication?

    < credential> < authorization> < Identity> < authentication> ANSWER: < credential>

    Peter Agyekum ____________is the first method that is fired during the page load.

    PreRender() Load() Unload() ANSWER: Init()

    Peter Agyekum What namespace does the Web page belong in the .NET Framework class hierarchy?

    System.Web.Control System.Web.RootBuilder System.Web.UserControl System.Web.UI.Page ANSWER: System.Web.UI.Page

    Peter Agyekum ______________ is the DataType return in IsPostback property.

    bit boolean int object string ANSWER: boolean

    Peter Agyekum Name the ASP.NET object that is used to get information about the web servers.

    The Application object The Server object The Response object The Request object ANSWER: The Server object

    Peter Agyekum Which one of the following is used to validate an e-mail address pattern?

    Extended expressions Irregular expressions Regular expressions None View Answer / Hide Answer ANSWER: Regular expressions

    Peter Agyekum Explain the significance of Server .MapPath?

    Explain the significance of Server .MapPath Returns the Virtual Path of the web folder, Maps the specified virtual path to Physical path, Returns the physical file path that corresponds to virtual specified path, All the above, ANSWER: Returns the physical file path that corresponds to virtual specified path

    Peter Agyekum Explain the significance of Server .MapPath?

    Explain the significance of Server .MapPath Returns the Virtual Path of the web folder, Maps the specified virtual path to Physical path, Returns the physical file path that corresponds to virtual specified path, All the above, ANSWER: Returns the physical file path that corresponds to virtual specified path

    Peter Agyekum For separating server-side code from client-side code on a ASP.NET page, what programming model should you use?

    Separation model Code-Behind model In-Line model ClientServer model ANSWER: Code-Behind model

    Peter Agyekum What ASP.NET object encapsulates the state of the client and the browser?

    Application Object Session Object Response Object Request Object ANSWER: Session Object

    Peter Agyekum You need to store state data that is accessible to any user who connects to your Web application. Which object should you use?

    Session, Application, Response.Cookies, Response.ViewState, ANSWER: Application

    Peter Agyekum What is the difference between synchronous postback and asynchronous postback?

    The difference between synchronous and asynchronous postback is as follows: - Asynchronous postback renders only the part of the page which is needed; while, synchronous postback renders the entire page in a postback. - Asynchronous postback executes only one postback at a time, that is, if you have two buttons doing asynchronous postback, the actions are executed one by one; while, - synchronous postback invoke all the actions at a time. - Asynchronous postback only changes the update panel that invoke the postback; while, synchronous postback changes the entire page.