Quantcast
Channel: MSDN Blogs
Viewing all articles
Browse latest Browse all 35736

[Sample of June 12th] Load User Controls from Embedded Resources in ASP.NET

$
0
0

 

Homepage image
image RSS Feed

Sample Download : http://code.msdn.microsoft.com/CSASPNETAccessResourceInAss-6725d61a 

Developed by Arwind Gao, the sample illustrates how to access user controls and web pages from class library via virtual path. Here we inherit VirtualPathProvider and VirtualFile class for creating a custom path provider, this virtual file system can provide a similar file path for accessing many files or code from different application, for example, we can put the same type of files (a.mp3, b.mp3) but in different assemblies (a.dll, b.dll) with a unite virtual path, like http://localhost/mp3/a.mp3 and http://localhost/mp3/b.mp3. In this way, our websites become more clearly and interactive.

image

 

For detailed introduction of the sample, please read the documentation at http://code.msdn.microsoft.com/CSASPNETAccessResourceInAss-6725d61a 

imageYou can find more code samples that demonstrate the most typical programming scenarios by using Microsoft All-In-One Code Framework Sample Browser or Sample Browser Visual Studio extension. They give you the flexibility to search samples, download samples on demand, manage the downloaded samples in a centralized place, and automatically be notified about sample updates. If it is the first time that you hear about Microsoft All-In-One Code Framework, please watch the introduction video on Microsoft Showcase, or read the introduction on our homepage http://1code.codeplex.com/.


Viewing all articles
Browse latest Browse all 35736

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>