Ok, I have a silly question to ask. I have to get this page with a jquery function and fill a dropdown list with data in an asp.net form. Any ideas or examples?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I would do it indirectly using a page method in your codebehind, not directly using jquery due to being blocked by x-site scripting protection.
I’d write a simple class which uses a webclient in .net to pull the page contents back and parse the response into a
List<string>and return to your control somehow. Depending on if you’re using jquery/jscript or an updatepanel in ASP.net, you can call the class method from within your code behind method to prevent a full postback and bind/populate your dropdown list with the data.Example code is in the response marked answered in this previous post.