Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to submit a form from c#
    text
    copied!<p>I am developing a internal app in c# which calls one of the banking site. I need to enter curency in DDL, amount in textbox and neeed to find out the exchange rate.</p> <p>here is the link which i need to use..</p> <p><a href="https://www.timesofmoney.com/remittance/secure/rmtExchRateCalculator.jsp?tab=US&amp;sendercountry=US&amp;sendercurrency=USD&amp;uiId=TOML&amp;partnerId=TOML" rel="nofollow noreferrer">https://www.timesofmoney.com/remittance/secure/rmtExchRateCalculator.jsp?tab=US&amp;sendercountry=US&amp;sendercurrency=USD&amp;uiId=TOML&amp;partnerId=TOML</a> I used myWebClient.UploadValues(C#) but the site is returning some errors...can some one help me with this..</p> <h2>My Code:</h2> <pre><code> string uriString= "https://www.timesofmoney.com/remittance/secure/rmtExchRateCalculator.jsp?tab=US&amp;sendercountry=US&amp;sendercurrency=USD&amp;uiId=TOML&amp;partnerId=TOML"; // Create a new WebClient instance. WebClient myWebClient = new WebClient(); // Create a new NameValueCollection instance to hold some custom parameters to be posted to the URL. NameValueCollection myNameValueCollection = new NameValueCollection(); // Add necessary parameter/value pairs to the name/value container. myNameValueCollection.Add("selCountry", "United States"); myNameValueCollection.Add("rmtAmount", "100"); byte[] responseArray = myWebClient.UploadValues(uriString, myNameValueCollection); Response.Write(Encoding.ASCII.GetString(responseArray)); </code></pre> <hr> <p>The response I got from the site:</p> <hr> <p>Inconvenience Regretted ! </p> <p>Please check your browser settings to enable you to use the site. You may be facing this problem due to old cookies and temporary internet files</p> <p>Delete the temporary Internet files.</p> <p>To delete the temporary Internet files, follow these steps: Start Internet Explorer. On the Tools menu, click Internet Options, and then click the General tab. Under Temporary Internet files, click Delete Cookies. Click OK when you are prompted to confirm the deletion. Click Delete Files. Click OK when you are prompted to confirm the deletion. Under History, click Clear History. Click Yes when you are prompted to delete your history of visited Web sites. Click OK. Close all open browsers and restart new browser again </p> <hr>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload