.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal

Home >> Interview Question >> ASP.Net >> Post New Question Subscribe to Interview Questions

What are virtual path providers?

Posted By :Gaurav Arora     Posted Date :April 28, 2009    Points :10   Category :ASP.Net 
Its the path providing facility to provide the virtual content to compiler. For example, a virtual path provider provides a means to supply content from locations other than the file system.

To attain the same following step(s) are required :
1. Create a VirtualPathProvider class, and implement all the required methods to handle files and folder requests.

2. Register the virtual path provider to let the ASP.NET hosting environment know where the content will be served from.

3. Create VirtualFile and VirtualDirectory objects to stream the content.

For more details, visit http://support.microsoft.com/kb/910441

You can also find related Interview Question to What are virtual path providers?  below: 

What is web application virtual directory?

A virtual directory appears to client browsers as though it were
contained in a Web server's root directory, even though it can physically Reside somewhere else. (More...)

Explain Virtual Function in C#.

Virtual functions implement the concept of polymorphism are the same as in C#, except that you use the override keyword with the virtual function implementaion in the child class.

The parent class uses the same virtual keyword. Every class that overrides the virtual method will use the override keyword.

class Shape{
public virtual void Draw()
{ Console.WriteLine("Shape.Draw") ; }
class Rectangle : Shape{
public override void Draw()
{ Console.WriteLine("Rectangle.Draw"); }
} (More...)

What are the differences between web part page gallery, site gallery,Virtual server gallery and online gallery in SharePoint?

Web Part Page Gallery in SharePoint is the default gallery provided by Microsoft that comes installed with SharePoint. Site Gallery is specific to one sharepoint website site. Virtual Server gallery is specific to that virtual server and online gallery is available for download web parts from MSDN. (More...)

Can you override private virtual methods in .NET Framework?

No, moreover, you cannot access private methods in inherited classes, have to be protected in the base class to allow any sort of access. (More...)

What is a virtual function ?

virtual function is a function that you want to force derived classes to override. if a class has any overridden pure virtuals, it is an "abstract" class and you can't create objects of that type. (More...)

What is the keyword used in VB to carry out the work of virtual keyword of C#?

The Overridable keyword. It declare a method to support polymorphism. (More...)

What is a virtual directory?

It is the deployment platform for the ASP.NET Websites in IIS. It hanldes the request and response messages(from client & Server). (More...)

Expalin one difference between Abstract and virtual methods?

Virtual method can be overriden in any of its derived class and abstract method must be overriden in any of the non abstract class. (More...)

How can we get the path of the internet cache?

Using the following code

Environment.SpecialFolder.InternetCache (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend