5
Answers

What it insert in given method

saifullah khan

saifullah khan

13y
1.5k
1
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)