Hi,
1. With HTML button:
Create a HTML button as below:
<input type=button name=btnX onclick="javascript:fnSubmit()">
Create a javascript function to handle the event:
<script language=javascript>
function fncSubmit()
{
document.form1.action="Y.aspx";
document.form1.method="post";
document.form1.submit();
}
</script>
2. With server control button:
Create a server button as below:
<asp:button id="btnX" runat = server>
In page onload of page(X.aspx.vb) write below code
btnX.Attributes("OnClick")="fncSubmit;"
where fncSubmit is the javascript function mentioned earlier.
Now it should be clear to u. Let me know if u have any query
Ramprasad
> Tnx for responce:
Can u send me a example, I couldnt figured out!
Hovik.
----- Original Message -----
From: "ramprasad upadhyaya" <rpu_forum@y...>
To: "ASPX_Professional" <aspx_professional@p...>
Sent: Thursday, October 10, 2002 9:39 AM
Subject: [aspx_professional] Re: Form Submit
Hi,
No... runat server means the form will be processed at server. But
still u can
submit to other pages by using javascript function..
1. Put a button which is html button(<input type=button>). on click
write a
function and submit to any page u want. OR....
2. Put a server button(<asp:button>) . on page on load of code behind
call a
javascrpt to do submitting..
If u have any doubt mail me back.
Ramprasad
Hovik Melkomian wrote:Hi there:
As I got, we cant submit form to other page if the Form is ranat="server"
Is it right?!
Hovik.
---
ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442
ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450
These books are a complete reference to the ASP.NET namespaces
for developers who are already familiar with using ASP.NET.
There is no trivial introductory material or useless .NET
hype and the presentation of the namespaces, in an easy-to use
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes,
giving you those real-world tips that the documentation doesn't
offer, and demonstrating complex techniques with simple
examples.
---
---
Change your mail options at http://p2p.wrox.com/manager.asp or
to unsubscribe send a blank email to
---------------------------------
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos, & more
faith.yahoo.com
---
ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442
ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450
These books are a complete reference to the ASP.NET namespaces
for developers who are already familiar with using ASP.NET.
There is no trivial introductory material or useless .NET
hype and the presentation of the namespaces, in an easy-to use
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes,
giving you those real-world tips that the documentation doesn't
offer, and demonstrating complex techniques with simple
examples.
---
---
Change your mail options at http://p2p.wrox.com/manager.asp or
to unsubscribe send a blank email to