I built my first little project in asp.net and I'm not very advanced yet. The program I wrote is to balance a simple checkbook. If you wish to see it its at http://www.l3roken.com/checkbook.aspx. I wanted to know a little about text boxes. First I wante to be able to format the how the text shows up so it would only allow a dollar sign and 2 decimal places. Secondly I wanted to be able to pass an integer within the text boxes instead of using the .text object. If anyone could point me to some good tutorials on what I'm trying to accomplish I would appreciate it.
JoshHello, I recommend that you check the following links:
-TextBox
-TextBox Control
-TextBox Class
Regards.
Hi,
textboxes only accept text so if you want it to be of type integer you'll have to cast it to the type you need.
In C# this could be something like: int myNum = (int)TextBox1.Text
Grz, Kris.
0 comments:
Post a Comment