Hi,
I did the same thing, but opened in a modal popup (jquery). I call the popup (example with markup and codebehind from a gridview) like this:
markup
<asp:gridview ..........
<asp:TemplateField HeaderText="Action" ItemStyle-Width="150px">
<ItemTemplate>
<asp:LinkButton ID="btnPopup" Text="Contacts" runat="server" /> |
</ItemTemplate>
.......</asp:gridview>
code behind
protected void gridClients_RowDataBound(object sender, GridViewRowEventArgs e)
{
try
{
if ((e.Row.RowState & DataControlRowState.Edit) == 0 && e.Row.RowType == DataControlRowType.DataRow)
{
LinkButton btnPopup = (LinkButton)e.Row.FindControl("btnPopup");
Label lblClientID = (Label)e.Row.FindControl("lblClientID");
Int64 ClientID = Convert.ToInt64(lblClientID.Text);
btnPopup.OnClientClick = " ETCI_PopupNavigate('" + this.GetCurrentUrlForPopup + "?ScreenMode=Person&EntityID=" + ClientID.ToString() + "', 550, 950, false);";
}
.........
My popupnavigate function resides in an include javascript (although i think height and width are switched):
function ETCI_PopupNavigate(url, height, width, refreshafterclose) {
dnnModal.show(url, false, height, width, refreshafterclose);
}
My getcurrenturlforpopup resides in my created base class (in my case Popu is the key):
public string GetCurrentUrlForPopup
{
get
{
return DotNetNuke.Common.Globals.NavigateURL(this.TabId,this.PortalSettings, "Popup", new string[] { "mid="+this.GetModId.ToString(),"popUp=true" });
}
}
This gives you a popup without menu items, just an empty page
HTH
Regards,
Alexander