iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
<ImagesSettings InProgress="/Images/WebDesktop/spinner.gif" SplitterGripBottom="/Images/WebDesktop/Splitter/np_o7_grip_bottom.gif" SplitterGripLeft="Images/WebDesktop/Splitter/np_o7_grip_left.gif" SplitterGripRight="/Images/WebDesktop/Splitter/np_o7_grip_right.gif" SplitterGripTop="/Images/WebDesktop/Splitter/np_o7_grip_top.gif" />
Is there a way to use the ~ character to specify a relative path within the WebDesktop's ImageSettings? I prefer not to use the ImagesDirectory because there are other paths being specified in other directories within this control. Unless ImagesDirectory is used in some other way. If I specify ~ at the beginning, it doesn't resolve as expected.
Please allow me to explain how SmartWebResources™ works.
Each of Intersoft’s product has their own resources such as scripts and images. For instance, previously these resources are stored in “/CommonLibrary/Shared” folder for core framework resources. WebGrid’s resources are stored in “/CommonLibrary/WebGrid/v7_0_7200” folder.
With SmartWebResources, they are now embedded into .NET assembly. SmartWebResources™ stores each product’s client resources in separate assembly.
When you are using SmartWebResources™, by default, all of the product resources (scripts and images), in this case the product is WebDesktop, will be loaded from ISNet.WebUI.WebDesktop.Resources.dll assembly file.
Should you need to have your WebDesktop showing your own custom images by defining the relative path within the ‘ImageSettings’ path, please try set the value of “EnableWebResources” property to “ScriptOnly”. By using this setting, only script that will be obtained from WebDesktop resource assembly file. You can either setting this on your specific page of your WebDesktop instance as shown in the snippet code below
<ISWebDesktop:WebDesktopManager ID="WebDesktopManager1" runat="server" Height="100%" Width="100%" ActiveWindowIndex="0" EnableWebResources="ScriptOnly"> <ImagesSettings CloseActive="~/Images/dot.gif" /> ... </ISWebDesktop:WebDesktopManager>
or specify it to entire web application without has to change the value to each control’s instance. Please insert following snippet code into <appSettings> of web.config file.
<appSettings> <add key="ISNet.WebUI.WebDesktop.v3_0_7200.EnableWebResources" value="ScriptOnly"/> </appSettings>
Hope this helps.
I made a simple test by using WebDesktopManager control and set its CloseActive image to “~/Pictures/dot.gif”. The Pictures folder is located right one level under the root of my project.
My simple test shows that we can use the tilde character (“~”) to specify relative path within the WebDesktop’s ImageSettings. I enclosed my simple project to be evaluated. Please let me know if there is anything that I missed during my attempt to repro your issue.
I made a simple test by using WebDesktopManager control and set its CloseActive image to “~/Pictures/dot.gif”. The Pictures folder is located right one level under the root of my project.My simple test shows that we can use the tilde character (“~”) to specify relative path within the WebDesktop’s ImageSettings. I enclosed my simple project to be evaluated. Please let me know if there is anything that I missed during my attempt to repro your issue.
I used Fiddler and when I use the tilde character ("~"), it looks for the resources within the AXD file. This isn't the case when I just specify a path without the tilde.
Anyone?
The axd file shows that your current project is using SmartWebResources™. In order to use the tilde character to specify relative path of image file, please try to use it on a project that doesn’t use SmartWebResources™.
For more detail information about ‘How does SmartWebResources™ work’, please check following link.
The axd file shows that your current project is using SmartWebResources™. In order to use the tilde character to specify relative path of image file, please try to use it on a project that doesn’t use SmartWebResources™.For more detail information about ‘How does SmartWebResources™ work’, please check following link.Hope this helps.
I am confused. We are using SmartWebResources to avoid dealing with CSS/JS files. I like the fact that they are handling by Intersoft. With that said, we want to be able to specify other images using pathways. Does that mean if using SmartWebResources that the TILDE is not available?
Please allow me to explain how SmartWebResources™ works.Each of Intersoft’s product has their own resources such as scripts and images. For instance, previously these resources are stored in “/CommonLibrary/Shared” folder for core framework resources. WebGrid’s resources are stored in “/CommonLibrary/WebGrid/v7_0_7200” folder.With SmartWebResources, they are now embedded into .NET assembly. SmartWebResources™ stores each product’s client resources in separate assembly.When you are using SmartWebResources™, by default, all of the product resources (scripts and images), in this case the product is WebDesktop, will be loaded from ISNet.WebUI.WebDesktop.Resources.dll assembly file.Should you need to have your WebDesktop showing your own custom images by defining the relative path within the ‘ImageSettings’ path, please try set the value of “EnableWebResources” property to “ScriptOnly”. By using this setting, only script that will be obtained from WebDesktop resource assembly file. You can either setting this on your specific page of your WebDesktop instance as shown in the snippet code below<ISWebDesktop:WebDesktopManager ID="WebDesktopManager1" runat="server" Height="100%" Width="100%" ActiveWindowIndex="0" EnableWebResources="ScriptOnly"> <ImagesSettings CloseActive="~/Images/dot.gif" /> ... </ISWebDesktop:WebDesktopManager>or specify it to entire web application without has to change the value to each control’s instance. Please insert following snippet code into <appSettings> of web.config file.<appSettings> <add key="ISNet.WebUI.WebDesktop.v3_0_7200.EnableWebResources" value="ScriptOnly"/> </appSettings>Hope this helps.
I still don't understand why this isn't possible. The application uses SmartWebResources for the majority of the controls. I can use custom images similiar to my original post in this thread to specify the pathway to the images. This will work fine unless you want to put this markup in a user control that can be put on pages in various pathways where the relative paths won't be correct. This is why I want to use the tilda like other ASP server-side controls so that the pathway is properly determined.
With SmartWebResources™ enabled, by default, all of the product resources (scripts and images), will be loaded from the resource assembly file. This means that if using SmartWebResources the images and the scripts will be loaded from the *.resources assembly file, indicated by the .axd file.
If you would like to have your own custom image path of Intersoft’s controls, it is recommended to use ‘CommonLibrary’ instead of SmartWebResources™. The other alternative is, set the SmartWebResources™ to load ‘script only’.
I understand now. I had to set the ImagesDirectory which can use the tilda otherwise it defaults to the CommonLibrary directory. Thank you.
Im still confused and having kind of the same problem.
Where did you set your ImagesDirectory?
I set my webresource to scriptsonly but still can get my image to show.
Ah, I see..
In order to get the tilda to work you need to change the ImagesDirectory (in Designer UI) to the directory with your images.
IE..
ImagesDirectory = ~/img/
then set your splitterimage (or whatever) directly.splitterleft = newImage.gif
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname