I have a confusion. in the given code i have used getprice method to get the values of a string named price. can some body tell me what i need to insert in this method. i have used return price; but it didnt give any respons. the fxfeed is a class that provides market values of bid and ask but the method doesnt work to get the values. please help me.
public string price = "bid,ask";
public string getPrice()
{
}
if (fxfeed.getPrice().Equals("bid,ask"))
{
Response.Write("Bid: " + quote["bid"]);
Response.Write("Ask: " + quote["ask"]);
}
else
{
Response.Write(("Price: " + quote["price"]));
}
Loading

Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Jul 19, 2011, 11:19 PM EDT
What is "quote" here ?. Please explain clearly. what is your problem. what should be the output.. what are you getting now.. what is the error if any,,,
what is the need of if condition here?
saifullah khanRank #4,887 · 320 reputationPosted Jul 19, 2011, 11:44 PM EDT
Anil KumarRank #367 · 6.8K reputationPosted Jul 20, 2011, 12:52 AM EDT
saifullah khanRank #4,887 · 320 reputationPosted Jul 20, 2011, 3:32 AM EDT
VulpesRank #55 · 29.2K reputationPosted Jul 20, 2011, 5:30 AM EDT