mvc

ASP.NET Subdomain Cookie (parent and one subdomain)

Hi. I have an app with multiple subdomains, subone.parent.com, subtwo.parent.com. I have a logon page at parent.com/login. When a user logs in I redirect them to the proper domain based on which one they are a member of. This works fine. FormsAuthenticationTicket ticket = new FormsAuth... string encTicket = FormsAuthentication.Encry...

ASP.NET MVC Wizard and xVal validation

Hi. I'm building a wizard-style application in ASP.NET MVC and is wondering if you have any feedback on my current approach. Each step of the wizard is a partial view (user control) wrapped by a DIV. All DIV's are shown on the same view (Create.aspx). I then use jQuery to go to next or previous step - in other words hide or show a spec...

jquery.autocomplete within asp.net mvc ajax form

Hi, I am trying to use the jquery.autocomplete plugin within a ajax form. The form is also within a modal dialog using thickbox. The problem is that it seems to correctly call the controller method and return the results, but it does not actually display anything on the screen. I copied the markup code into a regular view and it work...

Dynamic layouts in CakePHP

Sorry about the question title, but I couldn't find a more appropriate way to phrase this. I am currently building a CakePHP powered website and I'm not quite sure how to approach the following issue. The website looks something like the follwing mockup: . The greyed out areas are part of the layout, because their content does not ch...

Using MFMailComposeViewController to send a mail, get “EXC_BAD_ACCESS” when dismissing the modal view controller.

Hi, I am sending an email from my iPhone app using MFMailComposeViewController. This works fine but after sending or canceling I need to dismiss the modalViewController. When I do this I get a Program received signal: “EXC_BAD_ACCESS”. This is not very descriptive... Please help!! This is the code for creating the mail and the modalVie...

How to extend/override controller actions of plugins ?

The plugin (Nimble 0.3) I am using in my grails application, includes some controllers and associated actions. I want to change (slightly) some actions behavior, and I was wondering how I can achieve that. Can I create a child controller that inherits from my plugin controller and override some of the action implementation? Or, can I c...

where do i include the super_model in an ajax call?

from javascript i request for a php file. and this php file will call a model that extends a super_model. i wonder where i should include this super_model. in the php file (which acts like a controller) or in the model? i've got other models too, should i include the super_model they all extend in the controllers that are calling them,...

ASP.NET MVC Authorize Attribute to launch a modal?

I am working on a site that makes use of jquery modal dialogs to do various things like logging in and such. However; we have one slight issue with the use of these.. which is we are using the [Authorize] attribute on a lot of our action methods and so what is happening is if the user is not logged in and hits a route that they need to ...

How can I remove the controller and action from the url and only get the url in MVC

Hi, EDIT I may not have worded my problem very well. The actual problem is not in the routing as much as it is in trying to derive the actual url of the request. The application can be deployed on many seperate machines. For example http://localhost:2990/Client/List http://avapd024/llne.dev/Client/List http://machine123:8...

Drop Down List in MVC C#

Hello, I am trying to retrieve a value from a drop down list in MVC, I am able to bind the drop down list from a table but unable to save the id of the drop down value selected back to the database. //The following is a snippet of my Create.aspx <%= Html.dropdownlist("departments", "Select One")%> //The following is a snippet of my Ho...

MVC Validation input-validation-error CSS not working

morning i can't get the input-validation-error css to work when i have a class already for the input box. <%=Html.TextBox("FirstName", null, new { @Class = "text" })%> <%=Html.ValidationMessage("FirstName", new { @style = "color: red;", @Class = "errorInValid" })%> if i take out new { @Class = "text" } then .input-validation-error {...

ASP.NET MVC Dynamically generated image URLs

I have an ASP.NET MVC application where I am displaying images. These images could be located on the file system or inside a database. This is fine as I can use Url.Action in my image, call the action on my controller and return the image from the relevant location. However, I want to be able to support images stored in Amazon S3. In t...

In JSF, What is the best way to prevent Form tampering?

We are using JSF 1.x with server-side state saving turned on. We have an issue where a malicious user, implemented as a web-bot, can submit a page w/o submitting all fields that are expected to be in the form. This results in some validators not being called that should be called, etc. We would like to prevent users from being able to ...

MVC Folder Structure for Project with Multiple Themes/Skin

I'm working on a project that has multiple theme/skin and is extensible via plugins. As it stands right now my folder is structured as such. vc/ controller/ home/ view/ classic/ home/ spring/ home/ plugin/ feedReader/ view/ locale/ template/ header.ht...

How would MVC-like code work in Node.js?

I'm starting to get my head around node.js, and I'm trying to figure out how I would do normal MVC stuff. For example, here's a Django view that pulls two sets of records from the database, and sends them to be rendered in a template. def view(request): things1 = ThingsOne.objects.all() things2 = ThingsTwo.objects.all() ren...

is there a way to set the HideSurroundingHtml value in ASP.MVC 2

I'm building a table of data like this <% foreach (var person in Model.People) { %> <tr> <td><%= Html.ActionLink(accessory.Name, "EditPerson") %></td> <td><%= Html.DisplayFor(c => person.Name) %></td> <td><%= Html.DisplayFor(c => person.Age) %></td> <td><%= Html.DisplayFor(c => person.Budget)%></td> ...

Question about MVC folder structure

To use the MVC pattern/layout structure, does it basicly require everything to be loaded through 1 file, like your index file? ...

component-based php framework?

could someone give an example of the meaning of this word? i read about that prado is a component-based framework and i wonder if cakephp and codeigniter are too? ...

Are Nhibernate Helper Kits available for VS2008?

Can anyone help me out by providing some information on Nhibernate Helper Kits for VS2008 and which all are open source and which all are not. Can also anyone share some links that give information on using NHibernate with ASP.NET MVC ...

ASP MVC on IIS6

In our asp mvc application, we are using embedded views, images and css files. On deploying on IIS6, the views are being rendered but we are having problem with the images and css files. We are getting 404 not found error. The same application on UltiDev Cassini Web Server is working fine. The problem seems to be with IIS6. Any kind of ...