I have three different cases in my project for opening new window. When I click a link in a window, I expected to do one of the following solutions:
I will use following types for window open:
_blank
_self
_parent
I have the following columns for opening a new window:
Code Width Height Behaviour
AccountPage 400 600 Self
ProspectPage 700 700 Blank
PasswordPage 200 200 Single
I need to pass specific parameters to javascript like width, height and code. Code is used for which screen is open and take its parameters. I have invoicepage, prospectpage,searchpage etc. If invoicepage is opened its width will be 200 or if prospectpage is opened the width will be 400px.
What is the proper way to manage and pass to javascript window open types and parameters in generic technique? How Can I prepare my classes and types?
I tried to use meta tag in my LayoutGeneral.cshtml for pass the dataset to javascript but I couldn't get it.
<meta name="IrisTabHeaderName" content="@Model.WindowInfo" />
Should I hold my data in my BaseViewModel and pass the parameters to javascript from there or should I hold my all cases in javascript and call from cshtml page with class?