Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Court Borgman 12 posts 32 karma points
    Apr 29, 2011 @ 19:45
    Court Borgman
    0

    Passing node id in page querystring doesn't work

    I am opening the flowplayer in an iframe which loads a page that uses a querystring value to know which media node to play.  When I statically enter a node id in teh page it works fine, however when I pass the node in with the querystring I get nothing.

    the link html is:

    <a rel="gb_page_center[660, 601]" onclick="CreateSessionVars" href="/videos.aspx?s=0&amp;v=1399" title="View Video">
    <img style="border: none;" id="youTubeImg1399" src="/media/11346/epi tour button.jpg" width="130px" height="96" alt="View Video">
    </a>

    and the link works great, it opens the "popup" greybox window and the frame content page loads fine with the address test.epiinc.com/videos.aspx?s=0&v=1399.

    The code for the page itself is:

    <%@ Master Language="VB" MasterPageFile="~/umbraco/masterpages/default.master" AutoEventWireup="true" %>

    <asp:Content ContentPlaceHolderID="ContentPlaceHolderDefault" runat="server" >
    <link rel="stylesheet" type="text/css" href="/css/default.css" />
    <link rel="stylesheet" type="text/css" href="/css/controls.css" />
    <style type="text/css" media="screen"> @import url("/css/menuh.css"); </style>
      
    <!--[if IE 6]><style type="text/css">body { padding: 0px; } </style><link rel="stylesheet" type="text/css" href="/css/ie6.css" /><![endif]-->
    <!--[if IE 7]><link rel="stylesheet" type="text/css" href="/css/ie79.css" /><![endif]-->
    <!--[if IE 8]><link rel="stylesheet" type="text/css" href="/css/ie8.css" /><![endif]-->
    <!--[if IE 9]><link rel="stylesheet" type="text/css" href="/css/ie79.css" /><![endif]-->
    <script Language="VB" runat="server">
        Public ReadOnly Property VideoID() As String
            Get
                Return Request.QueryString("v")
            End Get
        End Property
          
        Public ReadOnly Property VideoCaption() As String
          Get
              Return Session("VideoDescription" & Request.QueryString("v"))
          End Get
        End Property
          
        Public ReadOnly Property VideoLink() As String
          Get
              Return Session("VideoLink" & Request.QueryString("v"))
          End Get    
        End Property
    </script>
      <div style="overflow: hidden; height: 601px; width: 660px; position: absolute; margin: 0px 0px -20px 0px; padding: 0px;">
        <div class="video">
          <umbraco:Macro videoNode="<%= VideoID %>" VideoWidth="640" VideoHeight="480" Alias="InsertVideo" runat="server"></umbraco:Macro>
    </div>
      
    <div class="videoCaption">
      <%= VideoCaption %>
      </div>
        <div class="videoLink"><%= VideoLink %></div>
          </div></asp:Content>

     

    I cant seem to figure this one out.

     


  • Court Borgman 12 posts 32 karma points
    Apr 29, 2011 @ 21:07
    Court Borgman
    0

    Solved the issue, sorry about the post.  It had to do with how I was passing the parameter data to an xslt macro.  I dont usually use xslt so this hasn't been a problem for me before.

Please Sign in or register to post replies

Write your reply to:

Draft