I have stripped my getJSON call to the simplest example possible trying to figure out why it's not working but I'm out of ideas. I currently have:
public JsonResult MyAction()
{
return Json(new { status = "OK" });
}
$.getJSON('MyController/MyAction', function(result) { alert('worked'); });
The action is called, but the alert does...
I am banging my head against this wall for some time, some help will be highly appreciated:
Let's say I we have a simple Model:
public class Contact {
public string FirstName { get; set; }
public string LastName { get; set; }
}
And a simple editor temple:
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Rpd...
Hi,
I'd like to track an id in the route if it's possible? This is pretty much what I want:
/groups/{id} - Show group
/groups/{id}/forum/topic/{id} - Show forum topics for the group
/groups/{id]/calendar/ - Show the calendar for the group
As you see I want to keep track of what group the user is in by the url, instead of let's say a ...
Hi we are trying to upgrade our project to work in the latest version of VS 2010 and i have encountered a problem with the old Data Annotations Modelbinder.
Dim modelBinder = New DataAnnotationsModelBinder()
modelBinder.InvalidValueFormatter = _
Function(propDescriptor As PropertyDescriptor, value As String, displayName As String) _
...
I have an existing Asp.Net MVC Website and I would also like to provide a Web Service from the same domain.
What is the best way to approach creating a web service in this scenerio?
Do I add to this project or...?
...
For reasons I won't go into I need to use CLR generics syntax in an ASP.NET MVC view.
I.E. NOT this:
System.Web.Mvc.ViewUserControl<someobject>
but this:
System.Web.Mvc.ViewUserControl`1[[someobject]]
When I run the application I get
Parser Error: could not load type `System.Web.Mvc.ViewUserControl`1[[someobject]]`
:(
How can ...
Hi all,
I'm trying to create a simple service using ASP.NET MVC2. I'm using Poster add-on 1 for Firefox, but when I use POST by filling parameters using Poster, I can't reach them on the controller, here's the line I use:
string parameter = Request.Form["an_example_parameter"];
Am I doing something wrong? Any help on this? Thanks!
...
Right now our team's ASP.NET MVC 2.0 web project takes about 4 minutes to do build on debug. We have the following things included on our project:
t4MVC templates
compiling the asp.net mvc's views on all builds
My work pc is a
Intel core 2 duo T7250 @ 2.00 Mhz.
Windows 7 32 bit ultimate
4 gb ram
I am also getting the same buil...
Can anyone please let me know the difference between these two?
AntiXss.HtmlEncode() vs AntiXss.GetSafeHtmlFragment()
...
I've been developing an MVC 2 application under the built in Web-server in VS2010. On Friday, I moved it to a virtual directory under IIS 5 in my WinXP development machine. I had the usual problems, and added a wildcard mapping to the Virtual Directory configuration in IIS to map .* to aspnet_isapi.dll (Framework 4). Neither the check ...
I would like to use an If Then conditional statement with the MvcContrib Grid for a cell. If the condtion is met then the whole grid line should be crossed with an attribute line-through.
I have gone to mvccontib and codeplex and read all, but the only thing I found was either a columncondition or cellcondition, which is good if I wer...
I published a site with a web hosting company and when someone hits the URL for the first time they are being prompted to log in using basic authentication. If you hit Cancel the site loads successfully and the user is not prompted again with the dialog box.
I contacted support and they are telling me (in a canned response) that it’s a...
Hello,
I am trying to profile pages in my application. I would like to ask for best practices to follow to do this job either
at an early stage by the developer using tools as Chrome Developer tool
at the staging phase by using third party tools and methods
Which are the best way to do this? What are tools available?
...
Hi,
I am using ASP.NET MVC 2. I have played around you the YUI samples that can be found on http://developer.yahoo.com/yui/2/. I have been wondering if any one has had the time to use the YUI controls in an MVC app?
I want to start using the datatable and display my results from a SQL Server in this datatable. How is this possible? ...
I've heard that new version of Umbraco CMS will be completely rewritten and will be based on asp.net mvc?
Current version is 4.5 and as I see it is still based on ASP.NET.
...
Hello All,
I am in dire need of a better way to handle sessions. We currently use default in-proc (IIS Worker Process) for our ASP.NET MVC web apps. I am now trying to implement ASP.NET State Service locally on the web server. I have installed and enabled the service (also set it up to start automatically). I believe that we're succ...
Since I uploaded an updated version of an ASP.NET MVC 1 application to the server, the Yellow Screen of Death has changed to something like this:
��I�%&/m�{J�J��t��$ؐ@�����iG#)�*��eVe]f@�흼��{���{��;�N'���?\fdl��J�ɞ!���?~|?"��Ey�')=��y6����h���ͼhR��L�w�|��2=��Ez<����7�:5�<�+oy��:� �T����W�v�<[��~2�g�2��?�ʋ�y�hYՋ������t� _N���M�l�����{�,�...
I am new to the MVC way of programming so please bear with my basic question !
I have a Status class with a default constructor (in an ASP.NET MVC application).
public Status()
{
this.DatePosted = DateTime.Now;
}
I noticed Fluent NHibernate calls this constructor each time it fetched a list of existing Status objects from the dat...
In my domain Model I have a Person object that has a number of properties which I have decorated with Validation Metadata:
[Required(ErrorMessage = "First Name Required")]
public string FirstName { get; set; }
[Required(ErrorMessage = "Age Required")]
public int Age { get; set; }
My Controller returns a collection of Persons to the v...
Some times there are an intellisense problem in the views, the namespaces in the referenced assemblies don't appear in the intellisense only in views but the do appear in .cs code files in the same project..
i've tried these ways:
<pages>
<namespaces>
<add namespace="MyNameSpace" />
</namespaces>
</pages>
in the web.config fi...