[CLOSED] popup window control from shared layout page
can anybody guide me on how to open window popup partial view on a menu item click from layout page?
Window Control like this:
Code:
X.Window().ID("TestPopUp").Width(500).Height(500).Modal(true).Items(....)
I was able to do it by calling
Code:
@HTML.Partial("TestPopUp")
and then
Code:
X.Menu().Items(
X.MenuItem().Text("Test View").Listeners(l => l.Click.Handler = "App.TestPopUp.show()")
)
from my layout page, but I have many partial pop up window controls in my app, and I don't want to Render all of them across entire website. So, I was just wondering if there is any other approach of achieving this from my layout page?
Thanks