Hi Guys
I'm not sure if I have my question named correctly but here's the issue:
I have an MVC.NET app that is deployed at multiple virtual directories. The reason for this is because we have different versions under various stages of QA.
The problem with this is that in one site the .js references are for
/VirtualDir/scripts/fi...
I'm trying to do something similar to what Stackoverflow is doing.
I have a quick search text box and I can put an arbitrary number of words into in and submit my search. Receiving action does this (shortened version)
public ActionResult Search(string query)
{
Regex rx = new Regex("(?<word>[a-zA-Z0-9]+)");
StringBuilder parts = new ...
I am considering using xVal for validation of Entity Framework classes in a MVC application. This involves writing metadata classes as explained in details by Graham O'Neale (http://goneale.com/2009/03/04/using-metadatatype-attribute-with-aspnet-mvc-xval-validation-framework).
I am wondering if there's a way to auto generate such metad...
Hi have form authenticaion for my site, and it works fine on localhost and godaddy, but after moving to another hosting it stop working.
After login in admin area after 2-3 minutes I redirecting back to login screen.
Does anybody know if I change some settings on IIS or what is the source of the problem?
My code looks like
<authentica...
I have two routes in my ASP.NET MVC application.
The first is working fine - it's an ActionResult that returns a view.
The second is on the same controller and is an ActionResult that returns a Json response. It takes a couple of additional paramaters.
This second route is working on my dev machine, but when I deploy it to the server ...
I have a jqGrid in an ASP.NET MVC View with the option multiselect:true. There are over 200 records displayed in the grid, so I have paging enabled. This works great, but when I navigate from page to page, the selections are lost when I navigate.
Is there a good, clean way to persist the selections so that they are maintained while pa...
I have a page that has to render a huge set of query results - most of them with very, very small images. It is already paginated, so that won't solve my problem.
The query executes fine - it's very zippy, returns in about .0004 seconds, paginates itself out to the View - all is well in the land of Oz.
However there is some big trouble...
I have a stongly typed view:
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IPagedList<Product>>" %>
I'm trying to use an HTML helper on it that works fine on a non-strongly typed view. I've tried a few variations, such as:
public static string Pager(this HtmlHelper help...
Hi,
is it possible to create kind of widgets that are pluggable in ASP.NET MVC? I'd like to give my users the option to upload and attach a widget that I provide (ie. zip format). Recently I thought about deploying Areas in different project assemblies. Is it still possible with MVC RC2 (later RTM) and is there an option to dynamically ...
I am just looking into converting WebForms to MVC:
In .net MVC, what concepts make ViewState something thats not required?
If a form is posted back on iteself etc (ie a postback)? how does the page/usercontrol maintain its state?
What tricks are people doing to maintain some kind of state and not resort to session state?
Surely, a co...
Hi All,
Here is a line of code in my Controller class:
return JavaScript(String.Format("window.top.location.href='{0}';", Url.Action("MyAction", "MyController")))
Is there a way to make it use the verb=post version of MyAction?
thanks,
rodchar
...
Stackoverflow uses OpenId as many other websites. However, I rarely need to provide my OpenId to Stackoverflow while with other OpenId enabled websites, I have to do it once a day or week.
This suggests to me that the expiry of the session is with the website and not the OpenId provider.
Looking at the DotNetOpenId code in ASP MVC, I c...
Hi,
how would you guys create a dynamic layout in ASP.NET MVC 2 where admins could select widgets to display, arrange them, disable, move them etc.? I mean a flexible layout that can be changed via the admin panel without having to touch the code. Here I thought about defining and storing layout widgets paths in a db. Later I could asso...
I am currently running a website, i use a control that inherits from ITemplate to wrap all my usercontrols in.
basically what it is, is a table with a nice border, and i am able to dump anything in there, so if i change the container template, all the containers accross the site changes...
I am now in the process of rebuilding the ent...
I'm kind of confused...
I have one action that takes an ID, loads up an object, and passes it to the View which is bound to the Model of that object's type.
After editing the data in the form supplied by the View, I POST back to another action that accepts an object of the same exact type as the Model.
However at this point I can't ju...
I want to make a post request and i do like this:
function Xxx_Click() {
var params = new Array();
var p1 = new Object();
p1.Name = "id";
p1.Value = 1;
params.push(p1);
post('<%=Url.Action("Act","Ctrl")%>', params);
}
function post(url, para...
Is Visual Studio 2010 compatible with MVC 1.0
Hello guys,
Thanks for reading in advance.
I'm working with a MVC 1.0 project and VS2008.
I will be very glad to upgrade to VS2010, but I'm doubting about its compatibility with MVC 1.0.
Have you done it? How did it result?
...
What will be broken after migrate to MVC 2?
I wonder what breaking changes will come with MVC 2, so how traumatic will be the migration?
How much smooth have been your experience migrating?
...
Hello everybody,
I am having trouble getting the functionality we want in our Create View in our ASP.NET MVC application.
We have got two DropDownLists in our Create View.
One is a selection of categories and the second should be populated with items based on the id value of the first category selected. (They have a FK relationship)....
What Version of Asp.Net MVC is in Visual Studio 2010 RC?
Is it MVC 2 RC 2? or RC 1? Or ...?
...