Search

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

Matching Posts

  • Re: display image from database

    The easiest way is to create a view that has no page body: The .aspx file basically contains the <%@ Page... %> directive only. In the code-behind, use something like: 1 protected override void OnLoad(EventArgs e) 2 { 3 base .OnLoad(e); 4 MyService svc = ViewData.Model.Service; 5 6 svc.OutputFileToStream(ViewData.Model.ID, Response); 7 8 Response.End(); 9 } The controller needs to set up the ViewData.Model.Service (an instance of a class that contains an OutputFileToStream method) and ViewData
    Posted to ASP.NET MVC (Forum) by daggmano on 11/27/2008
  • Re: ActionLink

    You're already in an output block (<%= ... %>) so you don't need to enter another one. Try 'page = this.Form.Page' or 'page = this.Form.Page.ToString()' instead.
    Posted to ASP.NET MVC (Forum) by daggmano on 11/25/2008
  • Re: MVCContrib Brail Error: 'ActionLink' is not a member of 'System.Web.Mvc.Html'.

    [quote user="JeremyS"] [quote user="daggmano"]in the recently released beta (and possibly previous versions), ActionLink has been moved to the ASP.NET MVC Beta Futures[/quote] This is not correct - only the expression-based ActionLink was moved to MvcFutures - the string-based version is still in the main assembly but is now an extension method. [/quote] Whoops - you're correct. My bad.
    Posted to ASP.NET MVC (Forum) by daggmano on 10/23/2008
  • Re: MVCContrib Brail Error: 'ActionLink' is not a member of 'System.Web.Mvc.Html'.

    I'm not sure which version of ASP.NET MVC you are using, but in the recently released beta (and possibly previous versions), ActionLink has been moved to the ASP.NET MVC Beta Futures package ( http://www.codeplex.com/aspnet/Release/ProjectReleases.aspx?ReleaseId=18459 ), in the Microsoft.Web.Mvc namespace.
    Posted to ASP.NET MVC (Forum) by daggmano on 10/22/2008
  • Re: Disconnect between return type in controller method and the ViewData object in the view

    Without testing the code, I would suggest using <% foreach (var category in ViewData.Model) { %> Generally the Model property of ViewData holds the object you pass in, rather than the ViewData itself.
    Posted to ASP.NET MVC (Forum) by daggmano on 10/12/2008
  • Re: Get domain. Is this possible?

    Another possibility (within the page) is: http:// <%= Request.ServerVariables["HTTP_HOST"] %>/Documents/MyDocument.pdf
    Posted to ASP.NET MVC (Forum) by daggmano on 10/8/2008
  • Re: Hosting a virtual directory under MVC

    Maartenba, I owe you a beer! Thanks for all your help.
    Posted to ASP.NET MVC (Forum) by daggmano on 9/15/2008
  • Re: Hosting a virtual directory under MVC

    Sure - it's pretty complex (tongue held securely in cheek...) routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.IgnoreRoute("wiki/{*path}"); routes.MapRoute( "Default", // Route name "{controller}/{action}/{id}", // URL with parameters new { controller = "Home", action = "Index", id = "" } // Parameter defaults ); It's that second line - I've tried quite a few options, but either I get no access to the wiki subdir
    Posted to ASP.NET MVC (Forum) by daggmano on 9/15/2008
  • Re: Hosting a virtual directory under MVC

    That did (most of) the trick - thank you. Now I'm running into another issue. In Global.asax.cs, I have added routes.IgnoreRoute("wiki"); or a number of variations on that ("wiki*", "wiki/", etc). This has allowed the wiki virtual subdir to be accessed, but now all the routes generated using Html.ActionLink<>() have the form http://localhost/wiki?controller=Cont&action=Index Somehow "wiki" has overtaken my app!!! Any ideas as to what is going
    Posted to ASP.NET MVC (Forum) by daggmano on 9/14/2008
  • Re: MVC release date?

    I'm not sure anyone really knows yet, although I heard somewhere that the next official release will be a beta, not a preview. But I could be wrong...
    Posted to ASP.NET MVC (Forum) by daggmano on 9/14/2008
Page 1 of 3 (23 items) 1 2 3 Next >