Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding AJAX to MM Web Forms page?
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01228928
Message ID:
01229474
Views:
21
Greetings Kevin,

Yes, AutoPostBack is set to true on the drop-down list.

Yes, the DetailsView is bound to an ObjectDataSource. The ObjectDataSource is using the drop-down list SelectedValue as a parameter passed to Patient.GetPatientById(int patientId) which retuns a List. I've stepped through the code to confirm that the correct PatientEntity is being added to the List

Here's the SelectedIndexChanged eventhandler
protected void ddlPatients_SelectedIndexChanged(object sender, EventArgs e)
{
ObjectDataSource1.DataBind();
PatientDetailsView.DataBind();

}

Regards,

E.R.



>E.R.
>
>>It looks like the documentation for MM 2.4 for adding AJAX was outdated.
>
>I spent some time this morning updating the 2.4 documentation for ASP.NET AJAX and the updated Dev Guide is now availalbe on our web site.
>
>>I then added a script manager and UpdatePanel to a MM Web Form page that contains a drop-down list that is repopulating a DetailsView on SelectedIndexChange (via ObjectDataSource).
>>
>>I moved the DetailsView into the UpdatePanel and added a trigger for the drop-down list.
>>
>>This hasn't worked and I also tried the basic example of adding a label and button and having the button updated the label with the current time. In the AJAX templated website I created I didn't see any other references or page markup for hooling up the Ajax.
>
>Did you set the DropDownList's AutoPostBack property to true so it posts back when a new item is selected in the list?
>
>Did you data bind the DetailsView to a business object?
>
>Also, you shouldn't have to change the UpdatePanel's default UpdateMode--you should be able to leave it set to "Always".
>
>Did you create a handler for the DropDown's SelectedIndexChanged event and put code in the handler that called a business object method to populate the DetailsView?
>
>Best Regards,
Regards,

E.R. Gilmore
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform