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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Joe SuarezPosted May 24, 2023, 8:21 AM
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).Jignesh KumarPosted Nov 14, 2022, 5:11 AM
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 MohantyPosted Nov 14, 2022, 4:58 AM
Can you please explain your issue more briefly.