4 Function Calculator textbox or field control

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Dec 2007
Posts: 1
Reputation: UnionJack is an unknown quantity at this point 
Solved Threads: 0
UnionJack UnionJack is offline Offline
Newbie Poster

4 Function Calculator textbox or field control

 
0
  #1
Dec 7th, 2007
Hey everyone,

I'm looking to create an asp.net calculator but not exactly like most of the examples you'd find on the web. Basically all I want is a textbox field where you'd type an integer followed by one of four basic math ops and then display the solution in the same box.

This is basically how the local windows calc works except i dont want any of the buttons just the math functionality with the use of keyboard keys and the textbox field. It probably needs to use clientside javascript or ajax to avoid postbacks after each key press. Anyone have ideas or examples? Thanks!
Reply With Quote Quick reply to this message  
Join Date: Dec 2003
Posts: 2,414
Reputation: alc6379 has a spectacular aura about alc6379 has a spectacular aura about alc6379 has a spectacular aura about 
Solved Threads: 123
Team Colleague
alc6379's Avatar
alc6379 alc6379 is offline Offline
Cookie... That's it

Re: 4 Function Calculator textbox or field control

 
0
  #2
Dec 7th, 2007
Why do this in ASP.NET at all? You could do this in JavaScript entirely. Are you eventually going to take the value generated from the calculator and use it in some kind of business logic? That's the only time you'd need to employ the server-side stuff like ASP.NET

What code have you written so far? Have you had any specific issues attempting this project. It's generally not a good idea to simply come on a forum, and ask for a whole solution like this. Instead, give it a shot yourself, and then ask us to provide pointers on your code.
Last edited by alc6379; Dec 7th, 2007 at 4:55 pm. Reason: additional detail
Alex Cavnar, aka alc6379
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the ASP.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC