hi Arora
this will help you
create two text box ,a lable and one button
<asp:Label ID="Label1" runat="server" Text=""></asp:Label><br /><br />
<tr>
<td>
Enter Purchase Currency Code:
</td>
<td>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><br />
</td>
</tr>
<tr>
<td>
Enter Reciever Currency Code
</td>
<td>
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
</td>
</tr>
</table>
use this name space
using System.IO;
using System.Net;
using System.Xml;
in search button click add this code
protected void btnSearch_Click(object sender, ImageClickEventArgs e)
{
try
{
string xmlResult = null;
string url;
url = "http://www.webservicex.net/CurrencyConvertor.asmx/ConversionRate?FromCurrency=" + TextBox1.Text + "&ToCurrency=" + TextBox2.Text + "";
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
StreamReader resStream = new StreamReader(response.GetResponseStream());
XmlDocument doc = new XmlDocument();
xmlResult = resStream.ReadToEnd();
doc.LoadXml(xmlResult);
Label1.Text = "Current Exchange Rate for " + TextBox1.Text.ToUpper() + " ---> " + TextBox2.Text.ToUpper() + " value " + doc.GetElementsByTagName("double").Item(0).InnerText;
}
catch (Exception ex)
{
Label1.Text = "Not a valid Currency or Try again later";
}
}
this will help u..this is online.so u need internet connection..
If this helpful accept solution.
keep coding..