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


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.



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/.

Comments (2)

  1. Michael f phillips says:

    I hate I when evil Chicago freeze the Internet in my comupter and my comupter die I don't have the LCD keyword and it's die it's not work and evil Chicago bomb will kill me and I hate when it not inside the LCD keyword and fix my comupter and takethe bomb out and throw away to the tash and get the LCD keyword out

  2. Meysam says:

    If your assembly needs another assembly, how do you handle that?

Skip to main content