I have a page called
EditProject.aspx?id=xxx
I would like to invoke it wherever I want in a modal dialog. The modal dialog is simple with bootstrap.
I would just like to know if there is a control to invoke the page somehow in a div or modal dialog.
I know about IFrame, but is there a nicer more modern way with asp .net?
Thanks
You’d be better off moving EditProject.aspx to a user control, EditPorject.ascx.
Userconrols work much the same as aspx pages, supporting the same events, but you can embed them within ASPX pages like so:
You can still access the query string parameters from the usercontrol. You can also pass values to the usercontrol by adding a property:
You can then set this property in the ASPX pages markup:
or in the ASPX pages code behind:
Hope this helps.
For more information on user controls see this overview on MSDN:
http://msdn.microsoft.com/en-us/library/fb3w5b53(v=vs.100).aspx