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:789429
More Search Options
RSS Available
Matching Posts
Re: how to interact with JsonResult result on client
Yep. that was it. Thanks for your help.
Posted to
ASP.NET MVC
(Forum)
by
tschreck
on 7/9/2008
how to interact with JsonResult result on client
I'm trying to get the results of JsonResult controller method to work on the client. It appears the JsonResult is escaping quotes so it's not getting turned into an object on the client. Below is what's getting returned to the client using JsonResult: ""[{\"Id\":1,\"FirstName\":\"Tom\",\"LastName\":\"Schreck\"},{\"Id\":2,\"FirstName\":\"Jacob\",\"LastName\":\"Schreck\"},{\"Id
Posted to
ASP.NET MVC
(Forum)
by
tschreck
on 7/9/2008
Filed under: JsonResult, prototype
MVC JsonResult vs WCF
Is creating a MVC controller that returns JsonResult equivalent to a WCF call that also returns JSON? I'm currently working on an app that uses WCF as a means of returning JSON to JavaScript on the client browser. Looking at MVC and JsonResult, I'm wondering how MVC and JsonResult is different from WCF that returns JSON? To me, it seems these are 2 approaches that at the end of the day do the same thing: return JSON. For MVC and JsonResult, there is no view, correct? Code on the browser is
Posted to
ASP.NET MVC
(Forum)
by
tschreck
on 6/30/2008
Filed under: MVC, JsonResult, WCF
Re: deploying MVC application
I found in Global.asax that you are supposed to add .mvc to the route like this (line 1): 1 routes.Add( "SearchResults" , new Route( ".mvc/searchresults/{ticks}/{mealtypeid}/{viewsource}/{foodgroupid}/{foodname}" , new MvcRouteHandler()) 2 { 3 Defaults = new RouteValueDictionary( new 4 { 5 controller = "Search" , 6 action = "SearchResults" , 7 foodgroupid = 0, 8 foodname = "" 9 }), 10 }); The default instructions in Global.asax says to: 1 // Note
Posted to
ASP.NET MVC
(Forum)
by
tschreck
on 4/28/2008
deploying MVC application
I'm trying to deploy a MVC application onto a server for demonstration purposes. I can access the MVC application without a problem using localhost. I get a 404 error when accessing any URL other then the default URL after publishing MVC app to new server. The new server has the latest version of MVC and .Net 3.5 installed. I can access the default URL which tells me that MVC is working, but any other link fails. Why would the app work using localhost:[port number] and not the url for the dev
Posted to
ASP.NET MVC
(Forum)
by
tschreck
on 4/27/2008
Filed under: MVC deployment
Re: Can not have 2 routes with same number of URL parameters
Thanks for your help again man. This has cleared up a lot of confusion.
Posted to
ASP.NET MVC
(Forum)
by
tschreck
on 4/19/2008
Can not have 2 routes with same number of URL parameters
I've noticed that i cannot have 2 routes defined in Global.asax with the same number of URL parameters because when the URL is processed, the URL hits on the first route that matches the URL signature. However, the calling controller action has to have the same variable names in the signature as in the route. So, if I have 2 routes with same number of URL parameters but whose Controller Actions have different parameter names, then the 2nd route never gets called and the URL breaks. How do you
Posted to
ASP.NET MVC
(Forum)
by
tschreck
on 4/19/2008
Re: Routing confusion
I only have the 2 default routes. This is my first custom route.
Posted to
ASP.NET MVC
(Forum)
by
tschreck
on 4/4/2008
Routing confusion
I have a route entry in Global.asax that looks like this: 1 routes.Add( new Route( "Search/SearchItems/{ticks}/{id}" , new MvcRouteHandler()) 2 { 3 Defaults = new RouteValueDictionary( new 4 { 5 controller = "Search" 6 ,action = "SearchItems" 7 ,ticks = 0 8 ,id = "" 9 }), 10 }); I'm using Url.Action to construct a properly formated URL: Url.Action( "SearchItems" , "Search" , new { ticks = TempData[ "ticks" ], id = 1 }) I'm
Posted to
ASP.NET MVC
(Forum)
by
tschreck
on 4/4/2008
Re: Html.ActionLink adding ? for variables
Thanks for the tip. That was it. I didn't know the order made a difference.
Posted to
ASP.NET MVC
(Forum)
by
tschreck
on 3/19/2008
Page 1 of 2 (17 items) 1
2
Next >
Channel 9:
TWC9: 2009 - The Year in Review
ASP.NET:
Tip#100: Did you know… How to view ASP.NET trace information?
ASP.NET:
Passing anonymous objects to MVC views and accessing them using dynamic
Channel 9:
Channel 9 Live at PDC09: Coding 4 Fun
Channel 9:
Channel 9 Live at PDC09: Stephen Toub
WindowsClient:
Mouse Gestures for Internet Explorer
Channel 9:
Controlling concurrency in Rx
Channel 9:
Dev Tools Ecosystem Summit Videos Available
WindowsClient:
Using Cerebrata's Cloud Storage Studio To Download IIS logs from Multiple Instances of Windows Azure
TechNet Edge:
TechNet Radio: Office 2007 Setup and Configuration (Part 1)
Channel 10:
How-To: Listen to Your Zune Pass Music on Your WinMo Phone
Channel 10:
Share Your Screen with SharedView
Channel 10:
Get Microsoft Tinker Game For Free
Channel 10:
LG eXpo WinMo 6.5 Unboxing Video
Channel 9:
ADFS 2.0 RC is Here!
Channel 10:
Bing Reference Updated with New Sidebar Features
Channel 10:
Look Behind SurfaceScapes
ASP.NET:
Moving your ASP.NET Application to Windows Azure – Part I
TechNet Edge:
Windows Server 2008 R2 Quick Look- Installing the Migration Tools
WindowsClient:
My latest videos – WPF, Silverlight, Sensors, and PDC09
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online