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:150341
More Search Options
RSS Available
Matching Posts
Dynamic Areas and/or nested areas
Hullo, i'm stumbling blindly around MVC 2 RC and wondering if I can have dynamic areas. That is I want to on appstart read some info from my db and define n number of (unique) areas. Areas seem to be a bit concrete atm, am I forced to use this "Areas" folder? Also I am wondering if I can have nested areas (which might just an area with one more forward slashes in its' name). To put this in some context my app has a series of products defined in a database, each of these products
Posted to
ASP.NET MVC
(Forum)
by
worldspawn[]
on 12/27/2009
Re: The "throw" keyword
I've since learned from the horses mouth, this is by design (from the ever-more-accessible MS .net dev team).
Posted to
C#
(Forum)
by
worldspawn[]
on 12/11/2009
Re: The "throw" keyword
Cool thanks for the affirmation. Nice to know i'm not crazy Sent an email to Haack and Guthrie, maybe we'll hear from them. Plz vote up this bug here: https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=519110
Posted to
C#
(Forum)
by
worldspawn[]
on 12/8/2009
Re: The "throw" keyword
Hey you're write, in this console example it does work as expected... it appears to be a problem that occurs in an ASP.Net app only. See this example: using System; using System.Web.Mvc; namespace Shivam.MVC.Reporting.Testing.Controllers { public class HomeController : Controller { public ActionResult Index() { try { throw new Exception("OMG Ex"); } catch { throw; } return View(); } } } And the stacktrace is: [Exception: OMG Ex] Shivam.MVC.Reporting.Testing.Controllers.HomeController
Posted to
C#
(Forum)
by
worldspawn[]
on 12/7/2009
Re: Model Binding against a collection
In my Get action method? I'll give it a try...
Posted to
ASP.NET MVC
(Forum)
by
worldspawn[]
on 12/6/2009
Re: Model Binding to and abstract/interface type
Yeh, I am using service locator. But i'm new to it so i'm avoiding any new use cases with it. I'm using a bastardised form of Sharp Architecture with LLBLGen. 'Tis pretty cool.
Posted to
ASP.NET MVC
(Forum)
by
worldspawn[]
on 12/6/2009
The "throw" keyword
Hi, Consider this example: try { DoSomethingExceptional(); } catch(Exception){ PerformSomeActionLikeLogging(); throw; } I read once/saw in a presentation long long ago that using "throw;" just like that on it's own is supposed to rethrow the original exception. Which it sort of does, however, with it's current implementation its absolutely useless. Why? Because it does rethrow the original exception except the line number provided in the exception detail is the line of the "throw"
Posted to
C#
(Forum)
by
worldspawn[]
on 12/6/2009
Model Binding against a collection
Hi folks, I'm having a problem with model binding to a collection. The problem is it only seems to work one way (writes only). Heres my code: <% foreach (var item in Model.InstituteDetails){ %> <div class="instituteDetail"> <div class="field"> <label for="">Name of person / department</label> <%= Html.TextBoxIDP(string.Format("instituteDetails[{0}].AttentionTo", Model.InstituteDetails.IndexOf(item)), null, new { maxlength
Posted to
ASP.NET MVC
(Forum)
by
worldspawn[]
on 12/5/2009
Model Binding to and from an abstract/interface type
Like the title says you can't do this out of the box. You need someway of telling the model binder what the strong type is. Presenting (working title) WeakBinder: public class WeakBinder : DataAnnotationsModelBinder { protected override object CreateModel(ControllerContext controllerContext, ModelBindingContext bindingContext, System.Type modelType) { if (modelType.IsInterface || modelType.IsAbstract) if (bindingContext.ValueProvider.ContainsKey(bindingContext.ModelName + ".BindingType"
Posted to
ASP.NET MVC
(Forum)
by
worldspawn[]
on 12/5/2009
Re: Conditionally overriding ActionResults
Yep thanks Augi, i'll move it to a ControllerActionInvoker. Cheers
Posted to
ASP.NET MVC
(Forum)
by
worldspawn[]
on 11/14/2009
Page 1 of 95 (941 items) 1
2
3
4
5
Next >
...
Last »
Channel 9:
Nikolaj Bjørner and Leonardo de Moura: The Z3 Constraint Solver
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
Channel 9:
Channel 9 Live at PDC09: TWoC9 Day 3
Channel 10:
Microsoft's Mobicast: Stiched Cell Streams
Channel 10:
Festive Bing
TechNet Edge:
How Microsoft Reduces Operational Risk through Business Continuity Management
Channel 9:
Jeffrey Van Gogh and Bart De Smet: Inside System.Interactive
WindowsClient:
Runtime Fault Injection using TestAPI
TechNet Edge:
TechNet Radio: Community Corner with John Weston (Episode 1)
TechNet Edge:
Windows Firestarter Events (Part 3 of 5): IE8 - Browse the Web in Style!
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online