Thursday, March 29, 2012

Opening new window, how?

I opening a new window with the following code:


Sub ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataListCommandEventArgs)

Dim text As String = CType(e.Item.FindControl("LinkButton1"), LinkButton).Text
MsgBox(text)
'Neues Fenster öffnen
Me.Page.Controls.Add(New LiteralControl("<script language=javascript>var newWindow = window.open('../datenbank/ViewDetail.aspx', newWindow, 'width=700,height=500');</script>"))

End Sub

Does anyone know how i can access the variable text in the new window?

Can I give in the window.open a variable, which includes my variable "text"?

Or have i to access the control from the new window to get the information from the control?
Can you say me how to access an control from the new window in my old form?

ThnkasYou can pass the variable value as part of a the window open, and then use query string to get the value out.

For example.


Me.Page.Controls.Add(New LiteralControl("<script language=javascript>var newWindow = window.open('../datenbank/ViewDetail.aspx?MyVar=" & text & "', newWindow, 'width=700,height=500');</script>"))

Notice the MyVar added to the URL above.

In the ViewDetail.aspx page's PageLoad Event you would add the following line to get the value ...


Dim MyVar as String = Request.QueryString("MyVar")

Hope this helps,
Glen.
Check this post :view post 818881

regards

Opening New Window through code

I want to open a new window through code. Can someone provide me with an example or point me to one in the VB.Net language. Thank

DevinYou can open a new window using javascript such as this:
a=window.open('MyPage.aspx','MyWindow')
There are all kinds of options for setting window properties such as window
size and toolbar visibility.
Here's more info:
http://msdn.microsoft.com/workshop/...hods/open_0.asp

You can use the RegisterClientScriptBlock or RegisterStartupScript
functions to help you output the javascript from your server code.
Here's more info on these:
http://msdn.microsoft.com/library/d...lock Topic.asp
http://msdn.microsoft.com/library/d...riptTopi c.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

"Devin" <anonymous@.discussions.microsoft.com> wrote in message
news:953DBA34-3A49-49B4-89DC-F59735BE75B3@.microsoft.com...
> I want to open a new window through code. Can someone provide me with an
example or point me to one in the VB.Net language. Thanks
> Devin
What actual code can I put in the Button_Click event to open another
form in my project? (ASP.NET using VB.NET)

On Thu, 22 Apr 2004 15:16:50 -0700, "Steve C. Orr [MVP, MCSD]"
<Steve@.Orr.net> wrote:

>You can open a new window using javascript such as this:
>a=window.open('MyPage.aspx','MyWindow')
>There are all kinds of options for setting window properties such as window
>size and toolbar visibility.
>Here's more info:
>http://msdn.microsoft.com/workshop/...hods/open_0.asp
>You can use the RegisterClientScriptBlock or RegisterStartupScript
>functions to help you output the javascript from your server code.
>Here's more info on these:
>http://msdn.microsoft.com/library/d...lock Topic.asp
>http://msdn.microsoft.com/library/d...riptTopi c.asp
Doesn't anyone know the answer to this question?

On Fri, 23 Apr 2004 19:30:04 GMT, Kevin <kevinp@.remove_cfl.rr.com>
wrote:

>What actual code can I put in the Button_Click event to open another
>form in my project? (ASP.NET using VB.NET)
>
>On Thu, 22 Apr 2004 15:16:50 -0700, "Steve C. Orr [MVP, MCSD]"
><Steve@.Orr.net> wrote:
>>You can open a new window using javascript such as this:
>>a=window.open('MyPage.aspx','MyWindow')
>>There are all kinds of options for setting window properties such as window
>>size and toolbar visibility.
>>Here's more info:
>>http://msdn.microsoft.com/workshop/...hods/open_0.asp
>>
>>You can use the RegisterClientScriptBlock or RegisterStartupScript
>>functions to help you output the javascript from your server code.
>>Here's more info on these:
>>http://msdn.microsoft.com/library/d...lock Topic.asp
>>http://msdn.microsoft.com/library/d...riptTopi c.asp
I gave you all the pieces you need but I'm sorry I don't have time to put
them together for you.
I hope you can deal with a C# example:
http://www.codeguru.com/Csharp/.NET...icle.php/c5337/

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

"Kevin" <kevinp@.remove_cfl.rr.com> wrote in message
news:rtps809ij6vda996ijbirt9g26afns4bpn@.4ax.com...
> Doesn't anyone know the answer to this question?
>
> On Fri, 23 Apr 2004 19:30:04 GMT, Kevin <kevinp@.remove_cfl.rr.com>
> wrote:
> >What actual code can I put in the Button_Click event to open another
> >form in my project? (ASP.NET using VB.NET)
> >On Thu, 22 Apr 2004 15:16:50 -0700, "Steve C. Orr [MVP, MCSD]"
> ><Steve@.Orr.net> wrote:
> >>You can open a new window using javascript such as this:
> >>a=window.open('MyPage.aspx','MyWindow')
> >>There are all kinds of options for setting window properties such as
window
> >>size and toolbar visibility.
> >>Here's more info:
>>http://msdn.microsoft.com/workshop/...ethods/open_0.a
sp
> >>
> >>You can use the RegisterClientScriptBlock or RegisterStartupScript
> >>functions to help you output the javascript from your server code.
> >>Here's more info on these:
>>http://msdn.microsoft.com/library/d...en-us/cpref/htm
l/frlrfSystemWebUIPageClassRegisterClientScriptBlock Topic.asp
>>http://msdn.microsoft.com/library/d...en-us/cpref/htm
l/frlrfSystemWebUIPageClassRegisterStartupScriptTopi c.asp

Opening New Window through code

You can open a new window using javascript such as this:
a=window.open('MyPage.aspx','MyWindow')
There are all kinds of options for setting window properties such as window
size and toolbar visibility.
Here's more info:
http://msdn.microsoft.com/workshop/...hods/open_0.asp
You can use the RegisterClientScriptBlock or RegisterStartupScript
functions to help you output the javascript from your server code.
Here's more info on these:
http://msdn.microsoft.com/library/d...>
lockTopic.asp
http://msdn.microsoft.com/library/d...br />
Topic.asp
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Devin" <anonymous@dotnet.itags.org.discussions.microsoft.com> wrote in message
news:953DBA34-3A49-49B4-89DC-F59735BE75B3@dotnet.itags.org.microsoft.com...
> I want to open a new window through code. Can someone provide me with an
example or point me to one in the VB.Net language. Thanks
> DevinWhat actual code can I put in the Button_Click event to open another
form in my project? (ASP.NET using VB.NET)
On Thu, 22 Apr 2004 15:16:50 -0700, "Steve C. Orr [MVP, MCSD]"
<Steve@.Orr.net> wrote:

>You can open a new window using javascript such as this:
>a=window.open('MyPage.aspx','MyWindow')
>There are all kinds of options for setting window properties such as window
>size and toolbar visibility.
>Here's more info:
>http://msdn.microsoft.com/workshop/...
BlockTopic.asp
>http://msdn.microsoft.com/library/d...ScriptTopic.asp
Doesn't anyone know the answer to this question?
On Fri, 23 Apr 2004 19:30:04 GMT, Kevin <kevinp@.remove_cfl.rr.com>
wrote:
>What actual code can I put in the Button_Click event to open another
>form in my project? (ASP.NET using VB.NET)
>
>On Thu, 22 Apr 2004 15:16:50 -0700, "Steve C. Orr [MVP, MCSD]"
><Steve@.Orr.net> wrote:
>
I gave you all the pieces you need but I'm sorry I don't have time to put
them together for you.
I hope you can deal with a C# example:
http://www.codeguru.com/Csharp/.NET...icle.php/c5337/
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Kevin" <kevinp@.remove_cfl.rr.com> wrote in message
news:rtps809ij6vda996ijbirt9g26afns4bpn@.
4ax.com...
> Doesn't anyone know the answer to this question?
>
> On Fri, 23 Apr 2004 19:30:04 GMT, Kevin <kevinp@.remove_cfl.rr.com>
> wrote:
>
window
>
sp
>
l/ frlrfSystemWebUIPageClassRegisterClientS
criptBlockTopic.asp
>
l/ frlrfSystemWebUIPageClassRegisterStartup
ScriptTopic.asp
>

Opening Office Application on client

Hi,
I have a peculiar problem. Hope some body can help.
I want to open up a word document on the client from a ASPX page. When a user clicks a button I want to show him a word document whose contents have to come from the server.
The problem is my server will not have any office application installed on it.
Is it possible?
Could somebody please help me with this.

thanks in advance.
Parag JoshiNo problem. Since the user is downloading a Word document, all the user has
to have is Word installed on their machine. The browser will open it in
Wortd automatically. If they don't have Word on their machine, they will be
prlompted to save or open. I believe there is a free Reader that can be
downloaded from the Microsoft site.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Parag Joshi" <anonymous@.discussions.microsoft.com> wrote in message
news:38926BB6-48E4-4A77-86B2-8CFB2013B6AC@.microsoft.com...
> Hi,
> I have a peculiar problem. Hope some body can help.
> I want to open up a word document on the client from a ASPX page. When a
user clicks a button I want to show him a word document whose contents have
to come from the server.
> The problem is my server will not have any office application installed on
it.
> Is it possible?
> Could somebody please help me with this.
> thanks in advance.
> Parag Joshi
>
Thanks for your advice.
But even if Word in installed on the client machine.
The browser will ask the user if he want to view or save the file. I want to directly open the word document.
Just to give a clear idea - on the microsoft site on the following link http://office.microsoft.com/templat...=CT061995211033
There is a download button. When clicked it opens the template in word format on the client machine.

I just went through the view source of this page. The button seems to invoke a java script function.

Could you tell me how to get the same effect on my site.

thanks in advance

Parag Joshi

Opening office template file

Hi all,
I developped an Intranet application and some users report the same 'bug'. With FF, there's no problem, but with IE .. well.

The situation is: Office template file (like *.dot, *.xlt, etc) are available on the Intranet. When one template is opened with FF, the execution is correct (instead of opening the a *.dot directly, it opens an empty *.doc file based on the template), but with IE it opens the *.dot file. I don't want this.

Anyone know how to solve this problem ? Is there a special configuration I have to do in the Microsoft's browser or maybe a command line that I can use ?

I found the command line: "C:\Program Files\Microsoft Office\Office\Winword.exe" /t"c:\program files\microsoft office\templates\1033\contemporary fax.dot" that open a dot file in a doc file, but I don't even know if I can execute that kind of command lines on the client PC.

Thanks for your help, Francois

Take a look at The Code Project page:http://www.codeproject.com/aspnet/wordapplication.asp

About half way down the page he goes into using templates. I've not tried the code but it looks right.

Grayson

Opening office files with ASP.NET

Hello,

There is any way to open an office file (word, access, excel, etc) inside an Object? The idea is send the path to an ASP.NET page and that page shows the document.

Thanks for your help.

BriegaHello briega,

If your goal is simply to display an Office document from inside an ASP.NET page, you needn't go to great lengths in order to do so; a simpler approach is to have an <iframe> element with runat="server" in your page, and set that IFrame's src attribute to the document you want using server-side code. Assuming the client has Office installed, the following code should do what you want:


<%@. Page Language="vb" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>WebForm1</title>
<script runat="server">
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
IF1.Attributes("src") = "readme.doc"
End Sub
</script>
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<asp:Button id="Button1" onclick="Button1_Click" runat="server" Text="Button"></asp:Button>
<br>
<iframe runat="server" id="IF1"></iframe>
</form>
</body>
</HTML>

If you want to try this out, make sure there's a Word document called "readme.doc" in the same folder as the page.

Hope this helps.
It's a good solution, but the path is still visible in the source code and I'm having problems displaying the file in Netscape. Is there another way?
Netscape does not provide full support for the IFRAME element, yet. You can try the same solution using a regular FRAME. However this may pose some design challenges if you want to position the document whithin your page.

As for seeing the path in view source. You may want to use client side code and embed it a .js file. However, if you keep the .js file somewhere that is accessible via HTTP a web savvy user will still be able to get at the path. Let me know how stringent your security requirement is and I'll try to provide an efficient solution.

The client side code you want, is as follows:

FILE: showdocument.js


function showDoc(strFrameID)
{
var objFrame = document.getElemtById(strFrameID)
objFrame.src = "readme.doc
}

In your .aspx page replace the server-side script with the following:


<SCRIPT language="javascript" src="http://pics.10026.com/?src=showdocument.js"></script>

change your button to this:

<input type="submit" value="click" onclick="showDoc('frameID');return false;">

Here's Microsoft's documentation on the FRAME element

If you need more let me know.
I need a hi secure system. I dont want to show the path because some files are outside the server.
Once you've to send the document to the client, some address will be visible somewhere. E.g. if you would use an embedded Windows Forms control (only possible for IE) inside the browser, there will be a reference to the document which should be loaded in the HTML-source (as a parameter for the embedded <object>). One possibility is to copy the document which should be loaded to a temp folder on the server and send this document back to the client. When the session of the client expires (using an event handler in global.asax), you can delete the whole temporary folder from the machine. However, I think this will cause a lot of overhead but it should work. Of course, you should make a seperate folder for every session which is started.
Thanks for your help,

I thought that ASP.NET had some kind of object that works like IFRAME and the file could be opened in the server and then ASP.NET displays to you an image of it, like when you are working with PCAnywhere.

Regards

Opening other ASPX pages

On the client-side you are restricted to the functionality available in
HTML. It doesn't matter what you have on the server side. What the user sees
in their browser is pure HTML.

HTH,

Kevin Spencer
Microsoft FrontPage MVP
Internet Developer
http://www.takempis.com
Big things are made up of
lots of Little things.

"Juan Dent" <juan5@dotnet.itags.org.dev.com> wrote in message
news:049201c33b74$61a1e1b0$a601280a@dotnet.itags.org.phx.gbl...
> Hi,
> If I have an ASPX page open and I press something that
> posts back to the server, then I want to open up an
> additional ASPX page passing it information from the first
> page without closing the original page.
> I have achieved some degree of success using client side
> scripting but am not really happy. It really does not do
> what I need - it just manages to open another page in its
> own window at the start.
> What I want is a *managed* way to accomplish this. I mean,
> in Windows.Forms when you want to open another window you
> create it and then Show() it. Is there nothing similar in
> ASP.NET? I can't believe that the functionality that is
> available at the HTML level, with objects like window and
> document, is not accessible from managed (compiled)
> ASP.NET code. I have been searching for classes like
> HtmlDocument or HtmlWindow with no success. If I am
> approaching this problem in the wrong manner, could
> someone please tell me the right path?
> The following is the ASPX page that opens another one:
> ------
> <%@dotnet.itags.org. Page language="c#" Codebehind="WebForm1.aspx.cs"
> AutoEventWireup="false" Inherits="SimpleWebForms.WebForm1"
> %>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
> Transitional//EN" >
> <HTML>
> <HEAD>
> <title>WebForm1</title>
> <meta name="GENERATOR" Content="Microsoft
> Visual Studio 7.0">
> <meta name="CODE_LANGUAGE" Content="C#">
> <meta name="vs_defaultClientScript"
> content="JavaScript">
> <meta name="vs_targetSchema"
> content="http://schemas.microsoft.com/intellisense/ie5">
> </HEAD>
> <body MS_POSITIONING="GridLayout" onload="return
> OpenAnother()" >
> <form id="Form1" method="post"
> runat="server">
> <asp:Label ID="explain"
> Runat="server"/>
> <br>
> <asp:Button ID="btn" Font-
> Bold="True" Text="No runat server" />
> <asp:Button ID="ServerBtn" Font-
> Bold="True" Text="Server Button" Runat="server" />
> <input type="checkbox" name="chk"
> onclick="return ChkClick()" >
> <input type="text" name="txt" >
> <input type="hidden" id="hidden"
> name="hidden" runat= "server" >
> </form>
> <script language=javascript>
> <!--
> function ChkClick()
> {
> Form1.txt.value= "High!";
> Form1.hidden.value = Form1.ServerBtn.value
> = "Changed";
> return true;
> }
> //-->
> </script>
> <script language=javascript>
> <!--
> function OpenAnother()
> {
> window.showModelessDialog( "RequestForm.aspx");
> }
> //-->
> </script>
> </body>
> </HTML>
> ------
>
> Thanks!
> Juan DentThanks! I here what you are saying. Nevertheless is there
no way to open a second window from the aspx.cs file in C#?

Thanks again,
Juan Dent

>--Original Message--
>On the client-side you are restricted to the
functionality available in
>HTML. It doesn't matter what you have on the server side.
What the user sees
>in their browser is pure HTML.
>HTH,
>Kevin Spencer
>Microsoft FrontPage MVP
>Internet Developer
>http://www.takempis.com
>Big things are made up of
>lots of Little things.
>"Juan Dent" <juan5@.dev.com> wrote in message
>news:049201c33b74$61a1e1b0$a601280a@.phx.gbl...
>> Hi,
>>
>> If I have an ASPX page open and I press something that
>> posts back to the server, then I want to open up an
>> additional ASPX page passing it information from the
first
>> page without closing the original page.
>>
>> I have achieved some degree of success using client side
>> scripting but am not really happy. It really does not do
>> what I need - it just manages to open another page in
its
>> own window at the start.
>>
>> What I want is a *managed* way to accomplish this. I
mean,
>> in Windows.Forms when you want to open another window
you
>> create it and then Show() it. Is there nothing similar
in
>> ASP.NET? I can't believe that the functionality that
is
>> available at the HTML level, with objects like window
and
>> document, is not accessible from managed (compiled)
>> ASP.NET code. I have been searching for classes like
>> HtmlDocument or HtmlWindow with no success. If I am
>> approaching this problem in the wrong manner, could
>> someone please tell me the right path?
>>
>> The following is the ASPX page that opens another one:
>>
>> ------
>> <%@. Page language="c#" Codebehind="WebForm1.aspx.cs"
>> AutoEventWireup="false"
Inherits="SimpleWebForms.WebForm1"
>> %>
>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
>> Transitional//EN" >
>> <HTML>
>> <HEAD>
>> <title>WebForm1</title>
>> <meta name="GENERATOR" Content="Microsoft
>> Visual Studio 7.0">
>> <meta name="CODE_LANGUAGE" Content="C#">
>> <meta name="vs_defaultClientScript"
>> content="JavaScript">
>> <meta name="vs_targetSchema"
>> content="http://schemas.microsoft.com/intellisense/ie5">
>> </HEAD>
>> <body MS_POSITIONING="GridLayout" onload="return
>> OpenAnother()" >
>> <form id="Form1" method="post"
>> runat="server">
>> <asp:Label ID="explain"
>> Runat="server"/>
>> <br>
>> <asp:Button ID="btn" Font-
>> Bold="True" Text="No runat server" />
>> <asp:Button ID="ServerBtn" Font-
>> Bold="True" Text="Server Button" Runat="server" />
>> <input type="checkbox" name="chk"
>> onclick="return ChkClick()" >
>> <input type="text" name="txt" >
>> <input type="hidden" id="hidden"
>> name="hidden" runat= "server" >
>> </form>
>> <script language=javascript>
>> <!--
>> function ChkClick()
>> {
>> Form1.txt.value= "High!";
>> Form1.hidden.value = Form1.ServerBtn.value
>> = "Changed";
>> return true;
>> }
>> //-->
>> </script>
>> <script language=javascript>
>> <!--
>> function OpenAnother()
>> {
>> window.showModelessDialog( "RequestForm.aspx");
>> }
>> //-->
>> </script>
>> </body>
>> </HTML>
>> ------
>>
>>
>> Thanks!
>> Juan Dent
>
>.
Hello Juan,

I've set up a modal dialog using an .aspx page that handles a data update
event on the postback and then closes itself. It's a little clunky but it
works.

The important thing is to make sure that the form submit targets the same
window, otherwise the browser will open a new one. This can be done by
using the following in the window.onload

window.name = "windowName";
Form1.target = "windowName";

The second thing is communicating to the client from the postback that the
window is to be closed. I did this with a hidden input field with
runat=server, the value of thisa is checked in the window.onload of the
dialog, and if it's set to a particular value, the window is closed. I've
also communicated the value from the server back through another hidden
field.

The big fat caveat with this is it only seems to work in IE 6 - the
form.target property for modal dialogs is ignored in IE 5 (don't know about
IE 5.5 yet). As I have the luxury of developing a fixed IE6+ client, it's
not a problem.

I've attached a demo, and the source here.

Hope it helps...

Best regards,
yhhuang
VS.NET, Visual C++
Microsoft

