ASP.NET MVC 4 is the fourth major version of the ASP.NET Model-View-Controller platform for web applications.
0
votes
0answers
5 views
Submit button value not sumitted
I am trying to understand why the submit button value is not submitted in certain scenarios
Below is the code snippet that demonstrates the issue.
My viewmodel class is
public class User
{
...
0
votes
1answer
8 views
default page issue with 4.0 ASP.NET and MVC mixed mode website
I am converting a classic ASP.NET 4.0 site to also use MVC. Over time I am migrating the ASP.NET code to MVC, but during the transition both technologies will be in use.
If I navigate to the default ...
1
vote
1answer
9 views
How to redirect user not in proper role to Not Permitted?
While using SimpleMembershipProvider in MVC 4 project, when user without proper role runs action, he's redirected to Account/Login. How can I redirect user to my own "Not enough permissions to view ...
-2
votes
1answer
16 views
No text can be selected in the screen on internet explorer 7 after upload any file type [on hold]
No text can be selected in the screen and no control unresponsive(text box) using Microsoft IE 7, IE8 and IE 9 after procces a record
regards
0
votes
2answers
26 views
A Starter's Q: Pass Multiple params in ASP.NET MVC
First of all, I'm still a beginner in MVC
Obviously anyone knows that we can pass by /CONTROLLER/METHOD/ID, but in some cases, like I need to pass 3-4 params into the controller, how should I do? Is ...
-1
votes
0answers
7 views
What is the concept of Bank Site Authentication ? How they force user to login when session alive ?
Using Forms Authentication. Is it possible to force a user redirect to Login page ? when a user click refresh or close tab (not close browser).
So when user past the url into different tab of the ...
1
vote
2answers
27 views
ASP.Net MVC Adding a Pager but route can't be found
I'm having trouble with adding a new route, to allow me to do paging.
In my Route.Config.cs file I have added a new route, UpcomingOffers:
public class RouteConfig
{
public static void ...
0
votes
1answer
16 views
WCF Service exception: was not found or does not implement IController
I have a ajax call in _Layout.cshtml.
<script lang="javascript" type="text/javascript">
function ttsFunction() {
serviceUrl = "http://localhost:8080/wscccService.svc/RunTts";
...
0
votes
0answers
17 views
Call MVC controller in javascript and open in new tab/window
I've been searching for an answer for this for about an hour. Maybe I'm just not phrasing it correctly. Here is what I am attempting:
Using amplifyjs, I make an ajax query to a WCF service. This ...
1
vote
3answers
37 views
Why does the modelbinder instantiate empty objects for my list in ASP.NET MVC4?
I have a json object like this:
var itemData = {
"translations":[
{
"value":"Byron",
"languageId":1
},
{
"value":"hgfdfghds",
...
0
votes
0answers
14 views
ASP.NET Web API Custom Role Provider GetRolesForUser Only Called Once
I am using a custom role provider with Web API. I use the Authorize attribute to specify which roles the user must have on each controller. I use Windows authentication, so the user doesn't need to ...
1
vote
0answers
39 views
How can I share login between subprojects?
I'm implementing an application in ASP.NET MVC 4 with subprojects and I want these aplications to share same login (just login in one application and no need to login into the subprojects).
With ...
1
vote
1answer
10 views
IIExpress tracelog file
I am debugging an asp.net mvc 4 web site wsccc1. To traced any error, I designed my trace file log in web.config. I use Visual Studio 2012, the default hosted server is IIS Express.
<?xml ...
2
votes
1answer
17 views
Display empty editor for default values using EditorFor
My model has a property:
[Required]
[DataType(DataType.Date)]
public DateTime BirthDate { get; set; }
which I'm displaying in my (strongly typed) view using EditorFor:
<p>@Html.LabelFor(m ...
1
vote
2answers
26 views
deployment-specific resources in asp.net MVC?
I have created a simple e-commerce web application. When I made the application, I thought that it would be deployed as a single website, so the .cshtml files look like this:
<head>
...