Solved

Html Form Submit not passing Form Data to ASPX

Posted on 2007-12-04
5
709 Views
Last Modified: 2012-08-13
I have a pure HTML page like this

<form name="FindByEdName" action="http://localhost:1863/FindByEdName.aspx" method=get>
Editor's Name:
<input id="EdName" type="text" />
<input id="btnByName" type=submit value="Find" />
</form>

But the http call arrives at FindByEdName.aspx with nothing on the URL?
What am I doing wrong?
0
Comment
Question by:volking
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 12

Expert Comment

by:Sinoj Sebastian
ID: 20404699
I think you need to use

method="post"
0
 
LVL 10

Expert Comment

by:Alpesh Patel
ID: 20404721
Your Action is wrong
you actually xfer server so it cannot pass any value to the other server which is hosted on port 1863
you can only xfer or actioned out to the perticular page  with the server values.
either way is that u can use Response.redirect to pass the server values
0
 
LVL 10

Expert Comment

by:Alpesh Patel
ID: 20404727
your action should be like

action="pagename.asp"
or

action="pagename.aspx"

like that


0
 
LVL 12

Accepted Solution

by:
Sinoj Sebastian earned 500 total points
ID: 20404807
ooops I made a mistake sorry...

You need name attribute in the input control



<form name="FindByEdName" action="http://localhost:1863/FindByEdName.aspx" method=get>
Editor's Name:
<input id="EdName" name="EdName" type="text" />
<input id="btnByName" name="btnByName" type=submit value="Find" />
</form>

Open in new window

0
 
LVL 5

Author Closing Comment

by:volking
ID: 31412632
Duuuh! @SINOJ you're right.  I forgot the silly name. Thanks! Added name and it all works.
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
The viewer will learn how to count occurrences of each item in an array.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question