Web Browser Control locks after ShowDialog

  • Thread starter Thread starter Kent Brown
  • Start date Start date
K

Kent Brown

I have a modal dialog which has the web browser control in it. The first
time it comes up fine. If I hide and then reshow, the form comes up, but
the Web Browser is locked.

Kent
 
When you say hide, you mean actually closing the dialog window, and
re-opening it, right...

Check out http://www.hongkongexpressions.com/demoapp under simple data
entry I make extensive use of showModalDialogs.

On the code-behind on my dialog, I make sure it doesn't cache, by
putting the following in the page_load()

Response.Expires = 0
Response.Cache.SetNoStore()
Response.AppendHeader("Pragma", "no-cache")


Here' is the javascript on the calling window.

function DialogNew()
{
window.showModalDialog("dlgcostcenters.aspx?Mode=New&fieldKey=None","
","status:no;scroll:no;center:yes;resizeable:no;dialogHeight:219px;dialo
gWidth:400px");
RefreshGrid();
}
 
Hi Terry,

Have a look at the Page class, than you can embed this javascript in your
VB.net (or C#)

\\\
Dim str As String
str = "<script language=javascript> {window.open('http://www.google.com');}
</script>"
RegisterStartupScript("Startup", str)
///

Cor
 
Thanks Cor...

Yes, I know that....

You know everyone has their own quirks and style...
Just an old habit, from the old days, I guess..

About the only time, I push any javascript from the code-behind is on
simple attributes such as
btnRun.Attributes.Add("OnClick","javascript:window.close()")
 
Just curious, where we were at, on this problem. I'm interested to
hear the outcome.
 
Back
Top