Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Interview Questions
Can we use multiple ScriptManager on a page?
Posted By :
Posted Date :
October 23, 2010
No. You can use only one ScriptManager on a page.
You can also find related Interview Question to
Can we use multiple ScriptManager on a page?
How can you cache Multiple Versions of a Page?
Using output cache you can cache multiple versions of the page.
We can either use,.
- @ OutputCache directive at design time declaratively for Declarative Approach
- Response.Cacheclass at runtime for Programmatic Approach .
With @ OutputCache directive four parameters of VaryByParam , VaryByControl, VaryByHeader, VaryByCustom allows user to cache page depending on query string, control value, request's HTTP header, request's HTTP header respectively.
For an example:
To turn off caching,
<%@ OutputCache Location="None" VaryByParam="None" %>
To cache the output for each HTTP request that arrives with a different ID:
<%@ OutputCache duration="60" varybyparam=" ID" %>
Response.Cache.VaryByParams["ID"] = true;
Is Multiple Pages possible In Single asp.net Page?
We can achieve this in simple way by using FrameSet ....
Can we add multiple script managers on a single page?
No it will throw error, a page can contain only one ScriptManager control in its hierarchy. To register services and scripts for nested pages, user controls, or components when the parent page already has a ScriptManager control, use the ScriptManagerProxy control.
The purpose of ScriptManager is just to enables AJAX In Your Web Application. so adding multiple ScriptManager doesn't make any sense.
Is it possible to use Multiple Script Manager in the Web page?
No , I think, It is not possible to use it .But Single Script manager is enough.
Can we have multiple document.ready() function on the same page?
YES. We can have any number of document.ready() function on the same page.
Can code inside multiple catch block be executed?
No, Code can not execute in mutiple catch block
Which levels of the index can have multiple pages?
Does C# support multiple inheritance?
C# does not support multiple inheritance. A class can inherit from maximum one base class, although it can implement any number of interfaces. Like Java, C# does not support multiple inheritance, meaning that classes cannot inherit from more than one class
What property do you have to set to tell the grid which page to go to when using?
Datgrid's CurrentPageIndex Property
Explain the life cycle of an ASP .NET page.
Life cycle of ASP.Net Web Form
Page Request >> Start >> Page Init >> Page Load >> Validation >>
PostBack Event Handling >> Page Rendering >> Page Unload
Page Request - When the page is requested ASP.Net determines
whether the page is to be parsed and compiled or a cached verion
of the page is to be sent without running the page.
Start - Page propertied REQUEST and RESPONSE are SET, if the
page is pastback request then the IsPostBack property is SET and
in addition to this UICulture property is also SET.
Page Initilization - In this the UniqueID of each property is SET.
If the request was postback the data is not yet loaded from the
Page Load - If it was a postback request then the data gets loaded
in the control from the ViewState and control property are set.
Validation - If any control validation present, they are performed
and IsValid property is SET for each control.
PostBack Event Handling - If it was a postback request then any
event handlers are called.
Page Rendering - Before this the viewstate is saved from the page
and RENDER method of each page is called.
Page Unload - Page is fully rendered and sent to the client(Browser)
and is discarded. Page property RESPONSE and REQUEST are unloaded.
Can we have multiple threads in one App domain ?
One or more threads run in an AppDomain. An AppDomain is a runtime representation of a logical process within a physical process. Each AppDomain is started with a single thread, but can create additional threads from any of its threads.
Note :- All threading classes are defined in System.Threading namespace.
cross page posting in ASP.NET2.0???
What is a master page ?
1) A master page provides a framework in which the content of each page on a web site is presented. Master pages make it easy to create pages that have a consistent look.
2) The pages that provide the content that's displayed in a master page are called content pages .
3) The content of each content page is displayed in the master page's content placeholder
How do you turn off cookies for one page in your site?
Use the Cookie. Discard Property which Gets or sets the discard flag set by the server. When
true, this property instructs the client application
not to save the Cookie on the users hard disk when a session ends.
it can be turned off by mentioning cookie state= false in web.config file
Quick Links For Interview Questions Categories:
Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.
So, Start looking our
section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.
Hall of Fame
Terms of Service
Tell A Friend