How to refresh a web page in WebDialogBox

7 replies. Last post: January 31, 2010 10:02 PM by Gordon Tumewu
Tags :
Hi,
I'm opening a WebDialog from Javascript like this:

var wdb = ISGetObject("<%=c_wdbPopup.ClientID %>");
wdb.ContentURL = "E2ReportRetrieveData.aspx?c=" + customerID + "&p=" + pointID + "&pgr=" + pGrID;
wdb.ShowDialog();

"E2ReportRetrieveData.aspx?c=" + customerID + "&p=" + pointID + "&pgr=" + pGrID;
wdb.ShowDialog();
This works fine when running this first time (from a WebButton Clicked client event).
However next time it seems to not re-load the page as I know the parameters customerID, pointID and pGrID have changed. but the Page_Load event of the E2ReportRetrieveData.aspx is not run. It simply shows the page from the first load, no server side events are shown.
 
How can I forse reload of the contained webpage when I call wdb.ShowDialog
Regards
  TJ

All Replies

Hi,

I tried to create a simple sample that replicate your scenario, could you check and let me know if you have different sceanrio than me.

In the sample, you can fill te\he textbox using some text like "abc" and press the button to show the WebDialogBox. Then close the WebDialogBox change the textbox text and press the button again, you will see that the text inside WebDialogBox also change.

Best Regards,

Gordon Tumewu

1 attachment

Gordon when I compared your code and mine the only differene was that you did:

wdb.SetContentURL("Child.aspx?txt=" + input);

But I did:

wdb.ContentURL = "Child.aspx?txt=" + input";

If you use my method you will run into my problem. How should I know that there exist a JavaScript method SetContentURL for the WebCombo? Does a Intersoft control javaScript reference exist somewhere?

My problem is solved. But I realy want to know where I can find the JavaScript documentation for the Intersoft controls.

Hi,

I am sorry that I didn't read carefully your code, to set the content url you need to use the SetContentURL not the ContentURL, also there's no method for SetContentURL in WebCombo.

To get more information regarding our javascript method, you can read it in our documentation or using debugger to check the method.

Best Regards,

Gordon Tumewu

Gordon, Probably I'm just stupid, but I can't (I repeat CAN NOT) find the Java script documentation for the Intersoft controls in your documentation. It must be very well hidden. I know I can open the "WebDesktop.NET 2.5 Reference" and search "SetContentURL" and then it pops up (but then I have to know what to search for). But I can't se where in the tree at the left I can brows for this. Can you tell me?

The other alternative to se it in the debugger I'm not sure. Can you tell me in details how that is possible (JAVAScript CLIENT SIDE) in Visual Studio 2008?

....and I'm starting to tear off my hear becuase of this....The gnereal JavaScript horror is actualy the biggest reason my company is moving away from this platform to Silverlight. The JavaScript stuff is simply too time consuming and also slow in complex clients.

Sorry for my irritation :-)

Hi,

Actually in WebDesktop dcumentation you see in the tree at left for Reference, expand the Reference and You can see Server Side Reference and Client Side Reference. In the Client Side Refrence you can find the properties and methods for every WebDesktop's controls. I am sorry if the documentation didn't satisfy your need, I will put this as valuable feedback to our documentation department.

If you are using debugger, usually I search for the method in client side by checking all the property and method one by one.

Best Regards,

Gordon Tumewu

That is so good but how we close the webdialogue

Hi Hamdy,

To close the WebDialogBox, you can use the following javascript code:

var wdb = ISGetObject("WebDialogBox1");
wdb.CloseDialog();

Also for next time, it is better to create new thread and didn't need to post the questions in several thread.

Best Regards,

Gordon Tumewu

All times are GMT -5. The time now is 1:52 AM.
Previous Next