0
votes
0answers
11 views

ASP.NET MapRoute contraint for static urls

I have mapped urls in my ASP.NET application as below: context.MapRoute( "Product_v1_DataExchange", "v1/xch", new { controller = "Data", ...
0
votes
1answer
25 views

RenderPartial with Popup- MVC3

I need to call RenderPartial on my view and the partial view must open as a popup. Any Suggestions how to do it?
1
vote
1answer
14 views

Insert _ViewStart.cshtml

Is that possible to use viewstart only for a particular controller and view? I was using only _Layou.cshtml file inside views folder. Now i added _ViewStart.cshtml as common view inside views folder ...
3
votes
2answers
46 views

Why is it that when I pass a Model to my .Net MVC 4 Controller Action it insists on using it in the Partial Update?

I am intending to pass a Hotel model to my Controller Action - Do some checks/processing on it, then return a potentially different Hotel model rendered in a Partial View. The problem I'm getting is ...
2
votes
0answers
15 views

Windows Server 2008 R2: Compiler executable file csc.exe cannot be found

My application is running by: ASP.NET MVC 3 Framework 4.0 When I run the application on my computer (localhost:...) it's runs successfully. Now, is the first time, I run application on ...
1
vote
0answers
19 views

Add parent row and add child for that new parent row

i am creating new record in 'Timecard' table and at the same time i want to create one record in 'TimecardStatusTrack' table using entity framework. i am able to create parent record but while adding ...
1
vote
0answers
26 views

Textarea issue in IE7

I am trying to enter single character in a line, and pressing enter. An continuing doing the same. After 334 characters , i am unable to enter any more characters . This occurs only in IE7. Cannot ...
2
votes
1answer
27 views

How does the following code work in mvc3?

My controller code public ActionResult Create(string id) { ViewBag.ALLO_ID = new SelectList(_unitOfWork.AllocationMRepository.Get(), "ALLO_ID", "ALLO_ID", id); ViewBag.TERR_ID = ...
2
votes
1answer
19 views

ASP.NET MVC 3 Strongly-typed Views: Why do compiler errors disappear/are ignored when a view is not open in VS editor?

Every time we make changes to a model we need to open all views using that model in VS editor and see if there are any errors before proceeding with a new deployment. Is there a way to enforce ...
1
vote
0answers
18 views

What are the dangers of using Session.SyncRoot for locking per session?

I have a race condition with the following code if two requests come in really close together in an ASP.NET MVC app: var workload = org.Workloads.SingleOrDefault(p => ...conditions...); if ...
3
votes
1answer
37 views

ASP.Net MVC JQuery is undefined in IE8 but ok in Chrome

I have a web application which works perfectly in Chrome, but in IE8, I get undefined errors for my script files: The scripts are all loaded in the correct order (View -> Source): I'm not sure where ...
1
vote
2answers
39 views

Issue with a single razor view accessing two models (ASP.NET MVC3)

View(Index.chtml) is returning 0 rows while accessing two models in the view. Please see the code below. I am new to ASP.NET and I am still learning. I tried to debug and I see the table data is not ...
0
votes
0answers
8 views

Display a message if the telerik pie chart is empty in asp.net mvc

I am using Telerik Pie chart. It is working fine. In the pie chart, data is coming from database. But if in database there will be no entries then instead of Pie chart, I want to display a message ...
1
vote
1answer
27 views

Using Linq to select Place object with Tag.Name = “Restaurant” (many to many)

asp.net MVC 4 app - linq to objects with many to many relationship Place object public virtual int PlaceID { get; set; } public virtual ICollection<Tag> Tags { get; set; } public virtual ...
1
vote
2answers
35 views

asp.net Twitter Bootstrap TempData.Add(Alerts.Error error when adding two errors

I'm using the twitter bootstrap nuget package for MVC. When posting to my controller, and checking for errors however, if I have more than one error in my model, I get the following error when trying ...

1 2 3 4 5 311
15 30 50 per page