Hello there,
I wanna know if there's a way to do something like webforms .. Or a nice way to do this .. I have an ActionLink("foo", "fooAction") on my "Index" view. In this fooAction, I call a method that returns "True" or "False" and depending on the return, I have to give to the user, some feedback and return the "Index" with the same results + the feedback.
In webforms we would just set "label.visible = true; | label.text = 'bla'" or w/e on the method.
Am I clear ? Thanks !
Edit:
Some pseudocode I would do using webforms to explain better:
<asp:button OnCommand="method1">
- Method1(){
var response = ws.MethodFromWebService(); //call a method from the Web Service and get the return(true/false)
if (response)
feedbackLabel.Text = "worked";
else
feedbackLabel.Text = "didn't work";
feedbackLabel.Visible = true;
}
I'd like to do that without javascript.