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.

;
public class ProductController : Controller
{
static List products = new List();
public ActionResult Index()
{
return View();
}
}

In the Views folder of your application, you add a view page named Index.aspx that includes the following @Page directive.

<%@ Page Inherits="System.Web.Mvc.ViewPage" %>

You test the application with a browser. You receive the following error message when the Index method is invoked: "The view 'Index' or its master was not found." You need to resolve the error so that the new view is displayed when the Index method is invoked. What should you do?

  1. Change the name of the Index.aspx file to Product.aspx

  2. Create a folder named Product inside the Views folder. Move Index.aspx to the Product folder

  3. Replace the @ Page directive in Index.aspx with the following value

    <%@ Page Inherits="System.Web.Mvc.ViewPage" %>
    
  4. Modify the Index method by changing its signature to the following:

    public ActionResult Index(Product p)
    
Answer: Answer is b
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.

;