Free Microsoft 70-515 Exam Dumps Questions & Answers
| Exam Code/Number: | 70-515Join the discussion |
| Exam Name: | TS: Web Applications Development with Microsoft .NET Framework 4 |
| Certification: | Microsoft |
| Free Question Number: | 186 |
| Publish Date: | Sep 26, 2026 |
| # of views: | 2597 |
|
|
|
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 page should check the status of the shopping cart and always show a cart icon when one or more
items are in the shopping cart.
The page should hide the icon when the shopping cart has no items.
You need to add an event handler to implement this requirement.
Which event handler should you add?
You are implementing a new Dynamic Data Web site.
The Web site includes a Web page that has an ObjectDataSource control named ObjectDataSource1.
ObjectDataSource1 interacts with a Web service that exposes methods for listing and editing instances of a
class named Product.
You add a GridView control named GridView1 to the page, and you specify that GridView1 should use
ObjectDataSource1 as its data source.
You then configure GridView1 to auto-generate fields and to enable editing.
You need to add Dynamic Data behavior to GridView1.
You also must ensure that users can use GridView1 to update Product instances.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
You work as an ASP.NET Web Application Developer for SomeCompany.
The company uses Visual Studio .NET 2010 as its application development platform.
You create an ASP.NET Web site using .NET Framework 4.0.
Only registered users of the company will be able to use the application.
The application holds a page named UserAccount.aspx that enables new users to register them to the
registered users' list of the company.
The UserAccount page hold numerous TextBox controls that accept users personal details, such as user
name, password, home address, zipcode, phone number, etc.
One of the TextBox controls on the page is named ZipCode in which a user enters a zip code.
You must ensure that when a user submits the UserAccount page, ZipCode must contain five numeric
digits.
What will you do to accomplish this?
(Each correct answer represents a part of the solution. Choose two.)
You are developing an ASP.NET web page that includes a Panel Control that has ID ContentSection. You need to add a text box control to the Panel control.
Which code segment should you use?
You are creating an ASP.NET web page that contains several FileUpload controls.
The page will be posted to the server after one or more image files are selected for upload.
You need to ensure that all uploaded files are saved to the server within one call to a single event handler.
What should you do?