tagged [asp.net-mvc-2]
Using a dash (-) in ASP.MVC parameters
Using a dash (-) in ASP.MVC parameters What should be a signature of a corresponding Action method to accept `user-name` parameter? Method signature above does not work for some
- Modified
- 11 Aug at 17:57
How do I POST data from an asp.net MVC controller to a non-MVC asp.net page?
How do I POST data from an asp.net MVC controller to a non-MVC asp.net page? One department in our company is using classic asp.net while ours department is using MVC. We need to pass 5 variables to h...
- Modified
- 4 Sep at 14:47
Percentage calculation
Percentage calculation I am working in progress bar concept in ASP.NET MVC 2. Here i have a DropDownList which has 10 values. i want to calculate the percentage for progress bar, e.g. 10 values from D...
- Modified
- 30 Dec at 09:30
Accessing User.Identity from Master Page
Accessing User.Identity from Master Page I'm trying to access User.Identity from my master page so I can figure out which user is logged in, however I can't get it to work. If I import `System.Securit...
- Modified
- 11 Jan at 23:46
How can I use Html.DisplayFor inside of an iterator?
How can I use Html.DisplayFor inside of an iterator? I am MVC 2. The whole thing just fits the web so well. There is one piece of functionality, however, that I am unable to coax out of the `Html.Disp...
- Modified
- 6 Aug at 12:16
DataType vs UiHint
DataType vs UiHint I have been using mvc2 for a while now, and when i need to set the template i use the DataType Attribute > I see others using UiHint to achieve the same results > What is the differ...
- Modified
- 22 Sep at 15:13
RedirectToAction not working after successful jquery ajax post?
RedirectToAction not working after successful jquery ajax post? The following does not redirect my page: Here is the MVC code: Here is the ajax post: ``` $.support.cors = true; $.ajax({ ...
- Modified
- 15 Nov at 21:54
ASP.NET MVC redirect from attribute
ASP.NET MVC redirect from attribute I'm trying to execute a Redirect from a method attribute. It seems to work: The only problem is that th
- Modified
- 9 Aug at 10:11
JSONResult to String
JSONResult to String I have a `JsonResult` that is working fine, and returning JSON from some POCO's. I want to save the JSON as a string in a DB. I need to audit the response, so I want to save the...
- Modified
- 31 Dec at 19:39
EditorFor() and html properties
EditorFor() and html properties Asp.Net MVC 2.0 preview builds provide helpers like If the property name is string, the above code renders a texbox. What if I want to pass in MaxLength and Size proper...
- Modified
- 22 Sep at 13:38
How can I run RavenDB in a shared hosting environment?
How can I run RavenDB in a shared hosting environment? [RavenDB](http://ravendb.net/) has the ability to run in 'embedded' mode, which as far as I understand, should allow it to be run in a shared hos...
- Modified
- 9 Aug at 21:23
MVC map to nullable bool in model
MVC map to nullable bool in model With a view model containing the field: I get an error when trying to map in the view: I've tried casting, and using `.Value` and neither worked. Note the behaviour I...
- Modified
- 14 Jun at 08:52
How to set a default value with Html.TextBoxFor?
How to set a default value with Html.TextBoxFor? Simple question, if you use the Html Helper from ASP.NET MVC Framework 1 it is easy to set a default value on a textbox because there is an overload `H...
- Modified
- 14 Jun at 04:41
ASP.NET MVC - Current Action from controller code?
ASP.NET MVC - Current Action from controller code? This is very similar to another recent question: [How can I return the current action in an ASP.NET MVC view?](https://stackoverflow.com/questions/36...
- Modified
- 23 May at 10:29
When `PostAuthenticateRequest` gets execute?
When `PostAuthenticateRequest` gets execute? This is my `Global.asax.cs` file: ``` public class MvcApplication : System.Web.HttpApplication { public static void RegisterRoutes(RouteCollection routes...
- Modified
- 10 May at 08:43
ASP.NET MVC 2: Odd Error
ASP.NET MVC 2: Odd Error The only difference I can think between a project that WAS working to now this new project that's NOT working is the fact that one may have been a normal MVC 2 project whereas...
- Modified
- 25 Nov at 19:52
How to route to an outside URL from within MVC controller?
How to route to an outside URL from within MVC controller? I'm embarrassed to even ask this question, but not sure of the syntax or way to do this. I have a controller method where I would like to rou...
- Modified
- 17 Dec at 19:35
can i redirect from the global.asax to controller action?
can i redirect from the global.asax to controller action? i am trying to show an error page when the user uploads a file that is over the limit (see [Catching "Maximum request length exceeded"](https:...
- Modified
- 23 May at 12:33
MVC Ajax.ActionLink doesn't find POST method
MVC Ajax.ActionLink doesn't find POST method I have a POST method declared in my controller: and an ActionLink in my view: ```
- Modified
- 14 Jun at 11:44
Where is the best place to map from view model to domain model?
Where is the best place to map from view model to domain model? Where is the best place to do mappings from view model to domain model? By mappings I mean from my `EditGrantApplicationViewModel` to a ...
- Modified
- 16 Apr at 23:44
When using .net MVC RadioButtonFor(), how do you group so only one selection can be made?
When using .net MVC RadioButtonFor(), how do you group so only one selection can be made? This one has me stumped, I have a strongly typed view that has this loop to generate radiobuttons: ``` model...
- Modified
- 24 Jul at 08:44
RedirectToAction outside of Areas
RedirectToAction outside of Areas I've recently updated our MVC 2 project at work to use Areas however I'm having a little problem with the `RedirectToAction` method. We still have some of our control...
- Modified
- 23 Mar at 11:16
MVC and EditorFor width
MVC and EditorFor width Can I set the width of an EditorFor control on my View? I have set a few parameters: However, I can't seem to set the width of the textbox that gets rendered. ```
- Modified
- 9 Oct at 13:9
Display a "Back" button, only if there is a back (MVC)
Display a "Back" button, only if there is a back (MVC) Right now I'm using `Back` But then it will always be displayed, even when the "back" button won't lead anywhere. How can I check if there is a "...
- Modified
- 20 Apr at 05:49
Outline text with System.Drawing?
Outline text with System.Drawing? I have the following code. Is there an easy way to put an outline on the text I am writing? ``` var imageEncoder = Encoder.Quality; var imageEncoderParameters = new E...
- Modified
- 17 Nov at 02:0