Javascript in webuser control

Discussion in 'ASP .Net Web Controls' started by New User, Dec 3, 2003.

  1. New User

    New User Guest

    I have following structure for my project


    myproj
    Controls/control1
    morepages/special.aspx
    specialpages/webpage1.aspx
    scripts/filename.js
    default.aspx



    I have a control1 which has a public property name
    ScriptFilePath for bring in external javascript file.

    E.g it works for when I use control in default.aspx using
    ScriptFilePath="Scripts/filename.js"
    ok when i click on link to navigate it goes to for
    example, morepages/special.aspx page.

    However,

    When I use same control in webpage1.aspx with
    ScriptFilePath="../Scripts/filename.js" then
    I click on link in webpage1.aspx it produces following
    path myproj/specialpages/morepages/special.aspx rather
    than morepages/special.aspx.


    any ideas


    Thanks in advance
    New User, Dec 3, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. New User

    Javascript in webuser control

    New User, Dec 3, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    318
    Cowboy \(Gregory A. Beamer\)
    Dec 3, 2003
  2. Vai2000

    WebUser Control Usage!

    Vai2000, Mar 28, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    422
    Kikoz
    Mar 28, 2005
  3. Mark B
    Replies:
    1
    Views:
    854
    Alexey Smirnov
    Sep 24, 2009
  4. Comcast

    webuser control not responding to event?

    Comcast, Aug 1, 2003, in forum: ASP .Net Building Controls
    Replies:
    2
    Views:
    110
    Ron White
    Aug 7, 2003
  5. Rob Mayo
    Replies:
    1
    Views:
    93
    Alvin Bruney
    Jun 28, 2003
Loading...

Share This Page