asp.net mvc - how to redirect to a url in mvc view -


i implementing live search , when user selects of options accordingly page gets redirected depending on option selected.

i have jquery implementing live search .

in select option :-->> want redirect page index function in homecontrollers file using javascript. index function has few parametres inside ...

i not able redirect ... url want send .. gets appended current url.

i doing window.location = "home/index/"+ ui.item.value;

kindly suggest ??? waiting reply soon.

you're using relative uri. need use absolute uri. instead of

window.location = "home/index/"+ ui.item.value; 

do

window.location = "/home/index/"+ ui.item.value; 

note /


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -