ASP.NET MVC 3 is the third major version of Model-View-Controller extension for developing web applications in a .NET framework.

learn more… | top users | synonyms (3)

0
votes
0answers
8 views

C# MVC 3 route old .asp url to new url

* I don't have IIS rewrite module installed and cannot install it * So, without URL rewrites, how might I handle an old URL like /index.asp?id=1234 Which with MVC will be /index/1234 With a 404 ...
0
votes
1answer
4 views

Displaying db exception from mvc controller to my ajax call?

Not sure the bext approach to display exceptions like db exceptions to the client (ajax calls)? Should I place a try/catch in the controller bellow? Currently, I get a generic exception to my ajax ...
1
vote
1answer
21 views

Seed Database at Application Start - ASP MVC 3 and EF

For some reason I cannot get my application to seed the database with some test data when the application starts up. Order of execution: 1) Application_Start() in Global.asax - ...
0
votes
0answers
9 views

When does redirect occur after issuing HttpContext.Current.Response.RedirectToRoute in Authorize filter

I have the following in an MVC 3 Authorize action filter: HttpContext.Current.Response.RedirectToRoute("OrganizationRoute", new { controller = "Home", action = "OrganizationList" }); When does the ...
0
votes
0answers
9 views

How to handle same login session in MVC3 and ASP.Net project

I have two different project in MVC3 and ASP.net , i want use same Log in in MVC3 In MVC3, i have log in by taking user information by SQL Table. after log in in mvc3, i am redirecting that page to ...
0
votes
1answer
9 views

How do I create a model-bound Yes/No radio button which has neither option selected on page load in ASP.NET MVC?

I have a nullable boolean property in my view model: public class ViewModel { [Required(ErrorMessage="Please select yes or no")] public bool? Completed { get; set; } } I want the form ...
0
votes
1answer
8 views

Deploying ASP.Net site on iis 7 - shows iis 7 screen

So I'm trying to deploy an ASP.Net MVC 3 application to a web server running Windows server 2008 R2. What I've attempted to do is use iis 7 to handle setup, and I've deployed by using xcopy. When I ...
-3
votes
0answers
18 views

call page with method Get asp mvc3 img error? [closed]

call page with method HttpGet image path not found call page without method HttpGet image path found cshtml <img src="/image/im1.png" /> c# public ActionResult page1() { ...
0
votes
2answers
23 views

Extract tempdata or viewdata value in javascript?

how do i extract the value of tempdata or viewdata in javascript? This returns "" even though there is a value being set. Is the syntax incorrect? I've tried without the '' as well as casting to ...
0
votes
2answers
23 views

How to mock two consecutive web requests

I am trying to test a method that makes two consecutive web requests. Up until now I only tested single requests using this solution and that works like a charm for single requests. But now the ...
1
vote
0answers
7 views

How to make the <DIV> unchangeable in TINY MCE editor

I am using TinyMCE editor for editing HTML Contents. I already have html template which will be loaded in Tiny MCE when the editor gets loaded. Consider this, every time I load the editor, the ...
0
votes
1answer
45 views

How to access JsonResult data when testing in ASP.NET MVC

I have this code in C# mvc Controller: [HttpPost] public ActionResult Delete(string runId) { if (runId == "" || runId == null) { return this.Json(new { error = ...
0
votes
1answer
23 views

Redirection to an action with razor by clicking into button

I have an asp.net mvc4 application. in which i have to put a n image with the url to an action: <a href="@Html.ActionLink("Retour","Retour","Client")"><img ...
0
votes
2answers
20 views

How do you set the linktext on url in controller

is there a way to create an action link in my controller and set the link text? Can't find an overload... Url.Action("Edit", "Controller", new { id = myId });
-1
votes
2answers
34 views

How to display two different error message in ASP.NET MVC4

I want to display two different error message. First give for required and second for Int64 value. Here is my code. [Display(Name = "Employee")] [Required] public Int64 EmployeeId { ...

1 2 3 4 5 2299
15 30 50 per page