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.

;
01 public class Routes : AreaRegistration
02 {
03 public override string AreaName
04 {
05 get { return "product"; }
06 }
08 public override void RegisterArea(AreaRegistrationContext context)
09 {
10 context.MapRoute("product_default","product/{controller}/{action}/{id}",new { controller = "Product", action = "Index",id = "" });
11 }
12 }

When you load the URL http:///product, you discover that the correct page is not returned. You need to ensure that the correct page is returned. What should you do?

  1. Replace line 10 with the following code segment

    context.MapRoute("product_default","{area}/{controller}/{action}/{id}",new {area="product", controller = "Product", action = "Index", id = "" });
    
  2. Replace line 10 with the following code segment

    context.MapRoute("product_default","area}",new {controller = "Product", action = "Index", id = "" });
    
  3. Add the following code segmnet at line 11

    Area Rgistration.RegisterAllAreas();
    
  4. Add the following Code segmnet to the Register Routes in globel asax.cs file

    Area Rgistration.RegisterAllAreas();
    
Answer: Answer is d
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.

;