Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > WebControl and website path

Reply
Thread Tools

WebControl and website path

 
 
PiaF
Guest
Posts: n/a
 
      08-05-2004
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 ?
 
Reply With Quote
 
 
 
 
Ken Cox [Microsoft MVP]
Guest
Posts: n/a
 
      08-05-2004
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
> 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 ?


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom webcontrol that references another webcontrol Fabricio ASP .Net Building Controls 0 09-21-2005 02:55 AM
Trapping an Exception ocurring in a Webcontrol at the Page or parent WebControl level. ASP .Net 2 01-31-2005 06:34 PM
WebControl inside of WebControl and attaching events Kasabaarde Sumta ASP .Net Building Controls 0 12-13-2004 09:51 PM
WebControl with non-WebControl property Peter Morris [Air Software Ltd] ASP .Net Web Controls 1 12-07-2004 12:25 PM
Can a webcontrol (webcontrol.dll) have a configuration file? Luis Ramírez. ASP .Net Building Controls 2 07-06-2004 04:35 PM



Advertisments