HtmlBox CodeSample - URL as file within application
Categories: DHTML, Files, URL
|
Tags: Architects, Developers, 1. Beginner, 2. Intermediate, 3. Advanced, Pre v6.3, v6.3, v6.4 and Later
Revision:
1
Posted:
12/Oct/2009
Updated:
23/July/2010
Status:
Publish
Types: Code
|
This article will have a few sections added to it soon, based on the following article type skeleton: CodeSample OverviewWhen assigning to the URL property a file within the virtual folder of the application, the path must be slightly different depending on if the file is on the root folder, or on a subfolder. This codesample gives you idea on how to make that irrelevant. VB.NET code
If Context.HttpContext.Request.ApplicationPath.EndsWith("/") Then
htmlBox1.Url = Context.HttpContext.Request.ApplicationPath & "HTMLPage1.htm"
Else
htmlBox1.Url = Context.HttpContext.Request.ApplicationPath & "/HTMLPage1.htm"
End If
C# Code
if (Context.HttpContext.Request.ApplicationPath.EndsWith("/") )
{
htmlBox1.Url = Context.HttpContext.Request.ApplicationPath + "HTMLPage1.htm";
} else {
htmlBox1.Url = Context.HttpContext.Request.ApplicationPath + "/HTMLPage1.htm";
}
About the author
Related Articles
|
DHTML
|
|
|
The following code integrates google maps into Visual WebGui by creating a GoogleMap control which can be used as any Visual WebGui control.
Tags:
Architects, Developers
|
|
|
Tags:
Architects, Developers, 1. Beginner, 2. Intermediate, 3. Advanced, DHTML, v6.3, v6.4 and Later
|
|
|
Tags:
Architects, Developers, 1. Beginner, 2. Intermediate, 3. Advanced, Integration, Pre v6.3, v6.3, v6.4 and Later
|
|
|
Tags:
Architects, Developers, 2. Intermediate, 3. Advanced, Pre v6.3, v6.3, v6.4 and Later
|
|
|
Tags:
Architects, Developers, 1. Beginner, 2. Intermediate, 3. Advanced, Pre v6.3, v6.3, v6.4 and Later
|
|
|
Tags:
Developers, 1. Beginner, Integration, Silverlight, Pre v6.3, v6.3, 2. Intermediate, 3. Advanced
|
|
|
|