I am looking at creating a site using ASP.Net MVC which of coarse has a paid membership option and needs to allow recuring payments via Paypal. I am thinking of using Paypals Payflow Link as the site will be fairly small. I am looking for an Open Source example or Framework that I can use with Payflow Link. Are there any good .Net Fra...
Hi, I am deploying my first ASP MVC project. The project runs just fine, I would like to take the next step and run this outside of my visual studio environment on my local IIS. I am running Windows7, Visual Studio 2008, and I have created a basic ASP MVC project.
On my solution, I find the project I would like to deploy. I right cli...
As far as I can tell the recommended approach for ASP.NET MVC 1 is to use the Web Application Toolkit for Mobile Web Applications.
Is there any change in the mobile device story for ASP.NET MVC 2? Should this toolkit still be used?
...
Ive got a project that has got an application.spark and a html.spark that contains all the masterpage markup. The views work fine, but I need to create an isolated page that has no relation at all with the masterpages. Is it possible or will I need to have another nested masterpage?
Thanks
...
I know that ASP.NET MVC has error filter attribute to handle specified error type. However, this feature cannot catch any error that occurs when application start. Therefore, I need to add some code to “Application_Error” method for handling this error like the following code.
public void Application_Error(object sender, EventArgs e)
{
...
I'm trying to validate a form using Data Annotation. It seems great for string types and integers, but for a file upload, I couldn't validate from the class. It would just be sent a string "HttpPostedFileWrapper". Does anyone have any tips?
Thanks
...
In controller level i used [ValidateInput(false)]
and ValidateRequest="false" in the view.
Everything is fine except CKEDITOR removing <% %> tags.
Is there any other configuration i am missing?
...
Can anyone explain why this code with the given routes returns the first route?
routes.MapRoute(null, "user/approve", new { controller = "Users", action = "Approve" }),
routes.MapRoute(null, "user/{username}", new { controller = "Users", action = "Profile" }),
routes.MapRoute(null, "user/{username}/{action}", new { controller = "Users" ...
I am trying to add filter functionality that sends a GET request to the same page to filter records in my table.
The problem I am having is that the textbox complains about null object reference when a parameter is not passed. For example, when the person first views the page the url is '/mycontroller/myaction/'. Then when they apply a...
I have an website on asp.net-mvc, I'm thinking of using paypal for payments, is it possible to use paypal api for selling website's currency to users and buying it back ?
...
<body>
<div id="header">
<div class="title">SPORTS STORE</div>
</div>
<div id="categories">
<% Html.RenderAction("Menu", "Nav"); %>
</div>
<div id="content">
<asp:ContentPlaceHolder ID="MainContent" runat="server" />
</div>
</body>
This is a sample code from Steven Sandersons' book "Pro ASP.NET MVC Framework."
This code wokrs with mvc...
How can I set attribute to MVC2 user control defined in single file with content:
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
I'm searching declarative solution. Something like this:
<%[DefaultProperty("Items")]%>
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
Thanks.
...
I write a controller like below:
public class AccountController : Controller
{
public ActionResult Login(/*---*/)
{
GenericIdentity identity = new GenericIdentity("userName");
GenericPrincipal principal = new GenericPrincipal(identity, new string[] { "role1", "role2" });
this.HttpContext.User = principal;...
I'm struggling to find a decent walkthrough for this issue, and was hoping that someone could shed some light on this... I've built an application using a ton of Unity and DI, and I need to pull a few components into a web site and run a WCF service now with them. host a WCF service for clients to connect to it instead of having it inclu...
Hi, what could possibly be the explanation for this?
An ASP.NET MVC website, with one sub-application pointing at a different physical path.
After upgrading from IIS6 to IIS7, all is fine for an hour or so. Suddenly, requests for certain paths within the sub-application return the content for the "equivalent" path in the parent applica...
I believe this question applies to any of the "For" Html helpers, but my specific problem is using CheckBoxFor...
I have a model that is of type IEnumerable, where rights is a simple POCO. This model is actually a property of a bigger model that I created an EditorTemplate for. Here is the bigger picture of my model:
public class big...
Hi all,
I am writing an app for my company and am currently working on the search functionality. When a user searches for an item, I want to display the highest version (which is stored in a database).
The problem is, the version is stored as a string instead of int, and when I do an OrderBy(q=>q.Version) on the results, they are retur...
How can I set a select class and other attributes eg:events through the SelectList object?
If this cannot be done, what are the best practices in populating a select input (dropdownlist) ie should I just loop through the items and render the <option> tags
I guess events should be bound to the controls in jquery for instance, but I do n...
I think there is a simple answer to this, but for some reason I am hitting a writers block today. I have an app which people can search (like any app :) ) and generate a list view. From that list view, you can view details, which will take you to a details view. No JS, just another page. But, what I would like to do is to have a back...
I noticed what seems to me a bug in asp.net MVC or simply I am doing something wrong. I am currently using 1.0 so maybe this is something that will be addressed in the 2.0 release. But either way, here we go.
When I my view model has a property which is the same name as the declared id for a drop down list, the selected item is ignored ...