Intersoft WebDesktop Documentation
Frequently Asked Questions
Send Feedback
Intersoft WebDesktop > Troubleshooting > Frequently Asked Questions

Glossary Item Box

Following is the compilation of most frequently asked questions applicable to WebDesktop.NET V1.0 or higher:

Q: Is there any way to close a window from server side code ? I have a login window and I need to close the login window on successful login
A: I don't think there is a way to close the window from server side because the WebDesktopManager instance is hosted on the different page as the content page. But you can easily do this by calling a client side script to close the Window after your successful login, such as by using RegisterClientScriptBlock or RegisterStartupScript methods.
Q: If I set up the WebDesktopWindow's size to have height of 100px and width of 300px, the window shows up with correct size according to the parameters, but the TitleBar does not extend all the way to the end of the window's width. There is enough place at the right of the TitleBar for the ScrollBar, but since my content is smaller than the window, no scrollbar appears. Hence, now I have a window which its width is slightly longer than the width of the window's TitleBar.
A: If your Window is using IFrame content mode, then the scrollbar should appear automatically. If you are using InlineContent as the content mode, the scrollbar should also appear automatically (by default). If it doesn't appear, you can check the ContainerStyle under WindowSettings, and ensure that the Overflow, OverflowX and OverflowY have been set to Auto.
Q: I have a desktop with a right and left TaskBar templates, and one window on the desktop. When I remove the window, the TaskBar no longer displays the templates.
A: Your TaskBar templates (left and right) require a DIV with specific width in order for the TaskBar to render properly. 

E.g.

<TaskBarLeftTemplate>

    <div style='width:250px'>

        Your left template

    </div>

</TaskBarLeftTemplate>

Q: How can I have an .aspx page running in the IFrame that has save/cancel buttons that will close the dialog?
A: To close a Window from client side, first, we have to get the Window object which host the IFrame's page by using ISGetCurrentWindow(). That method will return a WebDesktopWindow object. Next, in WebDesktopWindow APIs in the client side reference, there is a Close method, and you can use it like the following example.

E.g.

var wnd = ISGetCurrentWindow();
wnd.Close();

You can then easily call that function in your server side or AJAX call through RegisterClientScriptBlock method (avoid body onload).

Q: How to open a new window from another window?

I have a window that is an IFrame. I would like to open another window from the .aspx page in the IFrame window.

A: Basically you can use the same way as in Create new Window at client side tutorial. You will need to use ISGetDesktopManager() function to return the desktop manager instance at your children .aspx page.

E.g.

var dm = ISGetDesktopManager(); // return the WebDesktopManager instance
var newWindow = dm.CreateWindow(); // return the WebDesktopWindow instance
//initialize newWindow properties...
//add to the Window collection
//show the Window

The tutorial for this specific scenario will be included in the final version's tutorials.

Q: I try to run WebDesktopSamples/Default.aspx, in Internet Explorer it runs well, in FireFox 1.0.3 it displays fine, but no windows are displayed and I can't click on the shortcuts. In Opera 8.0, nothing is displayed (blank screen).
A: Mozilla 1.0.3 build has a regression bug, you will need to use Mozilla 1.0.4 or above.

WebDesktop supports all kind of Gecko-based browsers, but not Opera at the moment. We will support Opera when it has equal API as in IE and Gecko.

Q: On App_Customer.aspx I get error message like this:

Server Error in '/WebDesktopSamples' Application.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0117: 'ISNet.WebUI.WebGrid.WebGridTable' does not contain a definition for 'ReindexColumnsPosition'

A: You would require all latest product builds (December build) in order to run all samples.
Q: When I ran the sample application provided in the installation The windows have no style. Hence its all transparent and content of different windows overlap each other. The WebDesktop's Layout Manager doesn't work. Many problems everywhere.
A: You will need to update your application to use the latest WebUI.NET Framework. It requires version 3.0.5000.16

To ensure that you're running latest versions, try to go to the bin folder of the WebDesktopSamples, bring up the property window for ISNet.WebUI. If it turns out to be the problem ( you are not using the latest WebUI.NET Framework), you will need to update it first, then restart Visual Studio 2005 after copying the new DLL into the bin folder. 

It is important that you uninstalled the old WebDesktopSamples property since if you are not uninstalled it properly the new files might not be replaced by the new file and it will caused you to use the old file instead the new one. Make sure when you uninstall the WebDesktop, all the files and folders under WebDesktop.NET installation files are removed, then install it again.

Q: I've noticed the response time for Maximizing/ Minimizing windows in IE is rather slow. While in Mozilla FireFox is much faster.
A: If you used too much gradient, then yes, it will be a bit slower when Minimize/Maximize specially when you enabled Animation. To optimize the performance, you can do either use gradient effectively or disable Window's Animation.

 

© 2012 Intersoft Solutions Corp. All Rights Reserved.