[Sample of June 12th] Load User Controls from Embedded Resources in ASP.NET - Microsoft All-In-One Code Framework - Site Home - MSDN Blogs
Microsoft All-In-One Code Framework - Developers' Pain Killer

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

Rate This
  • Comments 2

 

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

Leave a Comment
  • Please add 7 and 1 and type the answer here:
  • Post
  • 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

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

Page 1 of 1 (2 items)