Search

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

Matching Posts

  • Re: Hosting a virtual directory under MVC

    I am having this issue. I am trying to install the time tracking starter on a virtual directory with a MVC app on the root. I have called the virtual directory Time. Below is the web.config from the time app <?xml version="1.0"?> <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"> <connectionStrings> <add name="aspnet_staterKits_TimeTracker" connectionString="Server=208.78.24.53,14333;Database=databaseName;Uid=jamiejon;Password
    Posted to ASP.NET MVC (Forum) by jamie-jones on 10/30/2009
  • Re: MVC Entity framework selectionlist updatemodel

    Thanks for the suggestions, I have tried them with still no joy. I have debugged and the collection contains - collection.ToValueProvider() Count = 2 + [0] {[ProjectID, System.Web.Mvc.ValueProviderResult]} System.Collections.Generic.KeyValuePair<string,System.Web.Mvc.ValueProviderResult> + [1] {[name, System.Web.Mvc.ValueProviderResult]} System.Collections.Generic.KeyValuePair<string,System.Web.Mvc.ValueProviderResult> with correct values which looks promising. The thing is my Task object
    Posted to ASP.NET MVC (Forum) by jamie-jones on 2/26/2009
  • Re: MVC Entity framework selectionlist updatemodel

    Hi If I reverse them the projectids are shown in the dropdown and not the project name as I would like. I will still try reversing them to see if it works. Thanks for the reply.
    Posted to ASP.NET MVC (Forum) by jamie-jones on 2/26/2009
  • Re: MVC Entity framework selectionlist updatemodel

    Hi, Thanks for the reply. I have tried: public ActionResult Create() { ViewData["projectID"] = new SelectList(toDoManager.ProjectSet.ToList(), "id","name"); return View(); } // // POST: /ToDoList/Create [AcceptVerbs(HttpVerbs.Post)] public ActionResult Create(FormCollection collection) { var taskToAdd = new Task(); TryUpdateModel(taskToAdd, new[] { "name", "projectID" }, collection.ToValueProvider()); if (string.IsNullOrEmpty(taskToAdd.name)) ModelState
    Posted to ASP.NET MVC (Forum) by jamie-jones on 2/26/2009
  • MVC Entity framework selectionlist updatemodel

    Hi, I have been searching with no answers to a problem that has had me stuck all day. I am new to the MVC and entity frameworks so forgive my ignorance. I have the following tables Project(id, name) and Task(id, name, projectId) and using the entity framework dragged them on to the creator to generate the model. My issue is with creating a new task. Controller public ActionResult Create() { ViewData["Project"] = new SelectList(toDoManager.ProjectSet.ToList(), "id", "name"
    Posted to ASP.NET MVC (Forum) by jamie-jones on 2/25/2009
  • Re: Programatically create a content page from a masterpage

    Thanks for the replies. I have looked a DNN but it seems to be written in some sort of VB :) It is not really a serious project just me messing around with .net a bit. The idea of one page is a good one, I have already written a VirtualPathProvider but i could use the one page, set the master page and get all the contentplaceholders from it and an add content panels to the page then save it as a virtual file. Seems easier than writting out all the header and tags etc myself. I'll give it a go
  • Programatically create a content page from a masterpage

    What I want to achieve is to have a masterpage as a template with contentplace holders. The reason is to create a cms, so it will be a virtualfile. What I want to know is, is there a way to create a content page from a masterpage programatically or do i need to get all the placeholder controls in the master page and write the matching content controls out myself? Thanks
  • Re: VirtualFile Masterpage

    I forgot to include, I was wondering on peoples thoughts/hints on creating something like sitefinitys page editior, with dragable content sections. Should i be looking at webparts and contentplaceholders in the master pages?
    Posted to Web Forms (Forum) by jamie-jones on 11/2/2008
  • VirtualFile Masterpage

    Hi, I am developing a central cms and I have implemented a custom VirtualPathProvider which is working fine for the sites. I am not working on the content editing. I am going to use master pages for the templates. What i want to know is do I have to parse the VirtualFile content myself to find the masterpage used and change it? Any hints would be good. Thanks
    Posted to Web Forms (Forum) by jamie-jones on 11/2/2008
Page 1 of 2 (11 items) 1 2 Next >