ASP.NET MVC 4 is the fourth major version of the ASP.NET Model-View-Controller platform for web applications.

learn more… | top users | synonyms (1)

-1
votes
0answers
7 views

Enable to Fetch data using FormCollection Class in MVC

I am trying to fetch the data from my mvc application I am using FormCollection class. when I use httpget with this class then I show me page but when I use httppost and arun this application then it ...
0
votes
0answers
5 views

Passing a HttpPostedFileBase inside a model to a controller method

I have a form with a view model FileUploadViewModel [Required(ErrorMessage = "Please Enter Your Full Name")] [Display(Name = "Full Name")] public string Name { get; set; } ...
0
votes
1answer
20 views

Creating checkboxlist with a list box

I have an requirement to create a list type structure and that will be the options kind of thing.So, when user check the checkboxes or in other words select the options, I have an box equally opposite ...
-1
votes
0answers
13 views

how to call javascript function inside code behind of MVC Razor?

function RunEXE(value) { var file = value; if (file != "") { var oShell = new ActiveXObject("WScript.Shell"); var prog = "\\\\Test-PC\\Programms\\" + value + ...
0
votes
1answer
16 views

ASP.NET: There is no ViewData item of type 'IEnumerable<SelectListItem>' that has the key 'Customer.Person.PersonType'

I got this error when I debugged it to the Shipping Form. Could anyone tell me where I'm wrong ??? Controller: public ActionResult AddressAndPayment(SalesOrderHeader order,Customer customer ...
0
votes
0answers
4 views

ASP.NET: How to save Shipping Infors into AdventureWorks2012

I created a View of Shipping Information for User can order any bike that they want. I also created a Controller for that, but it didn't save all the information of the order into AdventureWorks2012 ...
0
votes
0answers
11 views

Handle post (from iOS) with image in .net server

First, the question briefly: What I should write in the action parameters for handling the image sent and how to handle data to get the image of it? What I did is: Image in iOS converted to NSData ...
0
votes
0answers
7 views

Website asynchronously posting to Loggly

I'm trying to work out how to make an asynchronous logging solution for application logging to Loggly. Looking at Loggly's ducumentation, and thinking of this as a classic Producer-Consumer problem, I ...
2
votes
1answer
22 views

JSON Array instead of string

Been struggling with this for hours now. Basically I need this json variable to become an array so that it can be recognised by Chart.js. C# controller returns as follows: return Json(new { ...
0
votes
0answers
6 views

How to keep MetadataType attribute when update class from database?

After I made some changes on my database, I click "Update class from Database" in Visual Studio. When i do that all the Data Annotation i defined on each class disappeared. So I started to adding ...
0
votes
1answer
14 views

mvc4 dropdownlistfor set value from 0 to available stock

I want to display a dropdownlist in mvc4 razor view which will have values depending from the items in stock. This is the view I have: @using (Html.BeginForm()) { <div ...
0
votes
1answer
6 views

DataAnnotations Validation Regular Expression MVC4

Regular expression in the model [RegularExpression("!^search for name or lastname", ErrorMessage = "Invalid search")] public string SearchText { get; set; } I have a textbox with default value ...
0
votes
1answer
28 views

Asp.net MVC search using model and return different model (partial view)

I am trying to implement search functionality in MVC view. I have view called 'ReturnResults' and partial view (_Find) in it. _Find is object that I use to find/filter results. Is this the correct ...
0
votes
0answers
16 views

Handling server filtering with Kendo ComboBox

I'm trying to handle filtering of Kendo UI ComboBox on server side. I have the following codes in the view $('#Solicitor').kendoComboBox({ placeholder: "@T("Enter the partial Name or Primary ID ...
0
votes
1answer
13 views

Unable to get values from form in controller method

I have an MVC 4 website (.NET 4.5) wherein I want to re-direct the user to a very simple login page if they are trying to gain access to the High Resolution Photos (Hrp) section of the website. I have ...

15 30 50 per page