I have some dropdowns, which are populated by ajax to prevent having to do a postback.
the problem is, I have one dropdown that populates another based on the first's selection.
This is working fine, and I can see the new entries in the second dropdown.
The problem is, if I do a view source, those new entries aren't in the second postback. I'm still seeing the old dropdown entries, but only in the view source. on the actual page itself the proper dropdown items are there. And when I do a regular submit, it submits the old selected value, as if the dropdown had never been repopulated, and I assume this is because the Page is not refreshed because the ajax pagemethod prevents a postback, as it should.
So I've created an ajax/javascript submit function instead.
I put each of the dropdown and textbox controls into an array, and pass that back to the pagemethod., but I keep getting a message that says the script on the page is taking too long, and it hangs.
Is there something I need to do to pass arrays to the c# pagemethod?
all other ajax functions are working
the problem is, I have one dropdown that populates another based on the first's selection.
This is working fine, and I can see the new entries in the second dropdown.
The problem is, if I do a view source, those new entries aren't in the second postback. I'm still seeing the old dropdown entries, but only in the view source. on the actual page itself the proper dropdown items are there. And when I do a regular submit, it submits the old selected value, as if the dropdown had never been repopulated, and I assume this is because the Page is not refreshed because the ajax pagemethod prevents a postback, as it should.
So I've created an ajax/javascript submit function instead.
I put each of the dropdown and textbox controls into an array, and pass that back to the pagemethod., but I keep getting a message that says the script on the page is taking too long, and it hangs.
Is there something I need to do to pass arrays to the c# pagemethod?
all other ajax functions are working