| | |
4 Function Calculator textbox or field control
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Dec 2007
Posts: 1
Reputation:
Solved Threads: 0
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!
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!
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.
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
![]() |
Other Threads in the ASP.NET Forum
- Previous Thread: Session_OnEnd , Session_End , or Timeout help
- Next Thread: gui to compose HTML emails
| Thread Tools | Search this Thread |
.net activexcontrol advice ajax alltypeofvideos appliances asp asp.net bc30451 beginner bottomasp.net box browser button c# c#gridviewcolumn cac checkbox click commonfunctions confirmationcodegeneration content courier css dataaccesslayer database datagridview datagridviewcheckbox datalist deadlock development dgv dialog dropdownlist dynamically edit expose fileuploader fill flash formatdecimal forms formview gridview gudi homeedition iframe iis javascript jquery listbox login microsoft mono mouse mssql multistepregistration news numerical objects opera panelmasterpagebuttoncontrols radio redirect registration relationaldatabases reportemail rotatepage save schoolproject search security sessionvariables silverlight smartcard smoobjects software sql-server sqlserver2005 suse textbox tracking treeview unauthorized validatedate validation vb.net video videos virtualdirectory vista visualstudio web webapplications webdevelopemnt webprogramming webservice xml xsl youareanotmemberofthedebuggerusers






