Hello,
accessred wrote:
i debugged the code.when running no error is coming,jus not displaying the result.
OK
accessred wrote:
2)code placed in private void Txtresult_TextChanged(object sender, EventArgs e)
So, I would assume that the code is not executed because you are not changing the code of the result textbox. You actually whant to write the result to the textbox. I would think, you should place a button on the page and on Click you execute the code.
accessred wrote:
3)double.TryParse is not working.error comins as: "no over load for method tryparse takes 1 arguments"
As you said you have .Net 2.0 you could also use the int.TryParse, but here is the way I would do it in .Net 1.1
using System.Globalization;
double d;
int i
if(double.TryParse(label.Text,NumberStyles.Integer, CultureInfo.CurrentCulture, out d))
{
i= Convert.ToInt32(d);
}
Hope it helps! All the best, Martin