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:346326
More Search Options
RSS Available
Matching Posts
Re: Preview 2 URL Bug
+1 on not requiring a context to get a url. I have a service layer as part of my application, and it knows nothing of the views/view context. I was looking for a straightforward way to get a url for a specific controller and action, but there doesn't seem to be a trivial way. If I'm wrong, please let me know. I wrote about it here . Maybe an extension method to ControllerBase is needed that hacks around this?
Posted to
ASP.NET MVC
(Forum)
by
jamesgeurts
on 3/13/2008
Get view url without ViewContext
Hey all, I'm not sure if this goes against the design of how routing works, but I'd like to get the url for a view/controller without specifying a view context. I'd like to get this info from my service layer that has no concept of the view. I'm trying to do (which obviously fails because UrlHelper requires a valid ViewContext): UrlHelper url = new UrlHelper(null); return url.Action("View", "MyController", new { id = myObject.Id }); Is there a simple/recommended
Posted to
ASP.NET MVC
(Forum)
by
jamesgeurts
on 3/13/2008
Re: BindingHelperExtensions.UpdateFrom() with a checkbox throws an error
That works, thanks!
Posted to
ASP.NET MVC
(Forum)
by
jamesgeurts
on 3/10/2008
BindingHelperExtensions.UpdateFrom() with a checkbox throws an error
Hi... I'm using BindingHelperExtensions.UpdateFrom(myobj, Request.Form); to attempt to populate my object from the form fields. It throws an error when it encounters checkboxes, though. Examining LoadExceptions gives the following info: AttemptedValue: "on" ErrorMessage: MyBoolProperty is not a valid Boolean; on is not a valid value for Boolean. PropertyName: MyBoolProperty It seems like a pretty straight forward usage to me, so please let me know if I'm missing something obvious
Posted to
ASP.NET MVC
(Forum)
by
jamesgeurts
on 3/10/2008
How to specify form attributes with Html.Form<>?
Hi, I'd like to output a form to the page, but I'm having troubles adding attributes. For example, I'm trying the following code: <% using (Html.Form<ContactController>(action => action.Create(), FormExtensions.FormMethod.post, new { name = "contactForm" })) { %> <!-- // The form body --> <% } %> I've resorted to manually coding the <form> and using Url.Action to specify the correct action, but I do like the using statement. Is this a bug
Posted to
ASP.NET MVC
(Forum)
by
jamesgeurts
on 1/28/2008
Re: How do i do this, with MVC + a Site.master?
Master pages are not supposed to be rendered directly. They're referenced by pages/views. So you'll need to create a view that uses your master file. The default MvcApplication project shows how to do this with the Home controller, index & about views, and site.master.
Posted to
ASP.NET MVC
(Forum)
by
jamesgeurts
on 1/27/2008
Re: Windows 2003 problems
fyi, I setup a step by step "tutorial" for how to setup asp.net mvc on iis6 with pretty urls . It uses the .mvc extension mapping and isapi_rewrite, so it performs well and has nice urls.
Posted to
ASP.NET MVC
(Forum)
by
jamesgeurts
on 1/25/2008
Filed under: MVC, iis6, asp.net
Re: MVC On II6 Without the ".mvc" Extension
fyi, I setup a step by step "tutorial" for how to setup asp.net mvc on iis6 with pretty urls . It uses the .mvc extension mapping and isapi_rewrite...
Posted to
ASP.NET MVC
(Forum)
by
jamesgeurts
on 1/25/2008
Filed under: MVC, iis6, asp.net
Re: Nested repeater performance issue. Item events being called twice
Got an answer from Microsoft: " The repeater calls databind on all its item children in the ItemDataBound event. So the inner repeater is databound once by the outer databound, and once by you in your Outer_ItemCreated event handler. To make the inner repeater bind just once, remove the call to DataBind in Outer_ItemCreated. " Hope that helps someone seeing the same issue...
Posted to
Data Presentation Controls
(Forum)
by
jamesgeurts
on 3/26/2007
Filed under: Repeater, c#
Re: Nested repeater performance issue. Item events being called twice
I'd like to add that if I extract the nested repeater into its own ascx file, then everything works as expected.
Posted to
Data Presentation Controls
(Forum)
by
jamesgeurts
on 3/15/2007
Page 1 of 3 (28 items) 1
2
3
Next >
WindowsClient:
ASP.NET AJAX 4.0 Data Binding on MSDN Magazine
WindowsClient:
Don’t miss out..
TechNet Edge:
Improving Collaboration with SharePoint - Tech Focus December 2009 Part 1
Channel 9:
Channel 9 Live at PDC09: Scott Guthrie
Channel 10:
Get Discounted Concert Tickets at the New Windows Section 7
Channel 10:
Get Bing Wallpapers on the iPhone
Channel 10:
Bing Gets a New Toolbar
ASP.NET:
More on medium trust: what permission are you missing?
Channel 9:
Channel 9 Live at PDC09: Bob Muglia
WindowsClient:
Adventures With Windows Azure Diagnostics
Mix Online:
Adventures With Windows Azure Diagnostics
Channel 9:
Channel 9 Live at PDC09: Ray Ozzie
Channel 9:
Coding4Fun: DrinkTendr
Channel 9:
TWC9: Scott Hanselman, John Galloway, Bing, parallel unit tests, more
TechNet Edge:
ISA to TMG Migration Guidance
Channel 9:
Life at Microsoft: Episode 3
TechNet Edge:
Microsoft Windows Server 2008 to AITP
ASP.NET:
How important is medium trust to you?
WindowsClient:
Microsoft Web Platform & You
WindowsClient:
New Book: Developing for Microsoft Surface
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online