Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:808308
More Search Options
RSS Available
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 >
Silverlight:
ASP.NET 4, ASP.NET MVC, and Silverlight 4 Videos of my Talks in Europe
Channel 10:
Faster Solid State Drives for Windows 7 Arrive
ASP.NET:
Death to confirmation dialogs with jquery.undoable
Channel 9:
E2E: Brian Beckman and Erik Meijer - Co/Contravariance in Physics and Programming, 1 of 2
TechNet Edge:
Windows Server 2008 R2 Quick Look #3 - PowerShell V2
ASP.NET:
2009 Blogged - Greatest Hits
WindowsClient:
2009 Blogged - Greatest Hits
Channel 9:
Nikolaj Bjørner and Leonardo de Moura: The Z3 Constraint Solver
Channel 9:
MEF & Silverlight 4 Beta - Part 2, Imports & Exports
Channel 9:
MEF & Silverlight 4 Beta - Part 1, Introduction
WindowsClient:
The (Near) Final Word on Multi-Monitor Taskbars for Windows 7 - Ultramon vs. DisplayFusion
WindowsClient:
Looking back at 2009, and forward to 2010
Silverlight:
Polling Video – A Viable sub-second alternative?
TechNet Edge:
Windows Server 2008 R2 Quick Look #2 - Active Directory Recycle Bin
Channel 10:
I'm a Windows 7 PC Themes
Channel 10:
24 Years of Windows Box Art
WindowsClient:
Silverlight tutorial: HOW TO build CommandLink Control in Silverlight with Expression Blend 3 and Behaviors
ASP.NET:
Converting an RGB Color To Hex With JavaScript
Silverlight:
Silverlight HVP Design – Configuration & Scenarios
Channel 9:
Channel 9 Live at PDC09: Day 3 Welcome
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online