468,321 Members | 1,895 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,321 developers. It's quick & easy.

HostingEnvironment.VirtualPathProvider

Hi all,

how to detect existing .ascx control in Net 2.0?

I try to use method in VirtualPathProvider:
HostingEnvironment.VirtualPathProvider.FileExists( "~/App_UserControls/ucDataPager.ascx");

it return true if file ucDataPager.ascx control exists, but if I publish web
site (no editable) and .ascx files not available on the disc, this method
return false, its bug?

Thanks Pavel
May 10 '06 #1
0 1059

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by mdufour | last post: by
1 post views Thread by VV | last post: by
reply views Thread by Shane | last post: by
5 posts views Thread by Charles Zhang | last post: by
4 posts views Thread by Robert Dunlop | last post: by
1 post views Thread by Sriram Srivatsan | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by howard w | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.