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
2 views
Force SquishIt to refresh/recreate minified files
Am looking to integrate SquishIt with our webapp. What I have noticed from the testing locally is, SquishIt generates the file only once. Based on other SO answers and reading the SquishIt code I ...
-1
votes
1answer
24 views
What strategy for encrypting web.config sections should I use?
I want to add automated encryption of some sections of web.config with following requirements:
It should be done automatically every time application is started (I don't want to do it manually using ...
1
vote
1answer
9 views
How to remove invalid syntax error message in editing Razor view
In Razor ( in site master page and in views) javascript strings with dynamic content are used, like
@inherits ViewBase<EntityBase>
<script type="text/javascript">
$(function () {
...
3
votes
4answers
2k views
ASP.NET Data Caching? Memcache equivalent
Having used PHP on Linux a lot, I'm used to using memcache so that the database doesnt have to be accessed on every single request. What do people use on Windows the achieve this? From the asp.net mvc ...
1
vote
0answers
41 views
ASP.NET Session state lost after exception
I've usually avoided in-proc session state, until this recent project. I think I have a problem where the state is lost after an unhandled exception occurs.
This in itself is odd, since exceptions in ...
0
votes
0answers
9 views
Errors: The model backing the context has changed/Can't locate database
I'm working on a web forms project in VS 2010 using Razor/MVC3. I am pretty new to programming in general. Anyways...I keep running into the error:
The model backing the 'DbRequestFormContext' ...
0
votes
2answers
33 views
ASP.NET MVC disable dropdownlist on page load
I'm using ASP.NET MVC 4 and jQuery to achieve this.
What I'm trying to do is to disable or enable a dropdownlist based on if a checkbox is checked or not.
I can get this working, however I can't ...
0
votes
1answer
22 views
Validation Summary working but Individual Validation Messages are Not working
Before I got into the details, this is what I have
Environment : VS 2008 with ASP.NET MVC 2
Base Model Code
[DisplayName("Current Application Status")]
[Required(ErrorMessage = "Current ...
0
votes
2answers
30 views
taking id and value from a lot of radiobutton by post
In the view I have a lot of RadioButtons and the id is the unique for each one. when user choose one of those in controller I would like to take the ID and VALUE how i can do that.... i try with ...
0
votes
0answers
16 views
authentication after implementing Secure Token Service in MVC4
I have implemented LocalSTS in MVC4 using identity and access tool in MVC4.
After successfully login in the website it is throws an error as
HTTP Error 401.0 - Unauthorized
You do not have ...
0
votes
0answers
6 views
MVC4 create two diffirent UserProfile table
after deploy my site to Plesk host. The MVC4 creates 2 UserProfile table like this:
dbo.UserProfile
mysqlusername.UserProfile
what is the problem and how i can fix this?
this is my model:
...
1
vote
4answers
24 views
Ajax form, validation and errors
So I have an Ajax form with validation, which works.
My problem is my POST Action:
[HttpPost]
public ActionResult AddUpdateConfigs(StorageConfigurationModel modelbind)
{
if (ModelState.IsValid)
...
0
votes
0answers
15 views
Complete configuring Elmah from code
I want to completely avoid elmah sections in web.config of MVC application. All configurations I want to do in code. I tried 2 approaches from this theme.
1. This one does not work if I remove ...
0
votes
1answer
28 views
remove a product from list if assigned
How can I remove a product from a drop down list if it has been assigned to a customer?
The Id's seem in correct order. And I have made some changes, Maybe I'm missing something
public ...
1
vote
3answers
75 views
+50
Reload AntiForgeryToken after a login
I need to reload an AntiForgeryToken in a form located in a view, after a successfull login in another view in the same page.
Can I make an update in the form input @Html.AntiForgeryToken() key with ...