Wednesday, June 13, 2012

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

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

No comments:

Post a Comment

Could not find a part of the path ... bin\roslyn\csc.exe

I am trying to run an ASP.NET MVC (model-view-controller) project retrieved from TFS (Team Foundation Server) source control. I have added a...