문제

I have a dropdown list which gets populated from an odata service in Page_Load. The dropdown list resides in an UpdatePanel control.

Currently the page does not load until the dropdown list is populated.

How can I make it so that the page loads initially and then keeps populating the dropdown list in the background?

도움이 되었습니까?

해결책

Do not load the DDL in Page_Load

Let the blank DDL get rendered on the client side, then use AJAX or JavaScript to fetch records from the server and add them to the DDL.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top