javascript - open a new window form action method in MVC -


i trying open url javascript function.

the issue not able authorize url mentioned in image.

how can load page action method can authorize url.

here javascript method.

<img src="~/images/question_frame.png" style="margin-top:3px;height:18px;width:20px;" onclick="window.open('../help/nmc/enu/default.htm', 'nmchelp', 'toolbar=no, scrollbars=yes, resizable=yes, top=50, left=50, width=750, height=600');"/> 

how can achieve this?

how window.open(.../help/nmc/enu/default.htm) opened action method in new window when tried open window out authorized redirected login page.

you're displaying static html file, bypass mvc entirely.

the easiest create authorized action method , link instead. in action method, return contents of html file. see render html file in asp.net mvc view?.


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -