Web Developer Framework 4.0 Sample Questions – 8

Question: You are creating an ASP.NET Web site. The site is configured to use Membership and Role management providers. You need to check whether the currently logged-on user is a member of a role named Administrators. Which code segment should you use? bool isMember = Roles.GetUsersInRole(“Administrators”).Any(); bool isMember = Membership.ValidateUser(User.Identity.Name, “Administrators”);… Continue reading

Web Developer Framework 4.0 Sample Questions – 7

Question: You are implementing an ASP.NET AJAX page that contains two div elements. You need to ensure that the content of each div element can be refreshed individually, without requiring a page refresh. What should you do? Add a form, an update panel, and a script manager to the page. Add… Continue reading

Web Developer Framework 4.0 Sample Questions – 6

Question: A Web page includes the HTML shown in the following code segment. <span id=”ref”><a name=Reference>Check out</a>the FAQ on<a href=”http://www.contoso.com”>Contoso</a>’s web site for more information:<a href=”http://www.contoso.com/faq”> FAQ </a>. </span> <a href=”http://www.contoso.com/ home “> Home </a> You need to write a jQuery statement that will dynamically format in boldface all of the… Continue reading

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… Continue reading

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… Continue reading

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… Continue reading

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… Continue reading