Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
microsoft.public.dotnet.framework.aspnet.buildingcontrols
Using paths that include ~
Nathan Sokalski
3/25/2008 4:55:00 PM
As we all know, the ~ can be used to represent the site root in URLs used in
server controls. What function would be used to replace the ~ with the site
root in a String passed to it? Thanks.
--
Nathan Sokalski
njsokalski@hotmail.com
http://www.nathansok...
1 Answer
David R. Longnecker
3/25/2008 8:47:00 PM
0
Nathan-
You can mix and match various properties of HttpContext and Request. Rick
S. has a nice list of the various properties on his blog at
http://www.west-wind.com/weblog/post...
.
I've referenced that page a few times just to remember which did what. ;)
There's also a part at the bottom for creating a helper method for server
controls.
HTH.
-dl
--
David R. Longnecker
http://blog.tireds...
> As we all know, the ~ can be used to represent the site root in URLs
> used in server controls. What function would be used to replace the ~
> with the site root in a String passed to it? Thanks.
>
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Using paths that include ~
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password