javascript - pass value of a Ext.NET hidden field to Action method as a parameter -


how can access hidden field value in action methods parameter please refer following code

url.action("action","controller",new {para_name=hidden_field_value}) 

edit

your code in comment assigns value "country" viewbag.country, means not work.

again solution use following

var url = '@url.action("action", "controller")?country=' + ext.getcmp("cmbcountry").value 

you say

i want assign value parameter action above , dont want send query-string parameter

but that's url.action method do, if observe result of url.action method see 1 , same


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -