I still don't understand how I should handle my form input errors within an mvc. I have f.e. the a zend-like controller and a form class and so on.
But where do i include my form file which is not generated but only with pure html
<html>
<title>User-Registration</title>
<head>...</head>
<body>
<?php (if($errors)) { ?>
<p ...
My MVC site was working fine at Webhost4life until they migrated to the new platform with IIS7. Now the Login feature which my site has to allow employees of the site's company to perform back office funtionality does not work. It simply does nothing and returns no error. Looking at it in Fiddler does not seem to reveal anything unusual....
Ok, so I'm not having trouble with this per say, but I want to make sure that I'm doing this right because it just seems like a lot of extra work in the long run.
I am working with Sinatra and using HAML templates. I want to include a JavaScript file from my HAML file. My directory structure looks like this:
media/
js/
init.js (file...
I have a customer filter attribute to check for expired session in my .Net MVC application which works fine on a standard html form. However, when I apply the attribute to an action that is called by an Ajax form and the session is expired, it reloads the login page (where the filter attribute redirects the context) into the ajax update ...
I have the basic Master / Detail Views working great with the default ASP.NET MVC Route; however I would like to build some URLs like this:
/Class/Details/5 -- General Detail view [Working]
What I'm not sure about (and I'm not tied to this URL format, just something roughly equalivent.)
/Class/5/Details/Logs -- Detail View with Logs
...
I've hit a bit of a snag with one of my projects. Like a lot of nerds, I decided to create my own video game review site. Reviews are stored in the database, and can be retrieved via the title of the game with a url like:
http://www.example.com/reviews/{gameName}/{optional pageOfReview}
Unfortunately, when testing edge cases, I came ...
I'm looking for a book on MVC. I've tried diving head-first into it without any documentation, but I didn't really learn about the core concepts. I'm a hands on kinda guy, so the ideal book would teach me the concepts and then allow me to implement them with mini-projects.
There are plenty of books to choose from on Amazon, but recomme...
Hi,
I would like to allow my users to register from homepage by entering name, surname, email and password information. After submitting the form, I want to redirect my users to a security check page for a capthca validation. User will be saved to the database after this captcha validation. The scenario is similar to Facebook's homepage...
I've been getting more and more interested in using Pylons as my Python web framework and I like the idea of MVC but, coming from a background of never using 'frameworks/design patterns/ what ever it\'s called', I don't really know how to approach it.
From what I've read in the Pylons Book, so far, it seems I do the following:
Create ...
I am writing a questionnaire application with ASP.NET MVC 2.
I have a set of questions that require a response of yes, no, unsure.
These need to be images that return a value to the questionnaire controller.
What is the best approach for adding image buttons?
...
Im working on optimizing my design in terms of mvc, intent on simplifying the api of the view which is quite nested even though Iv built composite widgets(with there own events and/ pubsub messages) in an attempt to simpify things.
For example I have a main top level gui class a wxFrame which has a number of widgets including a notebook...
I have a profile image upload page, where users can overwrite their previous profile picture.
But when I return the users to their profile page the browser has cached their previous image and only an F5 refresh returns the new image.
Is it possible to prevent the browser from caching the image, as some users might think their new uploa...
Hi there, I'm pretty new to iPhone development.
I am building an app which has multiple views and controllers. There is only one model.
I need to share the model amongst all of the controllers; so I have instantiated the model inside the App Delegate header file:
@interface MyAppDelegate
(...snip...)
@property (nonatomic, retain) Cal...
I'm looking for a couple projects to help me learn MVC, LINQ, and maybe a little jQUERY. I've got a couple ideas - the top one is creating a complete bug tracking system or support ticket system.
Do any of you have any suggestions regarding what I could try? I would rather have something more advanced and something with actual utility. ...
Why annotations doesnt work in interfaces ?
like:
public interface IUser
{
[Required]
string FirstName { get; set; }
}
now if i made a class to implement that
public partial class Customer:IUser
{
public Customer()
{
}
public string FirstName
{
get; set;
}
}
it wouldnt enforce validation...
Hi, I have an MVC project setup, and I've brought the subsonic Active Record templates into my project, and they generated successfully and I can use the subsonic classes to access my database. However, how do I create a strongly typed view using the subsonic generated classes? When I select "add View" and I check the checkbox to creat...
Hi all,
<script type="text/javascript">
$(document).ready(function() {
alert("Hello jQuery.");
});
</script>
This works the first time I request /Home/Index, but if I navigate to eg /Account/Login then back to /Home/Index it doesn't work. Doing the same thing using a webforms project works everytime. What...
Hi All,
I have an MVC/Nhibernate app that is giving me the below.
[WrongClassException: Object with id: f7eab616-76b2-4602-8643-b4466e91a33f was not of the specified subclass: AgileThought.ERP.Domain.CRM.Client (loading object was of wrong class [AgileThought.ERP.Domain.HR.SalesRepresentative])]
NHibernate.Loader.Loader.Instanc...
I'm trying to secure my MVC routes from a set of users that meet a set of criteria. Since MVC seems to use attributes quite a bit and Steven Sanderson uses one for security extensibility in his pro MVC book I started heading down this route, but I'd like to define the rule contextually based on the action I am applying it to.
Some acti...
Hello, is there a way using Javascript or Jquery to use the value of a hidden field which i modify dynamically (depending on other stuff) to and actionlink helper?
<%=Html.ActionLink("Groups", "List", "Home", new { brokerId = ??? HIDDEN INPUT FIELD ??? })%>
Thanks in advance.
...