troubleshooting Question

Web Page/Dialog/Add to Table/Submit

Avatar of purplesoup
purplesoupFlag for United Kingdom of Great Britain and Northern Ireland asked on
ASP.NETC#JavaScript
3 Comments1 Solution324 ViewsLast Modified:
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?
ASKER CERTIFIED SOLUTION
Sar1973

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros