| | |
how to add the text in text boxes.
Please support our ASP.NET advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: May 2009
Posts: 52
Reputation:
Solved Threads: 0
hi,
i want to add the text in one text boxto another text in another textbox. i mean ,we enter value 5 in textbox1 and enter value 10 in textbox2 and finally when we click on button the result(15) will be displayed in textbox3. how it is possible. can u tell me the solution . i am using the asp.net and ms sql server 2000 .
i want to add the text in one text boxto another text in another textbox. i mean ,we enter value 5 in textbox1 and enter value 10 in textbox2 and finally when we click on button the result(15) will be displayed in textbox3. how it is possible. can u tell me the solution . i am using the asp.net and ms sql server 2000 .
•
•
Join Date: Sep 2008
Posts: 76
Reputation:
Solved Threads: 15
hi use the following code..
[code]
int res=0;
res = Convert.ToInt32(TextBox1.Text) + Convert.ToInt32(TextBox2.Text);
TextBox3.Text = res.ToString();
[\code]
Let me know your comments. If It solves ur problem mark it as solved.
[code]
int res=0;
res = Convert.ToInt32(TextBox1.Text) + Convert.ToInt32(TextBox2.Text);
TextBox3.Text = res.ToString();
[\code]
Let me know your comments. If It solves ur problem mark it as solved.
Last edited by kameswari; Aug 26th, 2009 at 5:48 am. Reason: some more code
•
•
•
•
hi use the following code..
[code]
int res=0;
res = Convert.ToInt32(TextBox1.Text) + Convert.ToInt32(TextBox2.Text);
TextBox3.Text = res.ToString();
[\code]
Let me know your comments. If It solves ur problem mark it as solved.
sorry kameshwari i was in the hurry..
so forgot to use [code] Tag..
Mark the thread as resolved if your problem gets resolved :)
![]() |
Similar Threads
- add text box on click (JavaScript / DHTML / AJAX)
- Help loading data from access to text boxes (VB.NET)
- How to pick out a specified text from a text box? (C#)
- Adding To a list box from multiple text boxes (Visual Basic 4 / 5 / 6)
- spaces between Text and Text box (HTML and CSS)
- Adding text boxes and buttons dynamically (JSP)
- code illiterate - add text from 5 TEdit to 1 (Pascal and Delphi)
- Formatting clipboard text for spreadsheets (Visual Basic 4 / 5 / 6)
- Cannot enter any text in a IE text-box (Viruses, Spyware and other Nasties)
- Time out web pages w/text or drop boxes (Networking Hardware Configuration)
Other Threads in the ASP.NET Forum
- Previous Thread: ajax
- Next Thread: xslt transforms
Views: 254 | Replies: 3
| Thread Tools | Search this Thread |
Tag cloud for ASP.NET
.net 2.0 activexcontrol advice ajax alltypeofvideos anathor application asp asp.net bc30451 bottomasp.net browser button c# c#gridviewcolumn checkbox child click commonfunctions compatible confirmationcodegeneration connection content courier css database datagridview datagridviewcheckbox datalist deadlock development dgv dropdown dropdownlist edit expose feedback flash form formatdecimal forms formview google grid gridview homeedition hosting iframe iis index javascript jquery list login microsoft migration mono mssql multistepregistration numerical object objects panelmasterpagebuttoncontrols problem project ratings rotatepage save schoolproject search security serializesmo.table session silverlight smartcard software sql sqlserver2005 suse textbox tracking typeof unauthorized update validation vb vb.net video view virtualdirectory vista visual-studio visualstudio web webarchitecture webdevelopemnt webservice xml youareanotmemberofthedebuggerusers





