Search

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

Matching Posts

  • MVC & Paging

    Just a quick question: Can we expect some sort of native support for paging in the next release? Thanks!
    Posted to ASP.NET MVC (Forum) by AlexBecker on 10/10/2008
  • Get rendered HTML before returning

    Sorry for opening another thread of this kind but nobody answered to the others asking the same thing so I thought I'd try my luck. I need to get the rendered HTML of a view like it was once possible in preview2 using RenderView. I want to return the HTML through on a Json object along with other properties. Is there any non hack way of going about this? Thanks in advance.
    Posted to ASP.NET MVC (Forum) by AlexBecker on 7/27/2008
  • Re: Why routing {controller}.mvc isn't built into the framework?

    [quote user="CW2"] Would not it be possible to declare routes just once without ".mvc" and then modify route table during application startup to include ".mvc" when running on IIS6? Or perhaps better the other way round, declare them with ".mvc" and remove the substring (simple Replace method call) on IIS7? [/quote] Yes, I suppose I'll have to do something like that..
    Posted to ASP.NET MVC (Forum) by AlexBecker on 7/25/2008
  • Re: Why routing {controller}.mvc isn't built into the framework?

    [quote user="SteveSanderson"]It seems that most ASP.NET MVC users are quite enthusiastic about using "clean" extensionless URLs, so in most cases the ".mvc" is unwanted. There are lots of ways to achieve extensionless URLs in IIS6 (e.g. these and this ). [/quote] Well, of course I want my urls to be clean, I mean.. why would I want the .mvc thing or .whatever always stuck in the URL?. But as you know, to have extensionless URLs in IIS6 the routes must be set up with
    Posted to ASP.NET MVC (Forum) by AlexBecker on 7/25/2008
  • Why routing {controller}.mvc isn't built into the framework?

    Hi. So, this whole routing thing is really driving me insane. For every route I declare I have to also declare a duplicate and set the controller part to {controller}.mvc . Not only that but I have to declare all of the .mvc routes before the non .mvc ones thus making mi Html.ActionLinks to be rendered as {controller}.mvc . So if I were to have a large group of routes I would have to constantly check if every route has it's corresponding .mvc copy. What I don't really understand is why this
    Posted to ASP.NET MVC (Forum) by AlexBecker on 7/24/2008
  • SelectLists and null values

    Most times I don't want a preselected item. It's too bad that SelectList(System.Collections.IEnumerable items, string dataValueField, string dataTextField, object selectedValue) doesn't take a null for selectedValue and automatically appends a <option value="" /> to the <select>.
    Posted to ASP.NET MVC (Forum) by AlexBecker on 6/25/2008
  • Re: Drop Down List NOT from datasource

    If you don't want to write the HTML you can do something like this Controller: Dictionary<string,string> states = new Dictionary<string,string>(); states.Add("NY", "New York"); states.Add("PA", "Pennsylvania"); .... ViewData["States"] = new SelectList(states, "Key", "Value", "NY"); return View("Index"); //// Page.aspx <%= Html.DropDownList("States") %>
    Posted to ASP.NET MVC (Forum) by AlexBecker on 6/23/2008
  • Re: DropDownList

    I'll check that out, thank you!
    Posted to Web Forms (Forum) by AlexBecker on 6/20/2008
  • DropDownList

    Most times I don't want a preselected item. it's too bad DropDownList(System.Collections.IEnumerable items, string dataValueField, string dataTextField, object selectedValue) doesn't take a null for selectedValue. Well, it takes it, it just doesn't do anything with it. Is there any other way than adding a new "blank" item in the IEnumerable? Thanks
    Posted to Web Forms (Forum) by AlexBecker on 6/19/2008
  • Re: Another MVC + AJAX

    Awesome, I didn't even try View() for rendering user controls, I thought it only worked for pages. Thanks!
    Posted to ASP.NET MVC (Forum) by AlexBecker on 6/18/2008
Page 1 of 2 (19 items) 1 2 Next >