Search

You searched for the word(s): userid:820885

Matching Posts

  • How could we use xmlrpc under MVC framework

    Hey,all As the title,could anyone give me a suggestion?
    Posted to ASP.NET MVC (Forum) by freechoice on 9/13/2008
  • Re: Html Pager Helper

    Here is mine,Just a sample(Thanks to Timothy Khouri) : Controller: 1 CMSDataContext cmsdatacontext = new CMSDataContext(); 2 //List counts per page 3 const int PAGE_SIZE = 50; 4 //List Contents 5 public ActionResult Index( int ? page) 6 { 7 //If we havn't give a page number,then return the firtst page 8 page = page ?? 1; 9 //Total pages 10 int totalPages = (ContentDALayer.GetContents().Count() / PAGE_SIZE) + 1; 11 //current page 12 int currentPage = Math.Min(Math.Max(1, page.Value), totalPages
    Posted to ASP.NET MVC (Forum) by freechoice on 9/11/2008
  • Re: DropDownList

    In you controller Action statement,you should have a line like the following 1 ViewData[ "parent_id" ] = new SelectList(repository.Categories.ToList(), "id" , "name" ,category.parent_id); 2 then, you could use select list in viewpage like this: <%= Html.DropDownList("","parent_id",ViewData["parent_id"]) %>
    Posted to ASP.NET MVC (Forum) by freechoice on 9/9/2008
  • Re: problem with how I use ActionResult / trying to return List of simple class def

    Hi Scott has said that: "Preview 5" doesn't have a built-in [Bind] attribute like above just yet (although we are considering adding it as a built-in feature of ASP.NET MVC in the future). However all of the framework infrastructure necessary to implement a [Bind] attribute like above is now implemented in preview 5. The open source MVCContrib project also has a DataBind attribute like above that you can use today. So you can not use the Bind attribute in this version(Maybe the next
    Posted to ASP.NET MVC (Forum) by freechoice on 9/9/2008
  • Re: Trying to publish asp.net mvc appliaction.

    It's so strange,try to restart you IIS web service,It is really looks the Routing Problem,What's the version of MVC framework installed on you deployment server? what's the error message now?
    Posted to ASP.NET MVC (Forum) by freechoice on 9/9/2008
  • Re: Trying to publish asp.net mvc appliaction.

    Try to update your web.config file The HttpdModels statement should like this: <httpModules> <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> <add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> </httpModules>
    Posted to ASP.NET MVC (Forum) by freechoice on 9/9/2008
  • Re: problem with how I use ActionResult / trying to return List of simple class def

    As you see,the Return for the Index in the Controller is ActionResult So you need to return an ActionResult type,right? maybe you could try that 1 public ActionResult Index() 2 { 3 ContactList member = yourBusiness.GetMembers(); 4 return View( "Index" ,member); 5 } 6 7 You could use ModelData in your View Page Hope that can help you.
    Posted to ASP.NET MVC (Forum) by freechoice on 9/9/2008
  • Re: Trying to publish asp.net mvc appliaction.

    What is the URL when you open the homepage? If it is domainname.com/Views/Home/Index.aspx I think it is the Routing Error(Check the route rules in the Global.asax) and Your URL rewriting Patterns
    Posted to ASP.NET MVC (Forum) by freechoice on 9/9/2008
  • Re: Trying to publish asp.net mvc appliaction.

    Yes,It looks an enviroment changing problem. That Just means you only update your enviroment And You have to update your project from preview4 to preview 5 you need to do the following 1,unreference the referenced dll files from your project,and re-reference them(contain:System.Web.MVC.dll,system.web.abstraction.dll,system.web.routing.dll,Microsoft.web.mvc.dll) 2 ,Update your web.config file to the new version(You just need to create a new blank MVC project and copy the content from new web.config
    Posted to ASP.NET MVC (Forum) by freechoice on 9/9/2008
  • Re: Runtime error after upgrading to preview 5

    Yes,Of Course it should be happend,When you uninstall preview4 and setup the preview5 version, That Just means you only update yourenviroment And You have to update your project from preview4 to preview 5 you need to do the following 1,unreference the referenced dll files from your project,and re-reference them(contain:System.Web.MVC.dll,system.web.abstraction.dll,system.web.routing.dll,Microsoft.web.mvc.dll) 2 ,Update your web.config file to the new version(You just need to create a new blank MVC
    Posted to ASP.NET MVC (Forum) by freechoice on 9/8/2008
Page 1 of 5 (43 items) 1 2 3 4 5 Next >