I've got what seems a fairly simple problem but I'm not getting it working as quick as I would like.
I've a dialog from a webpage that runs a callback into a JavaScript function on the calling page. The return value from this dialog needs to be added to some sort of table or grid on the page.
I then need to be able to access the data from the table/grid in the code behind the page when the page is finally submitted.
First I tried using a Telerik RadGrid - I triggered a postback when the dialog closed to access the values to add to the grid.
However I have validation controls on the main page, so trying to perform a postback after the dialog triggers validations on controls not filled in.
I began to write some JSON calls to send the data to the server but it seemed like overkill so I took a different route.
Now I've used JavaScript (jQuery) to add rows to a table marked with runat="Server" - so each selection from the dialog adds a new row to the table.
This looks fine in the browser but when I submit the page there are no rows showing in the table control submitted.
So can I have some suggestions - ideally some sample code - on how to get this working?
Our community of experts have been thoroughly vetted for their expertise and industry experience.