Click here to Skip to main content
15,899,754 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I would like to send the submitted form values over the HTTP as done with post method in old ASP in the ASP.NET.
This is a specification given to me by the gateway that I am trying to use.
I am using VB in ASP.NET

Kindly help me out.
Posted
Updated 11-Feb-11 22:27pm
v2

Your question is not very precise as everything sent from the browser to the server is usally transmitted via HTTP. If the forms action URL is realative and the page was requested via HTTP then it's HTTP. If it's a fully qualified URL and starts with http:// then it's again HTTP. Even if the requests against the server are done via AJAX the same is true. As for using method POST for HTTP transfer that too can be controlled.
For forms use the form attribute method="POST" and for AJAX it depends on which javascript framework you are using, but there will also be an option to set the transfer method to POST.

Still confused? Leave a comment!

Cheers!
 
Share this answer
 
Comments
fjdiewornncalwe 12-Feb-11 10:53am    
+5.
Manfred Rudolf Bihy 12-Feb-11 10:57am    
Thanks Marcus!
Well there are few things which are not clear in your head. asp and asp.net are server side scripting/coding to generate dynamic pages. They support HTTP as they are meant to be used for web development.

HTTP is a protocol which happen to have Form POSTing. Any technology that needs does web development needs to support (other wise it becomes useless). As such both asp and asp.net do support Form POSTing. What ever you can do in asp you can do with asp.net and more. Of course the syntex and symantec may not exactly the same.

So, rest assured that you can do whatever you have in asp using asp.net.
 
Share this answer
 
Comments
busteronline 13-Feb-11 8:42am    
u should try to read the question very well b4 postin next time
Yusuf 13-Feb-11 17:30pm    
Look, Every one who answered you is saying that your question is not clear. Do I need to say anything more. I know what you saying is meaningless and it shows your understanding of how things work.
Sir, I think you mean that you want to use html controls and fetch their values using Request variable and their names as keys.
then you need to use this code:

Dim value As String = Me.Request.Form("ElementName")
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900