I have asked a couple of questions over the last couple of days, that probably did not get answered because it might have been to broad. After some research, I may have narrowed it down a little bit.
I am wondering if there is a way that I can use the Html.BeginForm(action,controller,routeValues) overload of Begin form to pass in RadioButton results (ie, the user has clicked one of the two choices). I need that value passed into the query string so that my action can handle it. My action takes two parameters, and so far I can only figure out how to get one of those values into the action. Here is some example code...
<%Html.BeginForm("TemplateInfo","PatientACO",new { PopulationID = ViewData["POPULATIONID"], ActiveAll = "1"});
%><input type="submit" value="Refresh" id="test" /><%
%></div>
<% Html.EndForm(); %>
Note, I am setting my ActiveAll attribute, auto Magically. I need it set dynamically. IE, it needs to be set by the user. Because that particular action takes two parameters. Need to figure out a way to get that dynamic value into that action? I am hoping that routeValue dictionaries, or routValues in general will help me figure out a way to get this done.
If you have any idea's how to do this I would really appreciate this.
UPDATE
I also wanted to mention that I don't want to change the controller to accept FormCollections, because this action is called by other methods and views. Any ideas?
UPDATE 2
Ok, with a little more research, I guess what I am trying to figure out is, how can I get the Form value of the Radio Button in the view so that I can then add it to a RouteValueDictionary or something... Any ideas?