Search

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

Matching Posts

  • Re: Page.ClientScript.RegisterClientScriptInclude not working

    The ClientScriptManager is called when an MVC page is run if you have runat server form tag. The problem is that by the time you reach the <%=%> code that part of the page has already rendered, which means if you use the Html extention method for rendering the usercontrol, instead of the WinForms method of using usercontrols it is to late to add them.
    Posted to ASP.NET MVC (Forum) by slynch on 1/3/2008
  • Re: Why does MvcHandler.ProcessRequest throw Exception when no controller found?

    [quote user="voodoo_john"] What's the solution to this issue? This seems like pretty unfriendly behaviour out-of-the-box that every other MVC framework seems to get right by default.... [/quote] You could probably catch the error in the Request_Error event of the global.asax, and have it send the 404. And please keep in mind that this is a very early CTP.
    Posted to ASP.NET MVC (Forum) by slynch on 1/3/2008
  • Re: Not able to access viewdata

    To allow for pressing F5 to debug you will want to set your default.aspx to the start page and then navigate to the page that you are trying to debug, since VS2008 is not aware that the pathing is different with an Mvc app then a normal WebForms website (though it would be nice).
    Posted to ASP.NET MVC (Forum) by slynch on 12/15/2007
  • Re: Not able to access viewdata

    Are you using a typed view ViewPage<>? If no, then there isnt any intellisence to be had for the ViewData since your just working against a Dictionary<string,object>. So you would access it like ViewData["ProductId"]. If you want intellisence on the ViewData change the page to inherit from ViewPage<Type>. Also, when you get the "object reference not set to an instance" does your Url look like /Products/List or /Products/List.aspx? If it looks like /Products/List
    Posted to ASP.NET MVC (Forum) by slynch on 12/15/2007
  • Re: Absolute Url in routes and HtmlHelper.ActionLink

    Not really sure about the first one, but I suspect that at the moment, if you wanted to get it to work right now you would have to subclass the RouteTable, RouteCollection and probobly the Route classes to have them take into account the domain. Which wouldnt be to hard, but I'm sure this is something they will be adding in a future drop. The second question is alot easier, as long as you exclude the aggregate page for now, to get to work with this CTP, though would likely change if they implimented
    Posted to ASP.NET MVC (Forum) by slynch on 12/15/2007
  • Re: Ambiguous controllers

    The following should work till they have the GetControllerType of the MvcHandler class take namespaces into account, at which time I suggest you forget these use theirs. public class MvcRouteHandlerNS : MvcRouteHandler { protected override IHttpHandler GetHttpHandler(RequestContext requestContext) { return new MvcHandlerNS() { RequestContext = requestContext }; } } public class MvcHandlerNS: MvcHandler { protected static object _customLock = new object (); protected static Dictionary< string
    Posted to ASP.NET MVC (Forum) by slynch on 12/14/2007
  • Re: Controls in CodeBehind

    You should just need to right click and select Convert to Web Application to get the designer.cs file, and after that it should work.
    Posted to ASP.NET MVC (Forum) by slynch on 12/14/2007
  • Re: UpdateFrom and Encoding

    Sorry, what you ment was pretty obvious now that I think of it. You might want to consider adding something like this so it wont be replace if you update to the next drop of the MVCToolkit namespace System.Web.Mvc.BindingHelpers{ public static class CustomBindingHelperExtentions { public static void UpdateFrom( this object obj, NameValueCollection values, Expression < Func < string , string >> encoder, params string [] keys) { NameValueCollection encodedValues = new NameValueCollection
    Posted to ASP.NET MVC (Forum) by slynch on 12/14/2007
  • Re: UpdateFrom and Encoding

    How the javascript getting into the form fields?
    Posted to ASP.NET MVC (Forum) by slynch on 12/14/2007
  • Re: Helper Development - How's about Section Template?

    [quote user="JeremyS"] For databinding my server controls I'm using the CodeExpressionBuilder found at http://weblogs.asp.net/infinitiesloop/archive/2006/08/09/The-CodeExpressionBuilder.aspx . Instead of having to set the DataSource from codebehind I can do something like this: < cw:MyCustomControl runat= "server" id= "control" DataSource= ' <%$ code: ViewData["someCollection"] %> ' /> [/quote] I'm glad I came by here, I had been
    Posted to ASP.NET MVC (Forum) by slynch on 12/14/2007
Page 1 of 8 (71 items) 1 2 3 4 5 Next > ... Last »