Questions tagged [action]

An Action is a response of the program on occurrence detected by the program that may be handled by the program events.

Many languages and frameworks use this noun as synonym of function, without return value, where its main purpose is to do something.

For example the .NET delegate Action represents a function without parameters and return value.

In the Unified Modeling Language (UML), an action is a named element that is the fundamental unit of executable functionality. The execution of an action represents some transformation or processing in the modeled system. An action execution represents the run-time behavior of executing an action within a specific behavior execution.

4938 questions
47
votes
7 answers

.NET MVC Call method on different controller

Can anybody tell me how to call a method on a different controller from within an action method? I don't want to redirect. I want to call a method on a different controller that returns a string and use the response within my action method.
user135498
  • 6,013
  • 8
  • 29
  • 29
45
votes
7 answers

Set a form's action attribute when submitting?

How do I change a form's action attribute right after clicking the submit button?
dave
  • 14,991
  • 26
  • 76
  • 110
45
votes
2 answers

How can I create an Action delegate from MethodInfo?

I want to get an action delegate from a MethodInfo object. Is this possible?
mokaymakci
  • 1,373
  • 1
  • 18
  • 30
43
votes
5 answers

Action/Func vs Methods, what's the point?

I know how to use Action and Func in .NET, but every single time I start to, the exact same solution can be achieved with a regular old Method that I call instead. This excludes when an Action or Func is used as an argument for something I don't…
James P. Wright
  • 8,991
  • 23
  • 79
  • 142
43
votes
9 answers

Android Notification buttons not showing up

This is my code to set up a notification with buttons. Intent receiverIntent = new Intent(ctx, ResponsivePrefsActivity.class); PendingIntent pReceiverIntent = PendingIntent.getActivity(ctx, 1, receiverIntent, 0); Intent clearIntent =…
DraganescuValentin
  • 842
  • 2
  • 10
  • 16
40
votes
8 answers

Redirect on select option in select box

At the moment I am using this: to form action
I need to pass a value in option select to action where I have agent_id= Can anyone help?