PrepAway - Latest Free Exam Questions & Answers

Tag: 70-528

What should you do to implement a login page that authenticates users against the CKWebUsers database?

You work as a Microsoft ASP.NET developer at Domain.com. The Domain.com network contains an Oracle database server named Certkiller -DB01. Certkiller -DB01 hosts a database named CKWebUsers. Domain.com uses the Microsoft Visual Studio .NET 2005 as their application development platform. You use a Microsoft Windows XP Professional client computer named Certkiller -WS528 as your development computer. Internet Information Services (IIS) is installed on Certkiller -WS528.
You are developing a Web application for Domain.com’s extranet Web site. The extranet Web site is accessed by Domain.com users as well as some of Domain.com’s suppliers and affiliates. All users that must access the Web application have their credentials stored in the CKWebUsers database. You want to implement a login page that authenticates users against the CKWebUsers database.
What should you do?

What control should you add a control to the ZoneTemplate element of the EditorZone control?

You are developing a Web application that enables the administration and management of the existing Domain.com Web site. The Web application has a page named subcategories.aspx that contains a WebPart control named _productsWebPart. The _productsWebPart WebPart control has a property named _category of type String. You apply the WebBrowsable attribute to the _category property. You also add an EditorZone control to the subcategories.aspx page. The code for the EditorZone control is shown in the following exhibit.

<asp:EditorZone ID="_editorZone" Runat="Server">
<ZoneTemplate>
</ZoneTemplate>
</asp:EditorZone>

You must add a control to the ZoneTemplate element of the EditorZone control to allow users to edit the _category property.
What control should you add?

What code segment should you use to add code to the subcategories.aspx page that connects the two WebPart cont

You are developing a Web application that enables the administration and management of the existing Domain.com Web site. The Web application has a page named subcategories.aspx that makes use of WebParts. The code for the WebPart is shown in the following exhibit.

<asp:WebPartZone ID="_webPartZone" Runat="Server"> <ZoneTemplate>
<custom:CategoryWebPart ID="_category" Runat="Server" /> <custom:SubcategoryWebPart ID="_subcat" Runat="Server" /> </ZoneTemplate>
</asp:WebPartZone>

The CategoryWebPart control displays a list of product categories from the CKProducts database. The administrator can either select categories from a DropDownList or manually enter a category in a TextBox. The SubcategoryWebPart control displays the subcategories that belong to the category specified in the CategoryWebPart control. You modify the Web.config file to allow the SubcategoryWebPart control to use the category entered or selected in the CategoryWebPart control. You now need to add code to the subcategories.aspx page that connects the two WebPart controls every time the page is loaded.
What code segment should you use?

What should you do to associate Button controls on the Web application’s default.aspx page?

You are developing a Web application that that implements themes. You create a theme named BasicTheme that contains two skin files named default.skin and alt.skin. The default.skin file represents the default skin file for all controls in the Web application. You want to associate Button controls on the Web application’s default.aspx page with a non-default skin.
What should you do?

What code segment should you use to override the CreateChildControls method to accomplish this?

You are developing a custom control named ProductsGrid that will be used in the redevelopment of Domain.com’s e-Commerce Web applications. The ProductsGrid control contains a TextBox control and a DropDownList control that allows for the editing of product descriptions. The code for the ProductsGrid control is shown in the following exhibit.

[ParseChildren(True)]
public class ProductsGrid : Control, INamingContainer {
private Desc _desc;
private ITemplate _descTemplate;
public Desc Desc
{
get{return _desc;}
set{_desc = value;}
}
[TemplateContainer(typeof(DescTemplateContainer))] public ITemplate DescTemplate
{
get{return _descTemplate;}
set{_descTemplate = value;}
}
protected override void CreateChildControls()
{
// TO DO
}
}
public class DescTemplateContainer : Control, INamingContainer {
private Desc _desc;
public DescTemplateContainer(Desc desc)
{
_desc = desc;
}
public Desc Desc
{
get { return _desc;}
set { _desc = value;}
}
}
You need to ensure that the content specified in the DescTemplate() property is rendered by the ProductsGrid control. You need to override the CreateChildControls method to accomplish this.
What code segment should you use?

What should you do to ensure that the Certkiller .com users who should not have access to the CKFinance databa

You work as a Microsoft ASP.NET developer at Domain.com. Domain.com uses the Microsoft Visual Studio .NET 2005 as their application development platform. The Domain.com network contains an SQL Server 2005 database server named Certkiller -DB01 and a Web server named Certkiller -SR15. Certkiller -DB01 hosts a database named CKFinance that is accessed by an in-house Web application. The Web application is hosted on Certkiller -SR15 and uses SQL Server authentication to access the CKFinance database. Several Domain.com users in the Sales department have access to Certkiller -SR15 but do not have permission to access the CKFinance database. You need to ensure that the Domain.com users who should not have access to the CKFinance database cannot use the Web application to access the database.
What should you do?

What should you do to configure the New Web site dialog box in Visual Studio 2005 to meet your requirements?

You use a Microsoft Windows XP Professional client computer named Certkiller -WS528 as your development computer. Internet Information Services (IIS) is installed on Certkiller -WS528. All ASP.NET 1.1 Web applications hosted by IIS on Certkiller -WS528 are accessed on port 80. You are required to develop a new ASP.NET inventory application named CKInvtry that will be integrated into Domain.com’s existing e-Commerce Web site. You want to store all source files for the CKInvtry application in the
C:InetpubwwwrootCKInvtry folder on TESTING-WS528. During development you must be able to access CKInvtry at the URL "http://localhost:80/CKInvtry". You need to configure the New Web site dialog box in Visual Studio 2005 to meet your requirements.
What should you do?

What should you do to find the cause of the exception being raised in line 05?

You create a Web Form that displays a GridView. The GridViews data source is a DataSet named dsOrders. The DataSet contains two DataTables named Orders and OrderDetails. You create a relation between the two DataTables using the following code segment. (Line numbers are included for reference only.)

01 dtOrders =dsOrders.Tables("Orders")
02 dtOrderDetails = dsOrders.Tables("OrderDetails") 03 colParent = dtOrders.Columns("OrderID")
04 colChild =dtOrderDetails.Columns("ParentOrderID") 05 dsOrders.Relations.Add("Rel1", colParent,colChild, False)

You need to find the cause of the exception being raised in line 05.
What should you do?

What should you do to ensure that the Total column is set to the value of the Price column multiplied?

You are creating a DataTable. You use the following code segment to create the DataTable. (Line numbers are included for reference only.)

01 Dim dt As New DataTable("Products")
02 dt.Columns.Add(New DataColumn("Price", _GetType(Decimal))) 03 dt.Columns.Add(New DataColumn("Quantity", _GetType(Int32))) 04 Dim dc As DataColumn = New DataColumn("Total", _GetType(Decimal)) 05 dt.Columns.Add(dc)

You need to ensure that the Total column is set to the value of the Price column multiplied by the Quantity column when new rows are added or changed. What should you do?


Page 2 of 1012345...10...Last »