How to run ASP.NET MVC 2 (not 1 which is default)
This might be a stupid question but how to update System.Web.Mvc dll which is 1.0 right now? I'm using the latest Mono 2.6.7 and MonoDevelop 2.4. ...
This might be a stupid question but how to update System.Web.Mvc dll which is 1.0 right now? I'm using the latest Mono 2.6.7 and MonoDevelop 2.4. ...
After reading ASP.NET MVC 2 in Action and watching Jimmy Bogard's presentation from MvcConf (both highly recommended!), I began to implement some of their ideas. One of the cool things they do, is not only to use AutoMapper to map your entities to some viewmodel, but automate this with an AutoMapViewResult: public class EventsControlle...
Hi I am wondering how do I make pages automatically use https? Like if a user types in http://www.mysite.com It should take them right to the login page. However I have SSL required on this page(when they try to login). So how could I make it so it would change it to https://www.mysite.com even if they don't type it in themselfs? ...
I'm using MVC 2 and loading a partial view via AJAX which contains my jqGrid. The problem is that my OnSelectRow event only fires once if I have it in an external .js file. Is it possible to use the jQuery live to bind to the OnSelectRow? I can only see how to bind the OnSelectRow in the options for the jqGrid? Thanks for the help, Ciar...
I have an application that I've been using xVal successfully on for quite some time. It was recently updated to MVC 2. I use the standard DataAnnotations attributes on my domain models, which also implement a "Validate()" method that calls the DataAnnotationsValidationRunner. If there are any errors, that method throws a RulesExceptio...
I have a view with a simplemodal popup window. You click on a hyperlink, it pops up the window, and if you try to submit the popup'd form without filling in any information it will display the appropriate validation error message next to the textbox. If you close the modal popup and click the hyperlink again, it seems to not do the cli...
Howdy, I have the following function that uses jQuery "get" to perform an ajax call to an MVC controller. function updateTables(firstMonth, getReduced) { $.each([cContactType_Email, cContactType_SMS, cContactType_EmailSMS, cContactType_Telephone], function(index, value) { var toUpdate = $("#" + value); ...
When using the following code, the id's of the field and the id in the for attribute of the label isn't identical. <%: Html.LabelFor(x => x.Localizations["en"]) %> => Localizations[en] <%: Html.TextBoxFor(x=> x.Localizations["en"]) %> => Localizations_en_ <%: Html.LabelFor(x => x.Localizations["en"].Property) %> => Localizati...
Consider the following setup: Model: public class Product { [ReadOnly(true)] public int ProductID { get; set; } public string Name { get; set; } } View: <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MvcApplication4.Mo...
Hi, I use MVC.net alot, and I made some functionality (or found it on internet) which I use in every project (custom authentication filterattribute, ImageActionlink html helper etc). Is it possible to create a "class" library with these filters and htmlhelpers etc? So I could import them in every project. And how would you do this ? ...
I am very new to ASP.NET MVC and am working over an eCommerce application that uses ASP.NET MVC 2. For all the scenario, the default route works fine. But I need to define my own rule for URL like below: http: //localhost/mvc2proj/products http: //localhost/mvc2proj/products/productname For this, I defined a new route just above the...
Hi, I've got webform routing setup on my asp.net webforms 3.5sp1 project. I would like to have the files for the site in a directory called content including the home page as I would like to run multiple sites using the same system. In MVC there is a blank default page and the home page is in a folder called home. I can't seem to repli...
There seems to be no extension method to include some arbitrary route values that normally I would expect to go into the querystring. Old code: <%: Html.ActionLink(Model.ParentMessage.Category.Text, "index", null, new { category = Model.ParentMessage.CategoryID }, new { })%> I want to change it to this but it takes the category as an...
I need to get my application to work in ie6. I have found that the default login page does not work. The login section in white is to the right of the header, and more importantly I cannot enter anything into the textboxes. How do I fix this? <%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.Vie...
Possible Duplicate: Traditional ASP .NET vs MVC I am new to .net world coming from java , I know some jsp and jsf, I want to start learn web development in .net, so now I want to chose what to learn ASP.NET MVC (open source) or ASP.NET. Please help me to chose one of them and why? ...
I want to localize / globalize the fields on my Login page. I am using ASP.NET MVC 3 Preview 1 with the razor view engine. Some background First of all, i've set my routing and added a localization attribute handler so that I can write http://mysite.com/{lang}/{controller}/{action}/{id}. Now this works all good. In my Viewsfolder I've ...
So here is the situation. I have a button on one of my extjs pages. This button opens a child window as a pop-up. This child window has a .method attribute as well as a .ref attribute, and also a .id. I need the functionality to open another window with the SAME template, everytime I click that button. I was thinking set the childwindow...
I'm writing a MVC website and using jqGrid. I have managed to get it working, loading data, editing via a different web page and deleting data. However, I'm trying to figure out how to make it go to a different page when you click view. Currently it will display the row data in a model form. What I need to happen is for it to go to a di...
I'm using the http://malsup.com/jquery/form/ plugin to submit some forms via jQuery. Within these forms I have a couple of textareas. I have a simple script that limits the number of characters that can be entered into these textareas and this all works fine. However when I submit the form looking at the value that gets sent the form ite...
Hello, I'm using JQuery UI 1.7/PACKT book. It said on p.63 that the content of a page can be loaded just by using this statement <li><a href="tabContent.html">AJAX Tab</a></li> How can I obtain something with Html.ActionLink() Thanks for helping. ...