-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 { ...
0
votes
1answer
61 views

Insertion on Asp.Net Mvc Failed

On my asp.net mvc project, the table data will be displayed on a grid view using Index Method. After doing Insertion, it would redirect to Index using RedirectToAction. But for the First time, the ...
1
vote
2answers
55 views

ASP.NET MVC 4 dynamic form fields

Can anyone suggest a good way to develope dynamic form fields with ASP.NET MVC 4? I have one static dropdown on page, and based on the user's choise I need to render additional fields below. These ...
0
votes
2answers
51 views

ASP.NET MVC4 Searching for controller in wrong area

I'm using default MVC routing setup: routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( name: "Default", url: "{controller}/{action}/{id}", ...
0
votes
1answer
17 views

Change order user tabs through div elements

Below is the code I'm using in my ASP MVC view. I'd like the tab order to go from the first to last text box inputs in the fieldsets below in this order: AgentTypeFields BasicFields AddressFields ...
0
votes
1answer
16 views

How can I include view files from another project when compiling views?

The project file already has the recommended way of doing this from this answer. However, that isn't enough for our case. We happen to have shared views in another project. Several files use shared ...
0
votes
0answers
14 views

Can I change the paging url of a webgrid?

I am new to MVC and webgrid. I have created a webgrid, but it comes with a default url for paging. Is there a way to add custom paging url or use routemap to get custom url? My webgrid pagination has ...
0
votes
2answers
33 views

MVC linking two tables by a string key rather than an int key

I'm using an intranet application - so Windows authentication. The Username has the format "ADHP\BCOOPER" - I would like the users to be able to show a "friendly name" when logged in, so want to map ...
-1
votes
4answers
62 views

string parameter null in controller action

I'm trying to upload a file with ASP.NET MVC Partial view. **Partial view:** @using (Html.BeginForm("FileUpload", "Item", FormMethod.Post, new { enctype = "multipart/form-data", id="frmUp" })) { ...
0
votes
2answers
33 views

MVC3 Error: The name 'Partial' does not exist in the current context

ADDENDUM: Suggest the question be deleted because the linked answer actually was a typo. I'm attempting to implement the pattern answered here. The controller returns a model to a Partial View ...
1
vote
1answer
90 views

Is there any advantage in using a “repository factory” with ASP.NET MVC4 and Entity Framework?

I am developing an application and I started to use as my base some code from an example by John Papa. Looking on the web I found this same code and it appears in an answer to a question on ...
1
vote
0answers
51 views

Implement a Custom MVC Base View Page

I am attempting to implement an MVC custom base view page in order to "override" the User property type. This will make my CustomPrincipal type accessible in any view. After searching the web, I ...
0
votes
1answer
64 views

Can an HtmlHelper library be compatible with both MVC-3 and MVC-4?

I am trying to create an HtmlHelper library that will work in both MVC-3 and MVC-4 projects. I've been able to get a library that is compatible between MVC-2 and MVC-3 by setting the framework ...
0
votes
0answers
37 views

Page not loaded in fancy jquery popup- used in .net-mvc4

I am working in .net mvc4. I am using jquery fullcalendar when i going to event Edit. I call the fancybox popup. the problem is fullcalendar eventclick popup only showing page not loaded, error ...
1
vote
1answer
18 views

geolocation pass value to url.action on page load

Can anyone please help with this problem, I'm trying to get the latitude longitude values using geolocation when the page loads, problem is, I'm having problems trying to figure out how to pass the ...

1 2 3 4 5 575
15 30 50 per page