Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > FYI: Webcontrols completely from a virtual directory (including the webctrl_client folder location)

Reply
Thread Tools

FYI: Webcontrols completely from a virtual directory (including the webctrl_client folder location)

 
 
Todd
Guest
Posts: n/a
 
      11-20-2003
There is a reference to the "webctrl_client" folder in the source file:
C:\Program Files\IE Web Controls\src\BaseRichControl.cs

If you need the webctrl_client folder to be completely under a virtual
directory just change the code from:
private const string DefaultCommonFilesRoot = "/webctrl_client/";
to:
private const string DefaultCommonFilesRoot =
"/VirtualDIR/webctrl_client/";

Then:
1. Recompile Microsoft.Web.UI.WebControls.dll.
2. Move the newly compiled DLL back into the bin directory (or just use
VS.NET to register it in your project).
3. Move the webctrl_client folder under your VirtualDIR.
4. Change the SystemImagesPath and ImageURL properties on the ASPX page to
point at the new directory.

Ideally this would be a variable that could be set rather than hardcoded in
the compiled DLL, but I don't have time to figure that out now.

<Todd />


 
Reply With Quote
 
 
 
 
Eric
Guest
Posts: n/a
 
      11-21-2003
The location of the IE Web Control scripts can be controlled via Web.config
settings. Add the following to the <configuration> section. Just update
the value to reflect your server and application name.

<configSections>
<section name="MicrosoftWebControls"
type="System.Configuration.NameValueSectionHandler , System,
Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</configSections>

<MicrosoftWebControls>
<add key="CommonFiles" value="http://myserver/myapp/webctrl_client/1_0/"
/>
</MicrosoftWebControls>




"Todd" <> wrote in message
news:...
> There is a reference to the "webctrl_client" folder in the source file:
> C:\Program Files\IE Web Controls\src\BaseRichControl.cs
>
> If you need the webctrl_client folder to be completely under a virtual
> directory just change the code from:
> private const string DefaultCommonFilesRoot = "/webctrl_client/";
> to:
> private const string DefaultCommonFilesRoot =
> "/VirtualDIR/webctrl_client/";
>
> Then:
> 1. Recompile Microsoft.Web.UI.WebControls.dll.
> 2. Move the newly compiled DLL back into the bin directory (or just use
> VS.NET to register it in your project).
> 3. Move the webctrl_client folder under your VirtualDIR.
> 4. Change the SystemImagesPath and ImageURL properties on the ASPX page to
> point at the new directory.
>
> Ideally this would be a variable that could be set rather than hardcoded

in
> the compiled DLL, but I don't have time to figure that out now.
>
> <Todd />
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: VOIPfone down completely ... I mean very completely !! cjd UK VOIP 2 10-10-2008 01:17 PM
webctrl_client display issues...please help... Chris Marsh ASP .Net 3 05-15-2007 03:24 PM
Can't install iewebcontrols.msi - error "webctrl_client is unavailable" Viking Man ASP .Net Web Controls 2 07-11-2006 07:08 AM
Object reference not set to an instance of an object. System.Web.UI.WebControls.ListItemCollection.SaveViewState() System.Web.UI.WebControls.ListControl.SaveViewState() Brano ASP .Net 3 11-08-2005 12:29 PM
WebControls and WebCtrl_Client Folder Thomas ASP .Net Web Controls 0 02-03-2004 04:31 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57