Hi Tom,
Memememe is right.
You can force a PostBack by setting "AutoPostBack=true;" in codebahind; or
you can call "Form1.submit();" in javascript to force a PostBack.
<form id="Form1" method="post" runat="server">
. . .
<INPUT type="button" value="Button" id="btn" onclick ="Form1.submit();">
. . .
</form>
Please let me know if you need more information. Thanks.
Best regards,
Lewis
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| Content-Class: urn:content-classes:message
| From: "Tom" <
[email protected]>
| Sender: "Tom" <
[email protected]>
| Subject: How To Force a PostBack
| Date: Fri, 29 Aug 2003 07:46:46 -0700
| Lines: 5
| Message-ID: <
[email protected]>
| 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: AcNuPF7mAfLNO1WFQXioU2kR8HHl8g==
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Newsgroups: microsoft.public.dotnet.languages.csharp
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:180686
| NNTP-Posting-Host: TK2MSFTNGXA13 10.40.1.165
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| Does anyone know how ot force a postback in the codebehind?
|
| Thanks
|
| Tom
|