ASP.NET MVC 4 is the fourth major version of the ASP.NET Model-View-Controller platform for web applications.
0
votes
1answer
16 views
Formatting Date of a collection in an Anonymous Object
I got a business layer which returns an anonymous object which has a collection of rows which have dates. I want to get regional formatting of the dates, but I don't want to pass the regional setting ...
0
votes
0answers
7 views
Routing a .GIF one way, the rest of the MVC 4 site another
I've been trawling through 1000s of questions and blogs and still don't fully understand dam routing!
Along the lines of Scott Hanselman's blog I am trying to route a certain call to a .GIF to a ...
0
votes
0answers
18 views
Why does mvc “remember” old model within “beginform”?
I found some seriously weird behavior in MVC when I redisplay a form multiple times. I was wondering if anyone could help me clear up whats going on:
My controller code:
[HttpPost, ...
0
votes
2answers
30 views
Model or ViewModel for a dynamic form
I have a form of contact info as follows:
Name: input Email : input
Add More
if the user want to add another Name and Email, she can click on Add More and she will see another set of Name and ...
0
votes
0answers
11 views
How to check if async/await really async?
I have built a certain application( service ) based on async/await new keywords in c# 5.0 using WebApi which it self cool, I have create a call from Oracle db Http_Request, but i have tested and it's ...
0
votes
1answer
46 views
Delegater NullReferenceException
I created a Rest Webservice with ASP.NET MVC 4 and in my Webservice I'm calling a delegater which is called MessageInformer.
public MessageRepository repository = new MessageRepository();
public ...
0
votes
3answers
28 views
How to upload a image and display on same page in asp.net mvc 4
i have developed a web application using asp.net mvc4 and razor syntax.
i need to upload an image using file uploader and display in the same page with details of the image.
as an example there's a ...
0
votes
2answers
28 views
Ajax call replaces the whole content
I have a form and submit button. Normally when the submit action is taken it returns to a new page and not update the partial view. I use ajax call in jquery live function but it still does replace ...
0
votes
0answers
11 views
ASP.NET MVC4. Single user authorization form
I have a simple web-site with some news/articles in it (and that's all content it has), and i need to create some simple authorization for admin only, without using roles, membership and such (i'm not ...
0
votes
2answers
15 views
Syntax error on the onclick for input type button html
Can some one just help me out?
I get a syntax error on the two single quotes for javascript:window.location=
here my code:
<input type="button" value="<%: ...
0
votes
2answers
18 views
Call post edit action from razor view mvc4
This question might have been asked several times, however it is not working in my case, so please bear with me.
I have the below actions in my controller:
[HttpPost]
public ActionResult ...
1
vote
2answers
17 views
SPA (Hot Towel) - how to change convention to process/request Razor views?
Using the Hot Towel SPA template as an example, say I have a requirement for an admin link and view which only appears for logged in users with an Administrator role. Should be simple enough, right?
...
1
vote
3answers
47 views
MVC4 - best way to have a generic popup message that appears on every page
What's the recommended way in MVC4 to code a generic DIV that slides down from the top and displays a message?
Conceptually I'm looking for a generic messaging system that can be used from any ...
0
votes
0answers
15 views
ASP.NET MVC4 - “Tiered” Validation
I would like to do some kind of "tiered" validation in my form (don't know a better word). Example: the user inputs a password. This password might be
empty or too short (error condition red)
long ...
3
votes
2answers
43 views
MVC4 passing messages from one controller to another
Imagine I have one controller that register somebody and if successful should display a message on another controller view.
[HttpPost]
public ActionResult Register(RegisterModel model)
{
...