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
VulpesPosted Jul 20, 2011, 9:30 AM
saifullah khanPosted Jul 20, 2011, 7:32 AM
Anil KumarPosted Jul 20, 2011, 4:52 AM
saifullah khanPosted Jul 20, 2011, 3:44 AM
Jaganathan BantheswaranPosted Jul 20, 2011, 3:19 AM
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?