saifullah khan

saifullah khan

  • NA
  • 335
  • 301.8k

What it insert in given method

Jul 19 2011 11:10 AM
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"]));
  }

Answers (5)