Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Interview Questions
How many WebPartManager controls should be on a page?
Posted By :
Posted Date :
June 04, 2014
In order to have WebParts on a page there has to be just one WebPartManager control to manage all the WebParts on the page.
You can also find related Interview Question to
How many WebPartManager controls should be on a page?
Does ViewState is responsible for maintaining data across the Page Post Back for Postback controls (like textbox, dropdownlist) and non-postbackcontrols(like label)?
It is false. For NonPostback controls it is true but for postback controls, ASP.NET retrieves their values one by one from the HTTP request and copies them to the control values while creating the HTTP response.
How do you validate the controls in an ASP.NET page?
Using special validation controls such as Range Validator, Email Validator we can validate the controls in ASP.NET page.
What is the WebPartManager sealed class? Why do we add this on WebPart Page?
The WebPartManager sealed class is responsible for managing everything occurring on a WebPart page, such as the WebParts (controls), events, and misc. functionality that will occur in WebPartZones. For example, the WebPartManager is responsible for the functionality that is provided when you are working with moving a WebPart from WebPartZone to WebPartZone. It is known as the "the central class of the Web Part Control Set."
What are server controls?
ASP.NET server controls are components that run on the server and encapsulate user-interface and other related functionality. They are used in ASP.NET pages and in ASP.NET code-behind classes.
The context menu can be applied for the following controls ?
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.
What is the difference between login controls and Forms authentication?
Login controls are an easy way to implement Forms authentication without having to write any code. For example, the Login control performs the same functions you would normally perform when using the FormsAuthentication classÃÂ¢Ã¢âÂ¬Ã¢â¬Âprompt for user credentials, validate them, and issue the authentication ticketÃÂ¢Ã¢âÂ¬Ã¢â¬Âbut with all the functionality wrapped in a control that you can just drag from the Toolbox in Visual Studio. Under the covers, the login control uses the FormsAuthentication class (for example, to issue the authentication ticket) and ASP.NET membership (to validate the user credentials). Naturally, you can still use Forms authentication yourself, and applications you have that currently use it will continue to run.
How many types of validation controls are provided by ASP.NET ?
There are six main types of validation controls:-
RequiredFieldValidator: It checks whether the control have any value. It's used when you want the control should not be empty.
RangeValidator: It checks if the value in validated control is in that specific range.
CompareValidator: It checks that the value in controls should match the value in other control.
RegularExpressionValidator: When we want the control value should match with a specific regular expression.
CustomValidator: It is used to define UserDefined validation.
ValidationSummary: It displays summary of all current validation errors.
Where is image data loaded into ImageList controls actually stored in the project?
Each form has an associated resource file (with a .resx extension) where image data and localized strings are stored.You can see this by clicking the Show All Files icon in the Solution Explorer.
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
which is the default property for all controls?
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