A
angus
Dear All,
in my asp.net, i have
- a textbox to input a text
- a "add row" button, after it has been clicked the text in the textbox will
add to the table
- a submit button, the user can add a lot of the rows until submit button is
pressed. during that, the data added in the table will be insert into the
database
here is the screenshot to show the notion
1) an empty table
http://destiny.xfiles.to/ubbthreads/files/615866-1.jpg
2) enter "Row 1" in the textbox and press add row, "Row 1" will be added
into the table
http://destiny.xfiles.to/ubbthreads/files/615867-2.jpg
3) enter "Row 2" in the textbox and press add row, "Row 2" will be added
into the table
http://destiny.xfiles.to/ubbthreads/files/615868-3.jpg
...............etc...............
the data will store into the database after "submit" button has been
pressed.
Here is my background:
I am using the DataTable to store the DataRow and the reord each time add
"row button" has been pressed.
after that, the result datagrid will be updated by the DataTable by binding
the datasource again.
My problem is:
as each time we press the "row button" the form will be repost again. so,
whenever i add the "add row" button,
the previous record added will be empty.
What can i do?
Thank you.
Regards,
scli
in my asp.net, i have
- a textbox to input a text
- a "add row" button, after it has been clicked the text in the textbox will
add to the table
- a submit button, the user can add a lot of the rows until submit button is
pressed. during that, the data added in the table will be insert into the
database
here is the screenshot to show the notion
1) an empty table
http://destiny.xfiles.to/ubbthreads/files/615866-1.jpg
2) enter "Row 1" in the textbox and press add row, "Row 1" will be added
into the table
http://destiny.xfiles.to/ubbthreads/files/615867-2.jpg
3) enter "Row 2" in the textbox and press add row, "Row 2" will be added
into the table
http://destiny.xfiles.to/ubbthreads/files/615868-3.jpg
...............etc...............
the data will store into the database after "submit" button has been
pressed.
Here is my background:
I am using the DataTable to store the DataRow and the reord each time add
"row button" has been pressed.
after that, the result datagrid will be updated by the DataTable by binding
the datasource again.
My problem is:
as each time we press the "row button" the form will be repost again. so,
whenever i add the "add row" button,
the previous record added will be empty.
What can i do?
Thank you.
Regards,
scli