Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
65
Javasript alert and Infragistics asynchronous refresh panel
posted

 I apologize if I'm not posting this question in the right forum, but here's my problem.

 For this particular asp.net page that I am working on, I have three questions, and for each question the user can answer yes or no via radio buttons.  Initially, the first question is enabled, and the other questions/radio buttons are disabled.  Each question/radio button list is inside it's own Infragistics asynchronous refresh panel.  I did this because question 2 is enabled depending upon the answer to question 1, and question 3 is enabled depending upon the answer to question 2.  I did not want the entire page to be refreshed whenever a question was answered.

 If the user selects the "yes" radio button for question three, a javascript alert should be displayed to the user.  Problem is, that alert does not display.  I think the cause of this problem is the placement of the radio buttons in the asynchronous refresh panel (as an experiment, I removed all of the refresh panels, and the alert displayed when the "yes" radio button was selected for question 3).

Is there a way to make the javascript alert appear without removing the radio buttons from the asynchronous refresh panel?

Here's my code snippet, with the javascript portion in bold:

Protected Sub rbtnlstHalfMeals_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles rbtnlstHalfMeals.SelectedIndexChanged

rbtnlstHalfMeals.BorderStyle = BorderStyle.None

If rbtnlstHalfMeals.SelectedIndex = 0 Then

Response.Write("<script language='javascript'>alert('This student is ineligible because more than 50% of meals are covered by a meal ticket.');</script>")

Session("FL_PLUS_50_MEALS_CVRD") = "Y"

DisableCriteria()

Else

Session("FL_PLUS_50_MEALS_CVRD") = "N"

EnableCriteria()

End If

End Sub

 

Thank you!

  • 45049
    posted

    This looks like something that would require further research to determine what is happening. 

    Please remember that these forums area a peer-to-peer resource to share issues and ideas with other Infragistics users.  If you require official support from Infragistics, please submit a support request to Infragistics Developer Support from this page of our website.

    I suggest that you include a sample project when you submit your support request.  Developer Support will need to be able to run and debug the sample for it to be useful, and it should implement as little functionality as possible while still demonstrating the behavior you're seeing.