WebControl and website path

Discussion in 'ASP .Net Web Controls' started by PiaF, Aug 5, 2004.

  1. PiaF

    PiaF Guest

    Hi,

    I am a begginer in .Net and i am writing a webcontrol which make an
    XML stream and tranform it with an XSLT file.

    I call my control like that:
    <myCustom:classicleftnavigation xslfilepath="/xsl/navigator.xslt"
    runat="server"
    id="ClassicLeftNavigation1"></myCustom:classicleftnavigation>

    But when my control is executed, it try to find the XSLT file into
    c:\windows\...\xsl\navigator.xslt
    But, my website is not located there.

    How can i locate my website path in my webcontrol ?
     
    PiaF, Aug 5, 2004
    #1
    1. Advertising

  2. You can use the tilde (~) character to represent the root of the Web
    application. Try something like

    xslfilepath="~/xsl/navigator.xslt"

    Does that work?

    Ken
    Microsoft MVP [ASP.NET]


    "PiaF" <> wrote in message
    news:...
    > Hi,
    >
    > I am a begginer in .Net and i am writing a webcontrol which make an
    > XML stream and tranform it with an XSLT file.
    >
    > I call my control like that:
    > <myCustom:classicleftnavigation xslfilepath="/xsl/navigator.xslt"
    > runat="server"
    > id="ClassicLeftNavigation1"></myCustom:classicleftnavigation>
    >
    > But when my control is executed, it try to find the XSLT file into
    > c:\windows\...\xsl\navigator.xslt
    > But, my website is not located there.
    >
    > How can i locate my website path in my webcontrol ?
     
    Ken Cox [Microsoft MVP], Aug 5, 2004
    #2
    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. Guest
    Replies:
    2
    Views:
    757
  2. Luis Ramírez.

    Can a webcontrol (webcontrol.dll) have a configuration file?

    Luis Ramírez., Jul 5, 2004, in forum: ASP .Net Building Controls
    Replies:
    2
    Views:
    222
    Luis Ramírez
    Jul 6, 2004
  3. Kasabaarde Sumta

    WebControl inside of WebControl and attaching events

    Kasabaarde Sumta, Dec 13, 2004, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    215
    Kasabaarde Sumta
    Dec 13, 2004
  4. Fabricio

    Custom webcontrol that references another webcontrol

    Fabricio, Sep 21, 2005, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    206
    Fabricio
    Sep 21, 2005
  5. Peter Morris [Air Software Ltd]

    WebControl with non-WebControl property

    Peter Morris [Air Software Ltd], Dec 7, 2004, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    151
    Peter Morris [Air Software Ltd]
    Dec 7, 2004
Loading...

Share This Page