Questions tagged [controller-action]

51 questions
0
votes
1 answer

Asp.Net MVC cookies on exception thrown

I'm having rather weird issue. Hoping anyone can shed some light, since I couldn't find an answer anywhere. Scenario: controller action is called and exception occurs. At the same time I add a new cookie to Response.Cookies. But no cookie is sent…
Pavdro
  • 411
  • 1
  • 9
  • 18
0
votes
0 answers

I can't access to my cakephp controller to use it into the url parameter jquery

when I try to use the controller/action in the jquery function for an url . I have a NetworkError: 404 Not Found displayed in firebug . this how I am calling in my jquery function .
0
votes
1 answer

file_field in Form not uploading anything

I have a file upload form that when submitted, routes to my parse_upload action. However, when I try to retrieve the file, or any of the attributes that come along with the file upload object (original_filename, content_type), I get an error. The…
Utopia025
  • 1,181
  • 3
  • 11
  • 21
0
votes
1 answer

MVC3 - Controller Method to Create Model Data and Associate with Guid from another Table / Model

I have 2 Models, each having many properties - Object1 and Object2 I have foreign key relationship with them in SQL db - Object1 can have many Object2's Upon creating Object2 in my Object2Controller's Create() Method, how would I associate Object2…
J0NNY ZER0
  • 707
  • 2
  • 13
  • 32
0
votes
3 answers

how to use array variables inside action in controller

I want to fetch all posts posted by those users who have gone to same college as the current users...So inside my welcome controller i have written following code.. class WelcomesController < ApplicationController def index @col =…
-3
votes
1 answer

ajax POST not passing back correct data

I am trying to pass back a json object back to my action in my device controller, this is then inserted into the database, however when I click the submit button on my form it seems to fire twice. Another problem is that my location field within…
Johnathon64
  • 1,280
  • 1
  • 20
  • 45
1 2 3
4