Open modal web form.... or "simirly" to modal :) What (and how) possible to do?

  • Thread starter Thread starter Sukhanov Volodya
  • Start date Start date
S

Sukhanov Volodya

Hello, All!
Does anybody knows how to open a window of browser (ex IE 6.0) in modal mode
(or "simirly" to modal)?
Early, in classical ASP, using VBScript, I could write:
<SCRIPT language="vbscript">
call window.open("MyForm.aspx","replace","channelmode=1,directories=0,
fullscreen=1,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=
0,titlebar=0",0)
</SCRIPT>


Can I get a reference to object "window" from VB.NET ?
What other opportunities to manage by a window of browser gives VB .NET ?

Volodya Sukhanov
 
Hi Sukhanov

Probably you can use this, you have to change it yourself of course.

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

I hope this helps a little bit?

Cor
 
Very thanks, ... I tested your example - it's Ok...
However, does VB .NET somehow allow to manage a client window of browser ?
Or it's possible only by using vb/java script and (as you said) call it,
using RegisterStartupScript (RegisterClientScriptBlock) functions ?

Volodya Sukhanov
 
Hi Sukhanov

You can do a lot by catching the events from the webform controls.

That you do on the serverside.

But typical client side things like "onhoover" that is not possible on the
serverside

But you can add things like this to give the HTML inline JavaScript code.
\\\
TextBox1.Attributes("onblur") = "javascript:alert('Hello! Focus lost from
text box!!');"
///

Did you mean things like this?

Cor
 
Very thanks for explanation, I understrood.
I asked this question, because I'm beginning in ASP tecnology.
I supposed that it's impossibly and wanted to know the opinion of a
technician.

Very thanks, what you got around to answer my question

Volodya Sukhanov
 
Back
Top