What happens in the Init event of a page?
1.ViewState is loaded on the page.
2. Each child control of the page is initialized to its design time values.
3.HTML is rendered.
4.None of the above.
Answer:2
Posted Date:-2022-02-01 03:55:39
1.In App_Data folder.
2.In Web.config file.
3. In MasterPage file.
4.None of the above.
Answer 21.StateServer
2.Session Object
3.InProcess
4.All of the above
Answer 31.Querystate
2.Cookies
3.Application state
4.Hidden form fields
Answer 11.Set BoweserCookieEnabled=true;
2.Set cookieless=true;
3.Use the AutoDetect setting of the cookieless attribute.
4.None of the above.
Answer 31.Link Button
2.AdRotator
3.Grid View
4. Layout
Answer 21.Response.Cache.SetNoStore();
2.Response.Cache.SetNoServerCaching();
3.Response.Cache.SetNoCaching();
4.None of these
Answer 11.Session.Close()
2.Session.End()
3. Session.Abondon()
4. Session.Discard()
Answer 31.BeginExecute=true
2. MultiThreaded=true
3.MultipleActiveResultSets=true
4.Asynchronous=true
Answer 41.True
2.False
3.all of the above
4.None of the mentioned
Answer 11. HTTP
2.Web Servers
3.Web Page
4. Web farm
Answer 41.ScriptManager control is used to dynamically register client script from code.
2. The Page.ClientScript.RegisterClientScriptBlock is used to dynamically register client script from code.
3.ScriptManagerProxy control is used to dynamically register client script from code.
4.None of the above.
Answer 31.< credential>
2.< authorization>
3.< Identity>
4.< authentication>
Answer 11.< asp:TextBox BackColor=”Yellow” BorderStyle=”Dotted” ID=”colorTxt” Runat=”Server”/>
2.< asp:TextBox BackColor=”Yellow” BorderStyle=”Dotted” Runat=”Server” />
3. < asp:TextBox BackColor=”Yellow” BorderStyle=”Dotted” ID=”colorTxt” />
4.None of the above.
Answer 21.ExecuteScalar
2.ExecuteStream
3.Open
4. ExecuteReader
Answer 31. LinqDataSource
2. ObjectDataSource
3.SqlDataSource
4.XmlDataSource
Answer 11.Server.transfer
2.Response.redirect
3.all of the above
4.none of the above
Answer 11. AsyncPostBackTrigger
2.ScriptManager
3.ScriptManagerProxy
4.None of the above.
Answer 31.ImageMap
2.Panel
3.Wizard
4.none of the above
Answer 31.Client side only.
2. Server side only.
3.Both client side and server side.
4.None of the above.
Answer 31. Anonymous
2.Basic
3.Integrated Windows authentication
4.a and c
Answer 41.If Integrated Security=false then User ID, and Password must be specified in the connection string.
2. If Integrated Security=true then current Windows account credentials are used for authentication.
3. Both A and B option are correct.
4.None of the above.
Answer 31.Windows Authentication.
2..NET Passport Authentication.
3. Forms Authentication.
4.All of the above.
Answer 41.File based dependencies
2.Key-based dependencies
3.Time-based dependencies
4.All of the above
Answer 11.Include the authentication element.
2. Include the authorization element.
3. Include the identity element.
4.Include the deny element.
Answer 21.You can use browser settings to specify where a page is cached.
2.You can use the Location attribute of the < %@ OutputCache %> directive to specify where a page is cached.
3.You can use the Location attribute in QueryString to specify where a page is cached.
4.None of the above.
Answer 21.InProc
2.StateServer
3.SQLServer
4.All of the above
Answer 41. set CausesValidation = false.
2. set RemoveValidation=true
3.set cancel=true
4.None of the above.
Answer 21.ExecuteNonQuery
2.ExecuteReader
3.ExecuteScalar
4.All of the above.
Answer 41.Session cookies
2.Persistent cookies.
3.Dummy cookies.
4.Option A and B are correct.
Answer 41.Application Object
2.Session Object
3.Response Object
4.Request Object
Answer 21.System.Int32
2. Object
3. No of effected records.
4.None of the above.
Answer 21.ViewState is loaded on the page.
2. Each child control of the page is initialized to its design time values.
3.HTML is rendered.
4.None of the above.
Answer 21.IsCallback
2.IsReusable
3. IsValid
4.IsPostBack
Answer 41.It helps to display common content in multiple pages.
2.They allow you to centralize the common functionality of your pages so that you can make updates in just one place.
3.It helps to create a common page layout.
4.All of the above.
Answer 41.You can add more than one master page in a website.
2.Master page can be nested.
3.ContentPlaceHolder control is required on a content page.
4.Both A and B option are correct.
Answer 41.ViewState=”true”
2.Set EnableViewState to false.
3. Set EnableViewState to true.
4.None of the above
Answer 21.When application is running low of memory
2. It runs random
3. When application is running for more than 15 minutes
4.none of the above
Answer 11.DataReader
2.DataSet
3.Command
4.None of the above.
Answer 21.UpdatePanel
2.ScriptManager
3.AsyncPostBackTrigger
4.None of the above.
Answer 21.PreLoad
2. Load
3.Preinit
4.Init
Answer 31.Anonymous
2.Windows
3.Basic Authentication
4.None of the mentioned
Answer 11.Content pages can reference controls in the master page.
2.Content pages can reference public properties in the master page.
3.Content pages can reference public methods in the master page
4.All of the above.
Answer 41. InProc
2.StateServer
3. SQLServer
4.Off
Answer 11.ValidationSummary
2. CompareValidator
3.RequiredFieldValidator
4.None of the above.
Answer 21. Intranet environment.
2.Public web site.
3.Desktop application.
4.None of the above.
Answer 11.Request
2.Response
3.Application
4.server address
Answer 21.Login.aspx
2.LoginPage.aspx
3.Default.aspx
4.Auth.aspx
Answer 11.Global.asax
2.Web.config in the root of the Web application
3.Machine.config
4.All of the above
Answer 21. PreRender()
2.Load()
3. Unload()
4.Init()
Answer 41.bit
2.boolean
3. int
4.Object
Answer 2