How to acheive pop-up window in DotNetNuke 3.1.1?

Last post 04-19-2006 4:52 AM by sharanya. 3 replies.

Sort Posts:

  • How to acheive pop-up window in DotNetNuke 3.1.1?

    04-18-2006, 9:18 AM
    • Member
      155 point Member
    • sharanya
    • Member since 10-21-2005, 10:20 AM
    • Posts 31

    Hello Everybody,

    In my portal (developed using DNN 3.1.1), I am creating a new link button in "Links" module. On click of that link button, I need to display content retreived from database in a new pop up window.

    Can anyone suggest me how to get the pop up window with the values retreived from the database?

    Thanks & Regards,

    Sharanya

     

  • Re: How to acheive pop-up window in DotNetNuke 3.1.1?

    04-18-2006, 9:43 AM
    • Participant
      1,430 point Participant
    • ech01
    • Member since 09-08-2004, 3:19 PM
    • MN
    • Posts 288

    Create another control. This control will pop up and load the data. Pass into it the parameters you need to run your query and run it in the Page Load event.

    Private

    Sub LinkButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LinkButton1.Click

    Response.Write("<script>window.open('" & EditUrl("ParamName", ParamValue.ToString, "Control KeyName") & "','_blank')</script>")

    End Sub
    The only part of the solution I can't seem to figure out is how to load the blank skin. Can anyone chip in on this?
  • Re: How to acheive pop-up window in DotNetNuke 3.1.1?

    04-18-2006, 11:11 AM
    • Participant
      1,430 point Participant
    • ech01
    • Member since 09-08-2004, 3:19 PM
    • MN
    • Posts 288

    I figured it out. You have yto use NavigateUrl() instead of EditUrl()

    Response.Write("<script>window.open('" & NavigateURL(TabId, "Control KeyName", "mid=" & ModuleId.ToString, "ParamName=" & ParamValue& "&SkinSrc=" & QueryStringEncode("[G]" & Skins.SkinInfo.RootSkin & "/" & glbHostSkinFolder & "/" & "No Skin"), "ContainerSrc=" & QueryStringEncode("[G]" & Skins.SkinInfo.RootContainer & "/" & glbHostSkinFolder & "/" & "No Container"), "dnnprintmode=true") & "','_blank')</script>")

  • Re: How to acheive pop-up window in DotNetNuke 3.1.1?

    04-19-2006, 4:52 AM
    • Member
      155 point Member
    • sharanya
    • Member since 10-21-2005, 10:20 AM
    • Posts 31

    Thanks a lot for your reply.

    But my problem seems to be different. Actually , I want to open a new page as the dialogue box. So I tried the following code :

    LinkButton.Attributes.Add("onclick","window.showModalDialogue('test.aspx',null,'status:no;dialogWIdth:370px;dialogHeight:220px;dialogHide:true;help:no");")

    where test.aspx is the page I want to open as the dialog box.

    But in DotNetNuke, creating a new page and redirecting to the new page seems to be difficult because we need to navigate the pages through the url.

    Can you give me solution for this?

    Where should I crearte the new page test.aspx, inside the module level (Links module) or outside?

     

Page 1 of 1 (4 items)