Submit Data from ASP.Net Page to ASP Page

K

Kamal Ahmed

May we submit data from ASP.Net Page to ASP Page ??. Means I have some
Textboxes and I want to send Text within texboxes into targer ASP Page...

TIA

Kamal Ahmed
 
F

Fiaz Ali Saleemi

Hi Kamal

Data can be submitted from ASP.NET Page to ASP Page or any other page for ex
(jsp, php, cfm etc). You just need to make sure that action attribute of
form is proper and contains the url of desired page.

Regards
Fiaz Ali Saleemi
 
G

Guest

Hi there,

If it's .NET 1.x, I don't think you can simply set action attribute in form
tag, unless you use non-.NET form. In .NET form, even you set action
attribute in form tag, it still request the page itself, rather than action
page.

In order to use 'POST' method to request other page, you should use
client-side JavaScript code. Following code snippet shows how to use a button
to submit the form to www.asp.net:

In Page_Load event:

myButton.Attributes.Add("Onclick",
"document.Form1.action='http://www.asp.net'; document.Form1.submit();") ;

HTH

Elton Wang
(e-mail address removed)
 
K

Kevin Spencer

Hi Kamal,

A WebForm always submits to itself. However, it doesn'thave to be the ONLY
form on a page. So, yes, you can submit data in a form from one ASP.Net page
to another.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
The sun never sets on
the Kingdom of Heaven
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top