Embedding and retrieving resources in custom controls


Server Intellect Web Hosting Solutions


Embedding and retrieving resources in custom controls

Author: Bipin Joshi

The custom controls that you develop not only contain the logic and data but also things such as images and JavaScript files. One easy way to make these images and script files available to your control at run time is to deploy them along with your control. This approach, though easy, is error prone. What if somebody deletes the images after the deployment? What if someone replaces the script files with malicious script? The best way is to embed such files in your control assembly itself and retrieve them in your code. Formally such files (images, script, multilingual strings etc.) are called as Resources. In this article we are going to learn various approaches taken to embed and retrieve resources in a custom control.










More Tutorials

Also See:

Using the WebPermission Setting in ASP.NET Partial Trust
Maintaining Session Between Two Applications
Combo Control
Changing the Login Control to Display a List of Users
Change the style of a column within a GridView control based on its value
Creating Custom Sections in Web.config
Build a Poll System in ASP.NET
ATLAS AUTO-SUGGEST TEXTBOX
Optimistic Concurrency and DataSet Updates
Implementing SQL Transactions



Copyright© 2005 ASP Intellect | All Rights Reserved

ASP.NET Tutorials
AspNet Tutorials ASP.NET 2.0 Code Examples, Snippets and Tutorials

ASP.NET Tutorials C++ Tutorials C# Tutorials Visual Studio.NET Tutorials
.NET Framework Tutorials Mobility Tutorials Office Tutorials Visual Basic.NET Tutorials