News:

SQL Table To C# Entity Model ConverterEntity Model (Class Properties) to SQL Table ConverterIf you encounter any trouble visiting our site, please contact us.

Advertisement

Looking for job. Try JobLoader- First ever job search engine in Bangladesh. All open bd jobs now a single mouse click away.

;
protected void Page_Load(object sender, EventArgs e)
{ 
 string s = Master.CityName;
}

You need to ensure that TestPage.aspx can access the CityName property. What should you do?

  1. Add the following directive to TestPage.aspx.
    <%@ MasterType VirtualPath="~/TestMaster.master" %>

  2. Add the following directive to TestPage.aspx.
    <%@ PreviousPageType VirtualPath="~/TestMaster.master" %>

  3. Set the Strict attribute in the @ Master directive of the TestMaster.master page to true.

  4. Set the Explicit attribute in the @ Master directive of the TestMaster.master page to true.

Answer: Answer is a
Further Reading:

Useful resources, @ MasterType

comments powered by Disqus
Advertisement

BCS Preparation now even more easy. ReadBD is the place where you can find all kind of resources to be successful in BCS,Bank,Islami Bank exam and interview.

Looking for job. Try JobLoader- First ever job search engine in Bangladesh. All open bd jobs now a single mouse click away.

;