1
votes

I'm trying to store user controls (ASCX) into Azure Blob (since I need to update them very often).

I use ParseControl. However, it doesn't cause compilation such as PlaceHolder.

Question: Is there anyway I can access file from Blob like Page.LoadControl("MyControl.ascx");

My last option is to write into temporary file if nothing work.

Thank you for your help!

1

1 Answers

3
votes

I think the easiest for you will be to create one custom VirtualPathProvider. You can take this sample as a starting point.

Then just call Page.LoadControl("~/Your_Registered_Path/Control.ascx")