asp.net mvc - New window using asp mvc in html form -


i building mvc app reporting. have page has form on contains multiple dropdownlist choose criteria report. have input button create report. button call new view same controller. new view gets values page criteria chosen parameters , uses populate it's own view model. working fine.

i open reports in new window. when @ controller, of parameters supposed coming selection page null. assume have pass these in via querystring picked controller. there way can values of dropdownlists within viewpage construct querystring?

is way accomplish trying do? better of using actionlink instead of input button? make difference?

i hope makes sense. thoughts.

just set target attribute on form _blank , should open request in new page/tab depending on browser being used.

<% using (html.beginform(myaction, mycontroller, formmethod.post, new { target = "_blank" })    { %>        <%-- ... --%> <% } %> 

Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -