David,
HTTP is connectionless. Therefore, if you are going to do this type of
thing, you must do it from client-side code.
Jim Cheshire, MCSE, MCSD [MSFT]
ASP.NET
Developer Support
This post is provided as-is with no warranties and confers no rights.
--------------------
>Reply-To: "David Laub" <>
>From: "David Laub" <>
>Subject: Close a WebForm? SetFocus in a WebForm?
>Date: Wed, 18 Feb 2004 15:47:52 -0600
>Lines: 9
>Organization: Wheels, Inc.
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>Message-ID: <>
>Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontro ls
>NNTP-Posting-Host: int1.wheels.com 199.181.32.204
>Path:
cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTN GP08.phx.gbl!TK2MSFTNGP11.
phx.gbl
>Xref: cpmsftngxa07.phx.gbl
microsoft.public.dotnet.framework.aspnet.webcontro ls:18434
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontro ls
>
>is there a way to
>1) programmatically close a Web Form (e.g. the user presses a button, and
>the click event calls some close method I can't find) Yes I can do this in
>JavaScript, but I'd like to NOT do this in JavaScript
>2) programmatically set focus to a specific Web Form Control (e.g. in the
>page load event handler, set focus to a specific Textbox) Yes I can do
this
>in JavaScript, but I'd like to NOT do this in JavaScript
>
>
>