Dear , I have Textbox_A and TextBox_B And TextBox_C = TextBoxA -TextBox_B
A= 200, B=100 , C=20 -10= 100
I want first generate 10 data row and display it to table after clicking on Button . Like following
Table Cloumn
100
101
102
...
199
Please help
Dear , I have Textbox_A and TextBox_B And TextBox_C = TextBoxA -TextBox_B
A= 200, B=100 , C=20 -10= 100
I want first generate 10 data row and display it to table after clicking on Button . Like following
Table Cloumn
100
101
102
...
199
Please help
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jignesh KumarRank #91 · 22.9K reputationPosted Nov 14, 2022, 12:11 AM EST
Hi Sanjeev,
You can add textchanged event for text box and calculate sum/Substraction in third textbox, Please refer this one,
https://stackoverflow.com/questions/9394909/add-values-from-two-textboxes-and-display-the-sum-in-third-textbox
Then Insert that values inside grid using button click event as per this thread,
https://www.c-sharpcorner.com/code/1538/add-textbox-values-to-gridview-in-asp-net-on-button-click.aspx
Amit MohantyRank #112 · 20K reputationPosted Nov 13, 2022, 11:58 PM EST
Can you please explain your issue more briefly.
Joe Suarez8 reputationPosted May 24, 2023, 4:21 AM EDT
Below is an example of how you can achieve this using JavaScript:
Copy the above code into an HTML file and open it in a web browser. You will see two textboxes for entering values for
TextBox_AandTextBox_B, and a button to generate the table. After entering the values, click the "Generate Table" button, and a table with the desired data rows will be displayed.Note: This code assumes that you want to generate lead data enrichment with numbers ranging from
TextBox_B(inclusive) toTextBox_A(exclusive).