PrepAway - Latest Free Exam Questions & Answers

Category: 70-528

Exam 70-528: TS: Microsoft .NET Framework 2.0 – Web-based Client Development

which value should you set the DataTabless DefaultView.RowStateFilter?

You are creating a Web Form. The Web Form allows users to rename or delete products in a list. You create a DataTable named dtProducts that is bound to a GridView.
DataTable has the following four rows.

dtProducts.Rows[0]["ProductName"] ="Soap";
dtProducts.Rows[1]["ProductName"]="Book";
dtProducts.Rows[2]["ProductName"]="Computer";
dtProducts.Rows[3]["ProductName"]="Spoon";
dtProducts.AcceptChanges();

The user utilizes a Web Form to delete the first product. You need to set the RowStateFilter property of the DataTables DefaultView so that only products that have not been deleted are shown. To which value should you set the DataTabless DefaultView.RowStateFilter?

Which code segment should you use?

You have an SQL query that takes one minute to execute. You use the following code segment to execute the SQL query asynchronously.

IAsyncResult ar = cmd.BeginExecuteReader();

You need to execute a method named DoWork() that takes one second to run while the SQL query is executing.
DoWork() must run as many times as possible while the SQL query is executing.
Which code segment should you use?

What are two possible ways to achieve this goal?

You write a logging function for a Web Form. You call the logging function from the Page_Unload event handler.
You test the Web Form and notice that the Page_Unload event handler does not call the logging function.
You need to ensure that the logging function is called. What are two possible ways to achieve this goal?
(Each correct answer presents a complete solution. Choose two.)

Which three actions should you perform?

You are creating a Web Form. The Web Form allows users to select a category from a DropDownList control. Valid categories are stored in a database table. A SqlDataSource control retrieves the category data. You set the SelectQuery property of the SqlDataSource control by using the following code segment.

SELECT [CategoryID], [CategoryName] FROM [Categories]

You need to bind the DropDownList control to the data source control so that the category name is displayed to the user. The ID of the category must be stored as the user’s selected item.
Which three actions should you perform?
(Each correct answer presents part of the solution. Choose three.)

Which two additional actions should you perform?

You create a Web Form. The Web Form allows users to log on to a Web site. You implement the login logic using a Login control named Login1. The membership data for the application is stored in a SQL Express database in the App_Data directory. You need to configure your application so that the membership data is stored in a local Microsoft SQL Server database.
You add the following code segment to the Web.config file.

connectionStringName="MySqlProviderConnection"/>

Which two additional actions should you perform?
(Each correct answer presents part of the solution. Choose two.)

Which form of authentication should you use?

You are creating a Web application that will run on an intranet. The Web application reads comma-delimited text files. The text files reside in a subdirectory below the Web application’s root directory. Users must not be able to navigate directly to these files in a Web browser unless they are members of the Accounting role. You need to write an ASP.NET HTTP handler that will use the FileAuthorizationModule class.
Which form of authentication should you use?

Which tool should you use?

You are working with a team of developers on a Web site. You copy the Web site from the staging server to work on it locally. While making changes, you create new C# source code files and delete old ones. You need to ensure that your changes propagate to the staging server without affecting any files that you have not modified. Which tool should you use?


Page 7 of 10« First...56789...Last »