You have a login.ascx control and to display it in a view which method u would use..
You have a login.ascx control and to display it in a view which method u would use..
Which code would you use to get a string property from custom.master?
You have a master page custom.master. You create a nested.master page using it. You then have a
content page that uses the nested.master as its master page. Which code would you use to get a
string property from custom.master?
which page directive you use?
You are perfoming security testing on an existing asp.net web page. You notice that you are able to
issue unauthorised postback requests to the page. You need to prevent unauthorised post back
requests. which page directive you use?
You need to ensure that the page can access these types.
You’re developing an ASP web page. the pages requires access to types that are defined in an
assembly named Contoso.businessobjects.dll. You need to ensure that the page can access these
types.
You need to add a client-side function to write the response to the specified HTML element.Which function shou
You are developing an ASP.NET web page. The page includes functionality to make a web request
and to display the responde in a specified HTML element. You need to add a client-side function to
write the response to the specified HTML element.Which function should you add?
You need to apply the General theme to all pages, and you must ensure that the page-specific customizations ar
You are developing an ASP.NET web application. Your designer creates a theme named General for
general use in the application. The designer also makes page-specific changes to the default
properties of certain controls. You need to apply the General theme to all pages, and you must
ensure that the page-specific customizations are preserved. What should you do?
You need to cache the data that the action method returns
You are developing an ASP.Net MVC 2 view and controller. The controller includes an action method
that retrieves rows from a Product table in Microsoft SQL Server database. You need to cache the
data that the action method returns. What should you do?
Which code segment should you add at line 03?
You are developing an ASP.NET Web application. The application includes a Icomparer<string>
implementation named CaseInsensitiveComparer that compares strings without case sensitivity You
add the following method.(Line numbers are included for reference only.)
01 public IEnumerable<string>SortWords(string[] words)
02 {
03
04 }
You need to sort the array by word length and then by alphabetic order, ignoring case. Which code
segment should you add at line 03?
Which two actions should you perform?
You are implementing an ASP.Net web page that includes a Treeview control. You need to ensure
that the TreeView control nodes are populated only when they are first expanded. Which two
actions should you perform? (Each correct answer presents part of the solution. Choose two.)
Wich code segment should you use?
You are implementing an ASP.NET web application.The application defines the following classes.
public class Person
{
public String Name{get; set;}
publicIList<Address> Addresses{get;set;}
}
public class Address
{
public String AddressType{get; set;}
public string AddressValue{get;set;}
}
The applicaction must generate XML from personList, wich is a collection of Person instances.The
following XML is an example of the schema than the generated XML must use.
<Persons>
<Person Name=”John Doe”>
<Address Email=”John.Doe@contoso.com”/>
<Address AlternativeEmail=”John.Doe@contoso.com”/>
<Address MSNInstanceMessenger=”John.Doe@contoso.com”/>
</Person>
…..
</Persons>
You need to generate the XML. Wich code segment should you use?