This posting is provided "AS IS" with no warranties, and confers no rights.
Got .Net? http://www.gotdotnet.com
-------
!Content-Class: urn:content-classes:message
!From: "Juan Dent" <juan5@.dev.com>
!Sender: "Juan Dent" <juan5@.dev.com>
!References: <049201c33b74$61a1e1b0$a601280a@.phx.gbl>
<OfH1p09ODHA.2224@.TK2MSFTNGP10.phx.gbl>
!Subject: Re: Opening other ASPX pages
!Date: Thu, 26 Jun 2003 09:40:13 -0700
!Lines: 121
!Message-ID: <007901c33c01$9ddcc130$a401280a@.phx.gbl>
!MIME-Version: 1.0
!Content-Type: text/plain;
!charset="iso-8859-1"
!Content-Transfer-Encoding: 7bit
!X-Newsreader: Microsoft CDO for Windows 2000
!Thread-Index: AcM8AZ3cmThxGY7qRw+s473yMPXqFQ==
!X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
!Newsgroups: microsoft.public.dotnet.framework.aspnet
!Path: cpmsftngxa06.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:155155
!NNTP-Posting-Host: TK2MSFTNGXA12 10.40.1.164
!X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
!
!Thanks! I here what you are saying. Nevertheless is there
!no way to open a second window from the aspx.cs file in C#?
!
!Thanks again,
!Juan Dent
!
!>--Original Message--
!>On the client-side you are restricted to the
!functionality available in
!>HTML. It doesn't matter what you have on the server side.
!What the user sees
!>in their browser is pure HTML.
!>
!>HTH,
!>
!>Kevin Spencer
!>Microsoft FrontPage MVP
!>Internet Developer
!>http://www.takempis.com
!>Big things are made up of
!>lots of Little things.
!>
!>"Juan Dent" <juan5@.dev.com> wrote in message
!>news:049201c33b74$61a1e1b0$a601280a@.phx.gbl...
!>> Hi,
!>>
!>> If I have an ASPX page open and I press something that
!>> posts back to the server, then I want to open up an
!>> additional ASPX page passing it information from the
!first
!>> page without closing the original page.
!>>
!>> I have achieved some degree of success using client side
!>> scripting but am not really happy. It really does not do
!>> what I need - it just manages to open another page in
!its
!>> own window at the start.
!>>
!>> What I want is a *managed* way to accomplish this. I
!mean,
!>> in Windows.Forms when you want to open another window
!you
!>> create it and then Show() it. Is there nothing similar
!in
!>> ASP.NET? I can't believe that the functionality that
!is
!>> available at the HTML level, with objects like window
!and
!>> document, is not accessible from managed (compiled)
!>> ASP.NET code. I have been searching for classes like
!>> HtmlDocument or HtmlWindow with no success. If I am
!>> approaching this problem in the wrong manner, could
!>> someone please tell me the right path?
!>>
!>> The following is the ASPX page that opens another one:
!>>
!>> ------
!>> <%@. Page language="c#" Codebehind="WebForm1.aspx.cs"
!>> AutoEventWireup="false"
!Inherits="SimpleWebForms.WebForm1"
!>> %>
!>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
!>> Transitional//EN" >
!>> <HTML>
!>> <HEAD>
!>> <title>WebForm1</title>
!>> <meta name="GENERATOR" Content="Microsoft
!>> Visual Studio 7.0">
!>> <meta name="CODE_LANGUAGE" Content="C#">
!>> <meta name="vs_defaultClientScript"
!>> content="JavaScript">
!>> <meta name="vs_targetSchema"
!>> content="http://schemas.microsoft.com/intellisense/ie5">
!>> </HEAD>
!>> <body MS_POSITIONING="GridLayout" onload="return
!>> OpenAnother()" >
!>> <form id="Form1" method="post"
!>> runat="server">
!>> <asp:Label ID="explain"
!>> Runat="server"/>
!>> <br>
!>> <asp:Button ID="btn" Font-
!>> Bold="True" Text="No runat server" />
!>> <asp:Button ID="ServerBtn" Font-
!>> Bold="True" Text="Server Button" Runat="server" />
!>> <input type="checkbox" name="chk"
!>> onclick="return ChkClick()" >
!>> <input type="text" name="txt" >
!>> <input type="hidden" id="hidden"
!>> name="hidden" runat= "server" >
!>> </form>
!>> <script language=javascript>
!>> <!--
!>> function ChkClick()
!>> {
!>> Form1.txt.value= "High!";
!>> Form1.hidden.value = Form1.ServerBtn.value
!>> = "Changed";
!>> return true;
!>> }
!>> //-->
!>> </script>
!>> <script language=javascript>
!>> <!--
!>> function OpenAnother()
!>> {
!>> window.showModelessDialog( "RequestForm.aspx");
!>> }
!>> //-->
!>> </script>
!>> </body>
!>> </HTML>
!>> ------
!>>
!>>
!>> Thanks!
!>> Juan Dent
!>
!>
!>.
!>
!