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:71384
More Search Options
RSS Available
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 »
TechNet Edge:
How it works: Active Directory Rights Management Services
Channel 9:
Inside Windows 7: Recovering Windows from System Degradation and Boot Failures
Channel 9:
Ping 39: Chrome is here, Dancing in MS Stores, Iphone & Bing
ASP.NET:
Building Twitter Search using the ASP.NET Ajax Library Beta – Part 1
Silverlight:
Using Azure as a Silverlight Streaming replacement
Silverlight:
Building extensible Silverlight applications with MEF
TechNet Edge:
Joachim Nässlander on Live Migration
ASP.NET:
T4MVC 2.6: MVC 2 Areas support
ASP.NET:
Script# Update - v0.5.5.0
Channel 10:
Difference between DirectX 10 and DirectX 11
Channel 10:
WHS Power Pack 3 Arrives
Channel 10:
ASUS Brings GUI to BIOS
ASP.NET:
Microsoft AJAX CDN – Now with SSL Support
Channel 9:
TWC9: XAML tools, Silverlight for Live Writer, Surface SDK,
ASP.NET:
PDC09 Talk: Building Amazing Business Applications with Silverlight 4, RIA Services and Visual Studio 2010 – Now in Visual Basic!!
Channel 9:
C9 Conversations: Brian Beckman on Complexity [C9 Conversations: Brian Beckman on Complexity]
Channel 10:
Black Friday Deals on Windows 7 Machines
Channel 10:
Holiday Shopping on Bing Cashback = Big Online Savings
Channel 10:
Black Friday Deals at the Microsoft Store
Channel 10:
Incredible Black Friday Deal: Windows 7 Notebook for $197
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online