GeekInterview.com
Series: Subject: Topic:
Question: 77 of 298

ASP.NET - Addition of two numbers

For that I created two text boxes tbNum1 and tbNum2 and a button btnAdd. So Question is I have to create one class ,and in this class I have to declare properties for getting values. and in button_Click event I have to access the property value and assign the result to another text box. I can use property only not methods. how to do this. pls explain with codes
Asked by: Interview Candidate | Asked on: Nov 1st, 2007
Showing Answers 1 - 2 of 2 Answers

you could do that by passing parameters.

For example if u have got two numbers 1 and 2 now u need to pass that values by parameter to that class where u do the arithmatic operation and from that class u need to get the reult and that has to be dispalyed.

            I should be always you to code first and if any problem arises then u could consult any one u can't get spoon feeding in a software development.If you dont do on your own then you will not be able to learn.

  
Login to rate this answer.
lakhan

Answered On : Jul 19th, 2011


Warning: preg_replace() [function.preg-replace]: Compilation failed: unmatched parentheses at offset 29 in /home/geekint/public_html/api/lib/geshi/geshi.php on line 2319

Warning: preg_replace() [function.preg-replace]: Compilation failed: unmatched parentheses at offset 29 in /home/geekint/public_html/api/lib/geshi/geshi.php on line 2319

Warning: preg_replace() [function.preg-replace]: Compilation failed: unmatched parentheses at offset 29 in /home/geekint/public_html/api/lib/geshi/geshi.php on line 2319

Code
  1.  

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.