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:746935
More Search Options
RSS Available
Matching Posts
Re: RenderComponent<TController> issue...InvalidCastException...MemberExpression versus ConstantExpression
The problem with this fix, is that as of Preview 3, it does not pass ViewData from the CompoentController to the Component page. Everything works up until I get from the ComponentController to the View, where all ViewData Mysteriously disappears. As I need to be able to send view data to the component, this doesn't help me at all. It seems I am losing the entire ViewContext...this is probably RenderView's fault.
Posted to
ASP.NET MVC
(Forum)
by
AbstractApproach
on 6/25/2008
Re: ViewData type error
Yeh that would work, but it violates encapsulation. What happens then, if you introduce a new developer into your organization, or get a third party control, that uses the same technique, as you, and perhaps also uses one of the same keys? If the new code then modifies the object in question, you can end up with unpredictable results. With a tightly controlled group of coders, and a well defined schema for how to do this (for instance calling the strings "MyControl.WebUser"), this can be
Posted to
ASP.NET MVC
(Forum)
by
AbstractApproach
on 3/24/2008
ViewData type error
I have a typed Mvc user control which expects an object of type ControlType. I have a view which expects an object of type ViewType. I'm trying to render my user control. If I were to use the following code: <%= Html.RenderUserControl("ControlPath") %> I would expect to get an error, because the ViewData types for the control and the page are not the same, and Asp will attempt to jam my page's ViewData into my control (a useful feature). However, if I then try: <%= Html
Posted to
ASP.NET MVC
(Forum)
by
AbstractApproach
on 3/23/2008
Re: Runtime configuration
[quote user="jimmy q"] What in the web.config are you storing that needs to be updated/accessed? If the data you are getting from the web.config is not central to any ASP.NET control, have you considered just creating another configuration file that you can parse and modify? [/quote] That's basically what I want to do. It isn't central to any particular control, they are site configuration settings, all of which are read simply by code in the site, not by controls. I'm just
Posted to
Getting Started
(Forum)
by
AbstractApproach
on 3/21/2008
Re: Runtime configuration
[quote user="jimmy q"] You can update the web.config at runtime but the issue here is once you do it, it will cause the appdomain to recycle hence your web application restarts. [/quote] This is uninteresting. I do not want my app domain restarting on update, so that won't do it. [quote user="jimmy q"] What I have seen some people do is create wrapper type safe properties to access the web.config. [/quote] Or I could write my own config section if I'm using web.config
Posted to
Getting Started
(Forum)
by
AbstractApproach
on 3/21/2008
Runtime configuration
I want a typesafe, simple, and easy to use runtime configuration. I can do design time configuration through web.config just fine, but I can't write to web.config at runtime (or can I, and if so, is this a good idea?). What is the best method for accomplishing this?
Posted to
Getting Started
(Forum)
by
AbstractApproach
on 3/21/2008
Re: When null is not null
[quote user="magelus"] Actually yeah, lblTitle is null. That still doesn't seem right to me. That code is executing in the Page_Load method so lblTitle (a label control declared in the designer) should be available, no? [/quote] Are you using MVC? Have you installed the latest MVC release (preview 2)? The origional, basic MVC framework DID NOT create any designer code, which would explain why lblTitle would be null. Try right clicking the page and selecting "Convert to Web Application"
Posted to
Getting Started
(Forum)
by
AbstractApproach
on 3/21/2008
DataContext
I have an asp.net mvc application powered by LINQ to SQL. One of my LINQ tables is Accounts. Account implements IPrincipal. In my Application file (Global.asax) I want to override OnAuthenticate so get the user from the database and stuff it into the HttpContext.User property. The code I currently have looks like this: // If a user is supposed to exist, check that it does, otherwise, simply send a blank user object along: if ( Context.User != null ) { if ( Context.User.Identity.IsAuthenticated )
Posted to
State Management
(Forum)
by
AbstractApproach
on 3/19/2008
Re: Admin Part (place)
Two points. CTP (the release stage of MVC right now) stands for Community technical preview. Community, I think, means the community of developers. These releases are meant for developers to play with and get to use and break, with the intent of using, but not necessarily for production purposes. I have no problem developing client's site with CTP products, but I do so with the understanding that the expected ship date of the completed version is before the expected ship date of my site, so that
Posted to
ASP.NET MVC
(Forum)
by
AbstractApproach
on 2/2/2008
Re: Admin Part (place)
I agree with Fredrik N, I would locate your admin in another project in your solution, running as a separate website on your server (this is what I usually do. It also means I can shut that site off). But, in the name of completeness and maybe simplicity, there is a way to do it as a sub folder. In /Views/Admin/ add Web.Config with the following data: < system.web > < authentication > < allow users= "*" /> < deny users= "?" /> </ authentication >
Posted to
ASP.NET MVC
(Forum)
by
AbstractApproach
on 1/31/2008
Page 1 of 3 (26 items) 1
2
3
Next >
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!
WindowsClient:
The year ahead, 2010.
TechNet Edge:
FOPE Policies Deep Dive Interview
Silverlight:
Silverlight HVP Design Update
WindowsClient:
Windows Client Developer Roundup for 12/28/2009
WindowsClient:
Snoop with 64 bit support
ASP.NET:
jQuery Hide/Close Link
ASP.NET:
Merry Christmas
TechNet Edge:
FPE Customer Story
Silverlight:
Being a writer, and having an editor. A Short Rant.
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online