Web Developer Framework 4.0 Sample Questions – 5

Question: You are implementing an ASP.NET Web site that uses a custom server control named Task. Task is defined as shown in the following list. “Class name: Task “Namespace: DevControls “Assembly: TestServerControl.dll “Base class: System.Web.UI.WebControls.WebControl You copy TestServerControl.dll to the Web site s Bin folder. You need to allow the Task control to be declaratively used on site pages that do not contain an explicit @ Register directive. Which configuration should you add to the web.config file?

Correct Answer: 3 Question: You create an ASP.NET page that contains the following tag.

You need to write … Click here to continue…..

Web Developer Framework 4.0 Sample Questions – 4

Question: You are implementing a Web page that allows users to upload files to a Web server. The page includes a form that has a Submit button. You need to reject files larger than 1 MB. What should you do? Add an HTML input type= file control. Add an onSubmit handler to the form to check the file size and cancel the form submission if the file size is too large. Add an HTML input type= file control. Add an onChange handler to the input control to check the file size and cancel the upload if the file size is … Click here to continue…..

Web Developer Framework 4.0 Sample Questions – 3

Question: You have created an ASP.NET server control named Shopping Cart for use by other developers. Some developers report that the Shopping Cart control does not function properly with ViewState disabled. You want to ensure that all instances of the Shopping Cart control work even if ViewState is disabled. What should you do? Require developers to set EnableViewStateMac to true. Store state in ControlState instead of ViewState. Serialize the state into an Application state entry called “MyControl”. Require developers to change the session state mode to SQLServer. Correct Answer: 2 Question: You are troubleshooting an ASP.NET Web application. System administrators … Click here to continue…..

Web Developer Framework 4.0 Sample Questions – 2

Question: You are implementing an ASP.NET Web site that will be accessed by an international audience. The site contains global and local resources for display elements that must be translated into the language that is selected by the user. You need to ensure that the Label control named lblCompany displays text in the user s selected language from the global resource file. Which control markup should you use?

Correct Answer: 4 Question: You are implementing an ASP.NET page in an e-commerce application. Code in a btnAddToCart_Click event handler adds a product to the shopping cart. The … Click here to continue…..

Web Developer Framework 4.0 Sample Questions – 1

Question: You are implementing an ASP.NET application that uses data-bound GridView controls in multiple pages. You add JavaScript code to periodically update specific types of data items in these GridView controls. You need to ensure that the JavaScript code can locate the HTML elements created for each row in these GridView controls, without needing to be changed if the controls are moved from one page to another. What should you do? Replace the GridView control with a ListView control. Set the ClientIDMode attribute to Predictable in the web.config file. Set the ClientIDRowSuffix attribute of each unique GridView control to a … Click here to continue…..