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:775367
More Search Options
RSS Available
Matching Posts
Re: Is it possible to run MVC on Mono?
I was intrigued to know the answer to this. You may have seen the blog post http://nickandgrace.com/code/archive/2008/03/11/running-asp.net-mvc-on-mono.aspx , which suggests the Preview 2 does work, with some minor glitches, helped by Bin deployment. But as the framework develops it's likely there could be further glitches, which may need a helping hand from the Mono team to get things working fully. Perhaps more on the Routing side ( http://nickandgrace.com/code/archive/2008/03/12/how-to-run
Posted to
ASP.NET MVC
(Forum)
by
andyfreestyle
on 4/1/2008
Re: Passing Data from View to Controller: Use controller parameters or Request.Form["..."]
This is also a dilema for me, the third option in addition to many properties or UpdateFrom, is obviously to have a strongly typed parameter for a complex object and use MVCContrib Deserialize features, similar to in MonoRail: public void Update([DataBind( "product" )] Product prod) But the real clincher for me is REST interfaces. As the REST URL I want to generate is normally of the format eg. /product/1/edit I only really need a property in the Action for the Id, or none at all. So I'm
Posted to
ASP.NET MVC
(Forum)
by
andyfreestyle
on 3/31/2008
Re: Code Blocks vs. Code Behind
[quote user="DavidKiff"] separation of markup from code is completely disregarded as a non issue[/quote] There is seperation in MVC - the Model, the View, the Controller! Inline code within the View should be for presentation only. Comparing with spaghetti code in many Classic ASP applications is a red herring, as they typically combined presentation and business logic and data access in one .asp page.
Posted to
ASP.NET MVC
(Forum)
by
andyfreestyle
on 3/28/2008
Re: Code Blocks vs. Code Behind
[quote user="DavidKiff"]forexample show and hide pannels based on the views data etc and keep this extracted from the views markup. MVC doesnt allow this [/quote] Extension methods can help with elegant conditional rendering in MVC - http://www.iridescence.no/Posts/Conditional-Rendering-in-AspNet-MVC-Views.aspx . The Microsoft team appear to be focussing on the moment on the groundwork - routing, testability - a reusable component model, more html helpers will no doubt come that may be
Posted to
ASP.NET MVC
(Forum)
by
andyfreestyle
on 3/28/2008
Re: Need some simple help with passing data from controller
routes.Add( new Route( "{controller}/{action}/ {test} " , new MvcRouteHandler()) { Defaults = new RouteValueDictionary( new { action = "Index" , test= "abc" }), }); The property names are not matching. Or use the URL /ControllerName/Index?test=abc with your current routes, replacing ControllerName.
Posted to
ASP.NET MVC
(Forum)
by
andyfreestyle
on 3/28/2008
Re: Request routing
[quote user="bpag"]how it is that MVC manages to process requests even though they don't contain any file extension [/quote] This is with IIS7 which allows extensionless urls, so with IIS6 you'd typically need to either use .aspx or .mvc if you have mapped these extensions to ASP.NET in IIS, and updated your routes accordingly, unless you use a ISAPI filter with IIS6. [quote user="bpag"]correctly route such a request to your controller and action[/quote] [quote user="bpag"
Posted to
ASP.NET MVC
(Forum)
by
andyfreestyle
on 3/28/2008
Re: redirect on Textbox onkeydown
There isn't a control event model as with WebForms, so you'll have to stick to HTTP GET and POST to your Controller's Actions, optionally via AJAX. So sending the value as a GET/redirect using jQuery: <input id="companyIDTextBox"/> $(document).ready(function(){ $("#companyIdTextBox").blur(function() { window.location = "/Controller/Action?paramName=" + $("companyIdTextBox").val() ; }); Or something along the lines of this for the change event
Posted to
ASP.NET MVC
(Forum)
by
andyfreestyle
on 3/27/2008
Re: Passing array into Controller
Yes, I tried hammett's experiments with bolting MonoRail and ActiveRecord code into the MVC framework Preview 1. Do his samples work with the current Preview 2 of the MVC Framework (as you used the [Controller] attribute I assume you are using Preview 1)? But my interpretation is that most of the best bits of MonoRail were being added to MVCcontrib . The Convention Controller aspects. Appart from the fact that I've used Castle.Components.Binder instead of the Deserialize attribute in a lot
Posted to
ASP.NET MVC
(Forum)
by
andyfreestyle
on 3/20/2008
Re: Passing array into Controller
Using the MVCContrib Convention Controller you can Deserialize to an integer array (I've not tested the code below, here as a sample). Or iterate across items in Request.Form using this prefix naming convention ("productIds"). <input name="productIds[0]" type="checkbox" value="1"/> <input name="productIds[1]" type="checkbox" value="2"/> <input name="productIds[2]" type="checkbox" value="3"
Posted to
ASP.NET MVC
(Forum)
by
andyfreestyle
on 3/20/2008
Re: Rendering Video in MVC
Multiple video formats and transcoding will be hard! The controls won't really do that. Either provide two players on the site - one Silverlight for WMV and one Flash for those converted to flv. Perform encoding on your servers, such as with Silverlight Encoder http://www.microsoft.com/expression/products/overview.aspx?key=encoder . Though the hardware budget to make this fast - presumably processing in a queue - could be big. Or I'm a fan of putting the encoding headache onto someone else
Posted to
ASP.NET MVC
(Forum)
by
andyfreestyle
on 3/19/2008
Page 1 of 6 (56 items) 1
2
3
4
5
Next >
...
Last »
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.
Channel 9:
Channel 9 Live at PDC09: Dr Brian Brooks (3M)
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 13 of 13
Silverlight:
Information for Silverlight HVP Developers…
WindowsClient:
Custom Content Loaders in Silverlight 4.0
WindowsClient:
MVVM Links\Info
TechNet Edge:
Check out how Dolly Parton uses IE8 and Web slices!!!
Silverlight:
A Silverlight HVP Update
Channel 9:
Channel 9 Live at PDC09: This Week on Channel 9 - PDC09 Daily Show Edition Day 1
Channel 9:
Maria Klawe: Scholar, Scientist and Microsoft Board Member
Channel 10:
Play the Bing Sherlock Holmes Game
Channel 9:
Channel 9 Live at PDC09: Loic Le Meur
Channel 10:
How to Delete Jump List Items
Channel 10:
Roll Back to Classic Network Indicator in Win7
Channel 9:
Jafar Husain: Silverlight Toolkit and Rx, Part 2
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online