1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

HElp to create title with <% =strFileName %>

Discussion in 'C#' started by BABUPATHAN, Jun 11, 2008.

  1. #1
    I have web running youtube videos by fetching them through an asp script
    the page where videos titles and icons use to display have a value of <% =strFileName %> but when some one click a video to play it, it use to open in a new window and this new page only load the video id and then play the video

    Now i want to set that when a user click a video to play then this new page automatically set this page Title to Video Name by fetching value of <% =strFileName %> from the main page of that video

    can any one help me with this ?

    or anyone can suggest me best ?
     
    BABUPATHAN, Jun 11, 2008 IP
  2. yugolancer

    yugolancer Well-Known Member

    Messages:
    320
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #2
    use javascript (client-side code)

    for example:
     
    yugolancer, Jun 11, 2008 IP
  3. bclassic

    bclassic Peon

    Messages:
    205
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    java is a nice way to do the job
     
    bclassic, Jun 11, 2008 IP
  4. BABUPATHAN

    BABUPATHAN Member

    Messages:
    54
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #4
    Thanks for ur replys

    But it didnt solve my problem

    i have codes which use to display youtube videos on my index page, and when user click a video it use to open on video player page by this code line

    <a target="_blank" href="video.asp?v=<% =strVideoID %>">

    and the next page open with url http://www.myweb.com/video.asp?v=<real Video id of youtube>

    real video id= youtube video id

    now i actually want to use some codes which can set this http://www.myweb.com/video.asp?v=<real Video id of youtube>
    page title by fetching the Video name of this video id from my indexed page
    indexed page is using strings to get video name by following codes
    strFileName = mid(strFileNameStart, 13, iFileNameEnd+13)

    and placing it with video by using <% =strFileName %> on indexed page but didnt submiting on video player page
     
    BABUPATHAN, Jun 12, 2008 IP
  5. mazzetta

    mazzetta Peon

    Messages:
    33
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I don't understand the problem... do you have the video file name in a variable or in the db or anywhere else?
    Just retrieve the title before the title tag and put in the title tag:

    If you pass only the videoID and u have title name stored in the db, just select it in the video page by the videoID.
     
    mazzetta, Jun 15, 2008 IP
  6. eLucknow.com

    eLucknow.com Peon

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    pass the strFileName value through query string to new window

    <A href="yoursitename.com/newpagename.asp?titlevalue=strFileName">

    and then display it by using
    <title><% =request.querystring("titlevalue") %></title>
     
    eLucknow.com, Jun 24, 2008 IP
  7. bclassic

    bclassic Peon

    Messages:
    205
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    <% v=request("v") %>
    <title><% =v %></title>
     
    bclassic, Jun 25, 2008 IP
  8. kadesmith

    kadesmith Peon

    Messages:
    479
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Instead of <a target="_blank" href="video.asp?v=<% =strVideoID %>">

    Set the strVideoID = "video.asp?v=" + strVideoID

    Then use <a target="_blank" href=<% =strVideoID %>>Link Title</a>
     
    kadesmith, Jun 25, 2008 IP