You are developing an ASP.NET Web page named WebPage.aspx. The page includes a user control named UserlnfoControl.ascx You need to expose a control property named FirstName and read its value from the page. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A. Add the following code segment to UserInfoControl.ascx.cs:protected string FirstName { get; set; }You are implementing an ASP.NET MVC 2 application. In the Areas folder, you add a subfolder named Product to create a single project area. You add files named ProductController.cs and Index.aspx to the appropriate subfolders. You then
add a file named Route.cs to the Product folder that contains the following code. (Line numbers are included for reference only.)
01 public class Routes : AreaRegistration
02 {
03 public override string AreaName
04 {
05 get { return "product"; }
06 }
08 public override void RegisterArea(
AreaRegistrationContext context)
09 {
10 context.MapRoute("product_default",
"product/{controller}/{action}/{id}",
new { controller = "Product", action = "Index",
id = "" });
11 }
12 }
When you load the URL http://
What should you do?
A. Replace line 10 with the following code segment.context.MapRoute("product_default","{area}/ {controller}/{action}/{id}",new {area="product", controller = "Product", action = "Index", id = "" });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?
A. 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.You create a Windows Communication Foundation (WCF) service and deploy it with wsHttpBinding and message security enabled. You create an intermediate WCF service for logging messages sent to the primary service. The intermediate service is called via endpoint behaviour. The primary service is receiving malformed data from a client application. You need to enable inspection of the malformed data and prevent message tampering. What do you do?
A. Specify a protection level of None in the contract for the intermediate service. Disable message and transport security from the client application configuration file.You are developing an ASP.NET Web page. The page includes a List(Of Product) instance. You add a FormView control to display a single Product from this list. You need to bind the list to the FormView control. Which FormView property should you set in the code-behind file?
A. DataSourceYou work as an ASP.NET Web Application Developer for SomeCompany. The company uses Visual Studio .NET 2010 as its application development platform. You are creating an ASP.NET Web application using .NET Framework 4.0.
The Web application will be accessed by international audience. The Web application holds global and local resources for display elements that must be translated into the language that is preferred by the user. You are required to ensure
that a Label control named CompanyLabel displays text in the user's preferred language from the global resource file.
Which control markup will you use?
You work as an ASP.NET Web Application Developer for SomeCompany. The company uses Visual Studio .NET 2010 as its application development platform. You are creating an ASP.NET Web application using .NET Framework 4.0. The
application will provide information about products manufactured by the company.
The company has a branch office in Saudi Arabia.
The Sales department employees of the branch office in Saudi Arabia will use the application.
You are required to accomplish the following tasks:
The application displays contents in the correct format for the employees of the Saudi Arabia office. Each page in the application is displayed in the right-to-left format.
What will you do to accomplish these tasks? (Each correct answer represents a part of the solution. Choose two.)
A. In the Web.config file of the Web application, set the culture attribute of the element to "ar-SA".You deploy an ASP.NET application to an IIS server. You need to log health-monitoring events with severity level of error to the Windows application event log. What should you do?
A. Run the aspnet_regiis.exe command.You are developing an ASP.NET Web page that includes a text box control. The page includes a server- side method named ValidateValue. You need to configure the page so that the text box value is validated by using the ValidateValue method.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A. Use the CompareValidator control.You are creating an ASP.NET Web application that uses the SqlMembershipProvider. You plan to test locally and deploy to multiple production servers. You need to ensure that each deployed application accesses the same production database in Microsoft SQL Server. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A. Run the aspnet_regsql command to create the database on the appropriate SQL Server computer.Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Microsoft exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 70-515 exam preparations and Microsoft certification application, do not hesitate to visit our Vcedump.com to find your solutions here.