What I need to do is to open an aspx-page in a modal dialog when the user clicks on a asp:button.
Currently I'm doing this:
(Markup)
<asp:Button runat="server" ID="TestButton" Text="Add Category" PostBackUrl="javascript:OpenPopUpPageWithTitle('_layouts/Customer/AddCat.aspx', RefreshOnDialogClose, 600, 400,'Add new Category')"/>
It's working, but what I need is to provide the ID of SPContext.Current.ListItem from the "source aspx" to the new one opened in the dialog.
To add params like {Site} to the PostBackUrl seems not to work.
Do you have any tips for me?