Professional Documents
Culture Documents
Tagprefix, Name Space of The DLL That Is Referenced, Assemblyname
Tagprefix, Name Space of The DLL That Is Referenced, Assemblyname
Visual Basic
The Following are the minimum requirement to run Asp.net pages =ANS – common language runtime
What executable unit gets created when we build an ASP.Net application = Ans- .DLL
The best way to delimit ASP.Net code from HTML code in your pages is using ------tags= Ans – <script>
The code will be processed on web server when the runat attribute of the < Script > tag has the following value. = Ans
– server
The Asp.net server control, which provides an alternative way of displaying text on web page, is
Ans - <asp:label>
asp:dropdownlist> tag replaces which of the HTML tags = ans-<select>
The first event to be triggered in an aspx page is = Ans – Page_Init()
Postback occurs in which of the following forms = ans – webforms
what namespace does the Web page belong in the .NET Framework class hierarchy?
ans- system.web.ui.page
How many configuration files can an ASP.NET projects have? =Ans – more than one
How do you register a user control? = Ans- add src, tagprefix,tagname
How do you post the current page to a different aspx page ?
Ans - FORM ACTION="actiopage.aspx" RUNAT="server" method="post"
Which of these namespaces used for FileAccess= Ans- system.io
To add a custom control to a Web form we have to register with =TagPrefix, Name space of the dll that is
referenced, Assemblyname
Custom Controls are derived from which of the classes =Ans – System.Web.UI.Webcontrol
A web application running on multiple servers is called as = Ans- webfarm
What is the transport protocol used to call a webservice= Ans – soap
Why is Global.asax is used = Ans – Implement application and session level events
What is the extension of a web user control file ? = Ans- .ascx
Which of the following is true ?= Ans- IsPostBack is a readonly property of System.Web.UI.Page class
The number of forms that can be added to a aspx page is =Ans – 1
How do you manage states in asp.net application = Ans- Session Objects , application Objects ,Viewstate, Cookies
The interface used by ASP.Net to create Unique Id’s? = Ans- System.UI.Naming.Container
Which property of the session object is used to set the local identifier ? = Ans- lcid
Select the caching type supported by ASP.Net= Ans = Output Caching, DataCaching
Where is the default Session data is stored in ASP.Net = Ans- inprocess
How do you disable client side validation ? = Ans – Set the ClientTarget property to Downlevel
Select the validation control used for “PatternMatching”= Ans- RegularExpressionValidator
How do you trace the application_End event on runtime? =Ans – cannot be done
How do you turn off the Session state for a webform ?
Ans- Set the EnableSession state to false in webform properties window
Select the type Processing model that asp.net simulate = Ans- event-driven
Session Object classes are defined in which of the following namespace?
Ans – System.Web.SessionState
Which DLL translate XML to SQL in IIS= Ans- SQLISAPI.dll
What is the default authentication mode for IIS =Ans – anonymous
Which of the following is not a valid state management tool? =Ans – querystate
What is the maximum number of cookies that can be allowed to a web site =Ans – 20
Select the control which does not have any visible or in-built interface = Ans- repeater
How do you explicitly kill a user’s session ? =Ans – session.abandon
What does Response.End will do? = Ans- It will stop the server process
Which control supports paging = Ans- datagrid
Where do you store the information about the user locale = Ans- System.Web.UI.Page.Culture
What is a satallite assembly ? = Ans –An Assembly containing localized resources for another assembly
Whch of the following is not a member of Response Object? = Ans – execute
The object used by SQL connection to make Security Demands = Ans- sqlclientpermission
Which of the following is not a member of ADODBCommand object = Ans – executestream
Which method do you invoke on the DataAdapter control to load your generated dataset with data? = Ans – fill
How to open more than one datareader at a time= Ans – Use different datareader and connection variable
Which objects is used to create foreign key between tables? =Ans – datarelation
Select the Interface which provides Fast, connected forward-only access to data = Ans – idatareader
How do we Delete, Update, Select data in a Dataset= Ans – using sqldataadapter
Which of the following is not a member of ConnectionObject = Ans – execute
Which method do you invoke on the Data Adapter control to load your generated dataset =ANS) Fill ( )
What is a strong name? Ans – c- Combination Of both Public,Private key and digital signature
What is the lifespan for items stored in viewstate =Ans - Exists for the Life of the current page
What data types do a Rangevalidator supports =ANS ) Integer, String C) Date
Select the output of the statement < form method=post action=”test.aspx” >
Ans – Transfers all the form data to test.aspx with HTTP headers
What is the significance of Server .MapPath = Ans) Returns the physical file path that corresponds to virtual specified path
Which namespace allows us to formauthentication ? = Ans – System.Web.Security