I have a ASP.NET MVC app on IIS7 using Forms Authentication in Integrated Mode. I am noticing that the ASP.NET runtime is being hit for every request that comes in even if it is only for static files (probably because of Integrated Mode). Is there a way to configure IIS7 to serve up static files without hitting ASP.NET?
I've been thinki...
So, I have a page that looks like the following:
This is my basic messaging inbox. I have 2 pages right now, Inbox and Sent (there will eventually be others). These both share the same View, and just have 2 different actions to populate the appropriate data.
The elements on the right-hand side (the message list) is a partial view wh...
Background
I'm working with ASP.NET MVC. I've got a partial view which contains JavaScript. I'm using AJAX get to load the partial view into a <div> tag. The JavaScript registers a click event for a group of radio buttons.
Problem
It doesn't seem to be executing: when the radio buttons are clicked, the form doesn't get submitted....
In my view the call below generates url ending with Tasks/Edit but I want it to generate url like Tasks/Edit/23
<%= Html.ActionLink<TaskController>("Edit Task", (x) => x.Edit("23"))%>
in Global.asax:
string taskController = NameResolver.NameOfController<TaskController>();
string editAction = NameResolver.NameOfAction<TaskController>...
Using the following sample: http://www.west-wind.com/Weblog/posts/899303.aspx
The following line...
return req.RedirectingResponse.AsActionResult();
renders the string "DotNetOpenAuth.Messaging.OutgoingWebResponseActionResult".
This is the class being returned as ActionResult in the line as posted. Does anyone know why I get the clas...
Hi All,
I have a catch-all route setup in ASP.NET MVC, so I can capture /this-page, /that-page etc.
When you hit a page the action is invoked, say Index(string page) and then page is tested against a value in the database to determine if the page can be found. If it can't be found, I want to display the view FileNotFound which is in ...
I am looking for a solution to create subdomains pragmatically in ASP.NET, ASP.NET MVC and PHP. Specifically, a user profile page should resolve for both: www.domain.com/profilename or http://profilename.domain.com.
...
Hello,
In my controller, I've this action method called "SearchForContact," which takes 2 strings parameters firstName and LastName. There are 3 situations:
If both parameters are null, the view is redisplayed with an error message, prompting the user to enter at least one of the 2 parameters
if both parameters are not null, I can ret...
I want to use standard authorization with forms. But all tables must be saved not in mdb file which used by default, but in Oracle.
Would you please provide me information how to do this?
Thanks!
...
We are currently using the default folder structure for our MVC app, and were wondering if it is possible to instead put a Controller and its related views into the same folder.
For example, a subset of our current structure is:
Model folder
OrderViewModel.cs
Views folder
OrderView.aspx
OrderGrid.ascx
OrderHeader.ascx
...
Any URL Routing Debugger in ASP.NET MVC
...
is their any way to render the canvas or rectangle in wpf in asp.net mvc as an image.
I need to render the wpf control in mvc as an image.
I have tried and only blank image is rendering..
...
I want to know if I can call a method in the controller when a button is clicked.
I have a view called home and when the view is loaded, it invokes the Index action method in the controller. I have a Button (HTML or ASP.NET) called LoadData. When I click the button, I need to load some data in the same view called Home.
How do I do th...
I could not find a way of displaying a please wait page while doing an async operation;
What I am trying to implement is a search page which displays 'please wait' animation while the search operation is being done by an async thread.
I am pasting the simple test code I implemented below. The initial "Searching" view is never displaye...
We have quite common code which worked fine:
public class CompressionFilterAttribute : ActionFilterAttribute
{
public override void OnActionExecuting(ActionExecutingContext filterContext)
{
HttpRequestBase request = filterContext.HttpContext.Request;
if (request.IsAjaxRequest(...
Hi, I'm getting an error:
StructureMap Exception Code: 202
No Default Instance defined for PluginFamily MVCPoco.Services.IService, MVCPoco.Services, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Line 96: {
Line 97: Type controllerType = base.GetControllerType(context, controllerName);
Line 98: r...
Background
I have a web application that uses ISO-8859-1 encoding. When I pass parameters using Html.ActionLink(), the value is decoded to UTF-8:
Web.config:
<globalization requestEncoding="iso-8859-1" responseEncoding="iso-8859-1"
fileEncoding="iso-8859-1" />
Index.aspx
This is a <%= Html.ActionLink("test", "Read", ...
I have an mvc app where I want to assign a user to a profile. I have two multiline select lists (i.e <select size="10"></select>). One for profiles the user is part of and one for the available profiles the user can become part of.
I am using JavaScript with two buttons to move the items between the two lists. When the form submits the ...
I've been given a short amount of time (~80 hours to start with) to replace an existing Access database with a full-blown SQL + Web system, and I'm enumerating my options. I would like to use ASP.NET MVC, but I'm unsure of how to use it effectively with my short timetable.
For the database backend I'll be using Linq to SQL as it's a pro...
I like the simplicity of the Simple Repository , this looks ideal for simple CRUD operations.
However, if I have a requirement for a complex query on top and ideally want my app to call a Stored Proc what is the recommended way to do this?
Does ActiveRecord cater for Stored Procs?
I will be using this in a ASP.NET MVC app and really ...