G
Guest
I've a big problem that I don't know how to solve for quite long. In one of
my aspx file, I have a form that run at server. Within this form, there's a
table. The first row is made up of some text boxes and a submit button. The
remaining rows are made up of a data repeater, that display items that are
previously inserted into the table. Its structure is just like a shopping
cart table, whereby the first row you can add a new item, while the remaining
rows are items that you've already added.
I've 3 labels placed in the repeater to show generic information of the
item. So these 3 labels will just repeat itself in the form with the same id.
This, I believe is the main source of my problem. Because when there are too
many labels with the same id in the same form, when I press the submit
button, it will just check the javascript and after that i doesn't really do
what it is supposed to do, i.e. inserting the new data to the table.
I think I'm not really making myself very clear here. Just treat it as if
like a shopping cart, and the bottom few rows I have labels of the same id.
How can I solve this so that when I click the submit button, it will not only
check the javascript but also proceed with the On Click codes (the one that
runs in the server)?
Which means now, because I have labels placed in a repeater, the form has
many labels with the same id (which I believe is the problem). So it goes
haywire, and only do the client side processing, and forget about the server
side.
Thank you in advance.
my aspx file, I have a form that run at server. Within this form, there's a
table. The first row is made up of some text boxes and a submit button. The
remaining rows are made up of a data repeater, that display items that are
previously inserted into the table. Its structure is just like a shopping
cart table, whereby the first row you can add a new item, while the remaining
rows are items that you've already added.
I've 3 labels placed in the repeater to show generic information of the
item. So these 3 labels will just repeat itself in the form with the same id.
This, I believe is the main source of my problem. Because when there are too
many labels with the same id in the same form, when I press the submit
button, it will just check the javascript and after that i doesn't really do
what it is supposed to do, i.e. inserting the new data to the table.
I think I'm not really making myself very clear here. Just treat it as if
like a shopping cart, and the bottom few rows I have labels of the same id.
How can I solve this so that when I click the submit button, it will not only
check the javascript but also proceed with the On Click codes (the one that
runs in the server)?
Which means now, because I have labels placed in a repeater, the form has
many labels with the same id (which I believe is the problem). So it goes
haywire, and only do the client side processing, and forget about the server
side.
Thank you in advance.