.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

MVC 2.0 default page

Posted By:      Posted Date: September 02, 2010    Points: 0   Category :ASP.Net
Hi, I am new to MVC and need help. I have created MVC 2.0 application and added one view called default. The application runs fine. I set this as a start page and tried to run the application. It gives HTTP 404 error. I again set back the Index.aspx as start page but it didn't work. What colud be the error? Regards. DSA27

View Complete Post

More Related Resource Links

Setting the default start page in godaddy hosting?


 How do you set the start page with godaddy hosting? I can see no way of doing this! You do not seem to have access to the IIS settings that allow you to change it!

How to change the default page base class?


I've tried setting the <pages pageBaseType="DynamicWebPage" /> value in web.config, but when I response.write out the page type, I'm still getting Microsoft.WebPages.WebPage.

I'm simply trying to sub-class WebPage and add some additional functionality such as a dynamic PageData dictionary similar to Phil Haack's dynamic ViewData dictionary.



Default page for my Forlder(product)?


Hai all,

         I need to show the URL like this http://www.saffronrouge.com/face/moisturizers

for me  http://www.mysite.com/products/

i need to list all the products. please help me on this.

Mysite Default Master Page



We have been using the mysite section of sharepoint for 6 months and have recently changed the default.master is there any quick way of changing all the users pages without losing anydata.

I know i can go into the Master Page library for the users, upload the new default.master and then set this as default within sharepoint designer, however this will be quite a lenghty task for me to complete for all our userbase.

Could you please advise if there is a quicker way to do this.

Where is the default start page specified?

When you create a new website/web application with webforms, I've noticed that the start page is always Default.aspx, but can't find where this is specified (e.g. in the config files, etc), or if it is part of the web forms specification. Is it possible to change the startup page so that it isn't Default.aspx? If so, how do you do it?

Retracting feature which deployed custom master page delete default.master

Hi, I am not sure if solution to this issue is already posted? I have my feature which copy my custom.master which is copy of default.master from hive to master page gallery of web. The problem is that everything works fine with feature activate and deactivate but when I retract the solution from the server. All pages except site settings page stop working saying "file not found". I redeploy the solution, it starts working again. Looks like the retract is deleting default.master as well? I have this issue in 2010 as well. Any help will be appreciated. Thanks, Kashish

how to print Test-page on default Printer ?

hi how to print Test-page on default Printer  using C# Winform Code ? thank's in advance

Can't inherit default page layout on a publishing site?

  Hi,   Implementing SharePoint for the first time.   We've got a page layout that we want to use as a default. We've got it set as the default in the top site in the site collection. However, when I create a Publishing Site with Workflow, it doesn't default to using the right layout, despite the fact the sub-site's Site Settings / Page Layouts show that it it set to inherit the default page layout from its parent.   Oddly, when I create another type of site, e.g. a Blank Site, it does inherit the default layout.   Any suggestions?   :|Ben      

Request is redirected to default Web-Service page (possible cookie issue)


I have a strange problem on my web-service application:
 - when I am initating a web-service request from my client app, no matter if I am using IIS or ASP.NET development server, I'm getting the folowing exception:


System.ServiceModel.ProtocolException: The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: '


    <head><link rel="alternate" type="text/xml" href="/TestWebSvc.asmx?disco" />

    <style type="text/css">
        BODY { color: #000000; background-color: white; font-family: Verdana; margin-left: 0px; margin-top: 0px; }
        #content { margin-left: 30px; font-size: .70em; padding-bottom: 2em; }


 - in my client's app.config file I have pointed to an address like the following one: http://localhost/WebSvc/TestWebSvc.asmx .

 - I have installed SnifferHttpModule (http://geekswithblogs.net/robp/archive/2008/05/13/creating-a-sniffer-for-asp.net.aspx) to see the requests and responses of my web-service,

extra request to a default page on a callback


Hello guys,

I have a following issue on production server (the development environment is free of it) And it's only happening in Internet Explorer.

I add callback to a page in the old-fashioned way -> Page.ClientScript.RegisterClientScriptBlock(...)

The scenario is:

1) The default page is being loaded. On Page_OnLoad it assigns a NULL to some session key. Let's call it Control -> Session["Control"] = null;

2) User presses a button and gets redirected to a next page (let's call it NextPage.aspx) using javascript event -> window.location.assign(....) (also tried .href = ... - no help)

3) The NextPage.aspx assigns some value to Session["Control"] on Page_OnLoad

5) User clicks a button on the NextPage.aspx and a callback request is being sent to a server....

TA DA!!! The interesting part:

6) Along with the request to the NextPage.aspx another request is being sent to the default page.

7) The only response is being recieved by a client is a response from the NextPage.aspx BUT since the code on the default page is being executed it puts null to the Session["Control"] which screws all my following scenario. the default page doesn't recognize the request as a callback? so if(IsCallback) {} doesn't he

Change default page ?


In Visual Studio !when I  Run project it will display Default.aspx page, Now I want run project it will display mypage.aspx ! how do I setting it ?

help me !

Why do I get default error page desipite setting customErrors mode="Off"?


I could never figure it out -  set  <customErrors mode="Off" /> in all web.config files that exist under Interpub/wwwroot, but still get default error page. Which web.config does SharePoint use?

select query for linq on Default.aspx.cs page


how do i create linq query and asign that query to as data source to datalist on default.aspx.cs page

How to set default Image to RichFieldImage control in custom Publishing Page layout in Site defini




How to set  default Image to RichFieldImage control  in custom Publishing Page layout in Site definition?


Unable to access default.aspx page


When I was testing the use of some of the web parts available to some user's web page, I created a web part to list the content of some document librabry we have.

When I was editing the web part's <Actual View>, on the "Folders" category I chose the "Show this view" as "Folder of the content type", "Sent Letters" (example).

As soon as I pressed OK I was redirected to the home page of that content type list.

I tried to return to site's the Home Page by pressing the Home Page button and event typing the URL http://servername/default.aspx but I keep being redirected to the document list I chose for the web part.

This only happens to the user wich created the troublelling web part.

How can I reset the home page of that user?

Please help

SP Foundation 2010 not displaying my default site page...



I'm new to Sharepoint and have successfully installed Sharepoint Foundation 2010 on a Windows 7 x64 machine using the instructions on MSDN (instructions are fantastic; by the way).  However, when i completed executing psconfigui.exe (Sharepoint Products and Technologies Configuration Wizard) my default site was not displayed as mentioned in the setup instructions.

Instead I got a webpage cannot be found (HTTP 404) error.  The URL displayed was "http://kweeks-dell"; which doesn't seem right to me.

I was able to run the Central Administration console and display various admin tasks; however, when i tried to create a new site (i.e. "http://kweeks-dell:10178/MyFirstSite"), I get an error message "URL Name contains illegal character ':'".  Where 10178 is part of the URL of the admin site.

I'm really confused cuz i don't see any problems with my installation but yet i cannot get a site setup that i can start work with.

Anyone, I'd appreciate any help I can get.




create page with default template from master page programmatically


hi, exactly like cms , i want to create page programmatically with this options:

1: page-name

2: add template (master-page)

and etc...

help me .thanks

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend