function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
milind_devmilind_dev 

how to create web to lead form in asp.net

i have created web to lead form in asp.net .. I have used form action. its working well and the information that i am filling in this form is saving in my organisation.. bt i want to do it using http request..means that i want to create my own webRequest and webResponse to connect my asp.net form to my salesforce organisation.. 

 

 

Can anyone help me plz..if possible can anyone give me the detailed procedure for this..

kiranmutturukiranmutturu

go to salesforce and then expand lead object and go to web-to-lead section and check if ihe feature is enabled or not.. if enabled then use the button create a web-to-lead form and give your asp.page to which you want to land after the lead was captured....mean while you need to select which fields to be captured also.... then salesforce will automatically generate some HTML code for you....copy paste the same in your web from...and test the same.....

milind_devmilind_dev

ye i have done it.. its working fine.. bt it uses form action method--

 

 <form id="form2" runat="server" action="https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8" method="POST">

 

bt i don't want action method.. i want to create my own HTTP request and Http response.. 

kiranmutturukiranmutturu

then you need to consume salesforce API wsdl and then you need to use the predefined objects to connect to salesforce 

milind_devmilind_dev

can u give me the procedure for that .. actually i am new to salesforce.. so i don't know about this..i have tried this but i was doing it in a wrong way.. .. so plz  help me...

 

 

Thanx in advance

Milind