PrepAway - Latest Free Exam Questions & Answers

Category: 70-515

Exam 70-515: TS: Web Applications Development with Microsoft .NET Framework 4

Which two actions should you perform?

You are developing an ASP.NET Web page. You add the following markup to the page.

<asp:FileUpload id=”FileUpload1″ runat=”server” />
<asp:Button id=”btnUpload” Text=”Upload selected file” OnClick=”btnUpload_Click” runat=”server” />
<asp:Label id=”lblFeedback” runat=”server” />

You add the following code segment to the code-behind. (Line numbers are included for reference only.)

01 protected void btnUpload_Click(object sender, EventArgs e)
02 {
03 if (…)
04 {
05 string saveName = Path.Combine(@”c:\uploadedfiles\”, FileUpload1.FileName);
06
07 lblFeedback.Text = “File successfully uploaded.”;
08 }
09 else
10 {
11 lblFeedback.Text = “File upload failed.”;
12 }
13 }

You need to save the uploaded file and display a message to the user that indicates that the upload either succeeded or failed.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

What should you do?

You use the ASP.NET Web Application template to create an application in a new Visual Studio solution.
The project uses types that are defined in a class library project.
Source code for the class library is frequently modified.
You need to ensure that classes in the Web application project always reference the most recent version of the class library types.
What should you do?

Which two actions should you perform?

You are implementing an ASP.NET Web application.
Users will authenticate to the application with an ID.
The application will allow new users to register for an account.
The application will generate an ID for the user based on the user’s full name.
You need to implement this registration functionality.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)


Page 3 of 1112345...10...Last »