473,320 Members | 1,952 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Sending html page values to ASP page

Hi Gurus,
I am pretty new in ASP.net, so please help me solve a problem.
We have many HTML pages which we do not want to change.

What we want is on a button press it should goto a ASP page with all the
values.

I'll appreciate if I get some source example which I can try.

Please help me.
Mark
Jun 27 '08 #1
4 1016
"Mark" <Ma**@nospaml.comwrote in message
news:O0****************@TK2MSFTNGP05.phx.gbl...
We have many HTML pages which we do not want to change.

What we want is on a button press it should goto a ASP page with all the
values.
Can you clarify please:

1) Where is this button?

2) When you say an ASP page, do you actually mean an ASP.NET page? They're
very different...

3) What do you mean by "all the values"?
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jun 27 '08 #2
What you are describing is a simple FORM post. As long as all the "values"
are inside the FORM tags, they will be posted to the target pages. And be
careful using the term "ASP" - that means classic ASP, this is for ASP.NET.
-- Peter
To be a success, arm yourself with the tools you need and learn how to use
them.

Site: http://www.eggheadcafe.com
http://petesbloggerama.blogspot.com
http://ittyurl.net
"Mark" wrote:
Hi Gurus,
I am pretty new in ASP.net, so please help me solve a problem.
We have many HTML pages which we do not want to change.

What we want is on a button press it should goto a ASP page with all the
values.

I'll appreciate if I get some source example which I can try.

Please help me.
Mark
Jun 27 '08 #3
Thanks for your reply.
I have created an test example to clarify.

On this form I have one input textbox and one Submit button. On submit I
want to process the data(Text1) in Validate.aspx.vb.
<form action ="../Validate.aspx" method ="post" >
<input id="Text1" type="text" /><br />
<br />
<input id="Submit1" type="submit" value="submit" />
</form>
</body>

But when code reaches Validate Page_Load event, then Request.Form.Count
returns 0, when I am expecting Text1 value.

Public Partial Class Validate
Inherits System.Web.UI.Page

Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
If Request.Form.Count 0 Then
Me.TextBox1.Text = Request.Form("Text1")
End If
End Sub
End Class

Tell me what am I doing wrong.
Thanks, Mark

"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:Ol****************@TK2MSFTNGP05.phx.gbl...
"Mark" <Ma**@nospaml.comwrote in message
news:O0****************@TK2MSFTNGP05.phx.gbl...
>We have many HTML pages which we do not want to change.

What we want is on a button press it should goto a ASP page with all the
values.

Can you clarify please:

1) Where is this button?

2) When you say an ASP page, do you actually mean an ASP.NET page? They're
very different...

3) What do you mean by "all the values"?
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jun 27 '08 #4
Guys,
It started working when I replaced ID with Name.
<input NAME="Text1" type="text" />

Thanks guys for your help.
Mark
"Mark" <Ma**@nospaml.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
Thanks for your reply.
I have created an test example to clarify.

On this form I have one input textbox and one Submit button. On submit I
want to process the data(Text1) in Validate.aspx.vb.
<form action ="../Validate.aspx" method ="post" >
<input id="Text1" type="text" /><br />
<br />
<input id="Submit1" type="submit" value="submit" />
</form>
</body>

But when code reaches Validate Page_Load event, then Request.Form.Count
returns 0, when I am expecting Text1 value.

Public Partial Class Validate
Inherits System.Web.UI.Page

Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
If Request.Form.Count 0 Then
Me.TextBox1.Text = Request.Form("Text1")
End If
End Sub
End Class

Tell me what am I doing wrong.
Thanks, Mark

"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:Ol****************@TK2MSFTNGP05.phx.gbl...
>"Mark" <Ma**@nospaml.comwrote in message
news:O0****************@TK2MSFTNGP05.phx.gbl...
>>We have many HTML pages which we do not want to change.

What we want is on a button press it should goto a ASP page with all the
values.

Can you clarify please:

1) Where is this button?

2) When you say an ASP page, do you actually mean an ASP.NET page?
They're very different...

3) What do you mean by "all the values"?
--
Mark Rae
ASP.NET MVP
http://www.markrae.net


Jun 27 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Zaidan | last post by:
I am running Excel2000 under WIN98 2nd edition, and I am writing a VBA code (I will consider using javascript if I have to) that does the following, at the user command: 1- Start MS Explorer and...
3
by: DeadManWalking | last post by:
To all the knowing folks out there: Please help me! I'm new to this stuff... I'm in the need to call a paramter-query stored in an MS-Access-DB from an FrontPage-ASP-site. Can anybody tell...
2
by: Marcelo | last post by:
Hi guys, I'm using the following code to send values from one page to another, but seems to me, that the event Page_Load in the receiving page never fires. Why? This is the code: Thanks ...
3
by: Sydney | last post by:
Hi, I am trying to construct a WSE 2.0 security SOAP request in VBScript on an HTML page to send off to a webservice. I think I've almost got it but I'm having an issue generating the nonce...
4
by: Roger Withnell | last post by:
I'm sending Russian text in an email generated from the website which displays in the email as ?????????? The website is set to codepage 65001 and the charset to utf-8. Please advise. ...
2
by: drakorq | last post by:
I got stuck on this, and it would be really great if anybody could point me in the right direction. I was trying setting up these scripts following instructions in a book from 2003, so I thought...
3
by: pradeepdeepu | last post by:
hi, sorry for replying like this.Below is my html code.I need to send all field values to email id.I must do it in PHP,but i don't no php. Please help me by sending code for this html page.It is...
1
by: Dhananjay | last post by:
Hi all , I have notify.aspx page. On this page i have 10 textboxes with some values coming from database.and i have also placed two buttons namely send and save . when i click on send button,...
8
by: nargis2009 | last post by:
Hi, I have been encountering problems with my web page which is supposed to send email, and wondered if anybody can help find error. Initially I had all codes in one page and on click of...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.