locked
script error encountered, _doPostBack is undefined issue RRS feed

  • Question

  • The case I have is as the following. I am developing a web page using VS2013 with .Net 4.5.1, C#, and IE11. I have three html radio buttons and four html select controls. The data for adding to the first HTML select is retrieved from the SQL DB on initial page load. The first HTML select options will be populated when one of three html radio buttons is selected. supposedly, a single record for the second html select should be retrieved from the table after the first html select is selected. The second html select options will be added afterwards. The problem is that I had the above problem when I called _doPostBack in my JavaScript function. My question is that there is any other alternative ways to get this function done since I spent a lot time to resolve this _doPostBack issue and to retrieve the data at the server side. My the other problem was that I have to change the html select to runat server and onchange. Then, the population for the first html select also has be changed. Otherwise, an error message was received on the first html select control saying the first html select control is not found in the current context. Any suggestions? Thanks in advance.     

    cy

    • Moved by Mike Danes Thursday, April 9, 2015 6:13 AM asp.net related
    Thursday, April 9, 2015 2:35 AM

All replies

  • Please post ASP.NET questions in the ASP.NET forums: http://forums.asp.net

    Thursday, April 9, 2015 4:38 AM
  • I moved the question to ASP.NET forums already. How do I remove this question from this forums?

    Thanks.


    cy

    Thursday, April 9, 2015 1:27 PM
  • Thanks, there's no need to remove it yourself. I already moved it to the off-topic forum.
    Thursday, April 9, 2015 1:32 PM
  • Hi Mike, Thanks.

    cy

    Thursday, April 9, 2015 2:00 PM