The ASP.NET MVC Framework is a Microsoft web application framework that implements the model-view-controller (MVC) pattern. The latest release of the framework offers REST-style web services development capability, also known as Web API.
0
votes
0answers
11 views
take value of bool and display as checkbox
Each record in the 'Supplier' table has has a bool 'SupplierEmailProvided' column. To display the value on screen:
@Model.Suppliers.Where(s => s.Id == ...
0
votes
0answers
18 views
ASP.NET Razor: add to Model moved List box items from another list box
I have 2 list boxes like below:
@Html.ListBox("SelectedList",(IEnumerable<SelectListItem>)ViewBag.SelectedList, new { @class="listbox" , id="list2" })
<input id="btnAdd" type="Button" ...
0
votes
0answers
9 views
How to return to calling page, but with a slight difference, in MVC3?
I need to call another MVC3 page(P2) and then return to calling page(P1). However the slight twist is that P2 needs to call itself, so the referrer can end up being P2.
So:
P1 - (P2 -> P2 -> ...
0
votes
0answers
5 views
Kendo UI and knockout.js rowTemplate sorting
I have a MVC site where I use Kendo UI and knockout.js to display the pages. One scenario is to get the database information from server through $.getJSON and then display this information on a ...
0
votes
0answers
4 views
ASP.NET MVC inline bundle
I'm using ASP.NET MVC bundles to organise and optimise my scripts and CSS. The site I'm currently developing needs to perform well on mobile networks, so I'm trying to get all my html, JavaScript and ...
1
vote
1answer
26 views
How to force camelcase with JavaScriptSerializer?
Is it possible?
I have a class like this:
public class ABC
{
[Key]
[ScriptIgnore]
public int Id { get; set; }
public string Name { get; set; }
public string AnotherField { get; ...
0
votes
0answers
2 views
Format BalloonText with amCharts jquery
I am trying to format the tag [[value]] in a balloonText using amCharts and jquery. I need to show the number tag [[value]] without decimals and with thousand comma separator, for example 64578 as ...
0
votes
2answers
38 views
MVC, I get it, but seperating out the model for repository functions and maybe even business logic… Best practice?
C# ASP .NET MVC 4.0
I understand the MVC pattern, but when it comes down to the model:
public class User
{
int id { get; set }
int name { get; set; }
}
I could see a benefit to dividing ...
2
votes
2answers
60 views
DateTime is not in proper format
I have a property as follows:
[DataType(DataType.DateTime)]
[DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:dd/MM/yyyy}")]
public DateTime ? EndDate { set; get; }
when I use
...
0
votes
0answers
4 views
Why does Chrome DevTools hit my Login page?
I noticed that my Login action is being called with every page load in Chrome when I have the DevTools open, how could I find out what is calling it? It also happens when I load a page and after a ...
0
votes
2answers
26 views
How get route value in the view (Asp.net Mvc)
Is there alternative to get the route value in the view page instead of read it like querystring ?
@Html.ActionLink("Language Resources", "Index", "LanguageResource", new { languageCode = ...
0
votes
0answers
44 views
Razor passing values between domains
I'm new to .NET, and try to work with Razor.
I have 100 domains, all about places.
My question is: Is it possible to have a page, per domain, which passes Place ID to a Razor Folder containing ...
1
vote
0answers
22 views
MVC4: Detecting partials or pages
I am able to obtain information based on the action and controller accessed.
Is there any way to determine if this is a partial or the page from the context/request. Aka, I only want to store a page ...
0
votes
0answers
8 views
Telerik mvc grid rows within a row ajax binding
I am using TelerikMvcExtensions.2012.3.1018. I need a grid, which must have rows within a single row, to collect my ShotView model:
public class ShotView
{
public string ShotName { get; set; } ...
0
votes
0answers
27 views
Uncaught Type Error
I am working on my first SignalR code, and I am running into an uncaught type error. My code initially works, as my hub controller returns a serialized array back to the client. The problem occurs ...