开发者

Can't Change The Content of a Ajax Control After CallBack

开发者 https://www.devze.com 2022-12-25 00:52 出处:网络
public void RaiseCallbackEvent(String eventArgument) { // Processes a callback event on the server using the event
public void RaiseCallbackEvent(String eventArgument)
{
    // Processes a callback event on the server using the event
    // argument from the client.
    //Response.Write(eventArgument);

    printAlternativesFromAirport(eventArgument);
}

    public void printAlternativesFromAirpor开发者_如何学Ct(string airport)
{
    List<TravelPlan> alternatives = fit.Code.TextDataHelper.GetAllTravelPlansFromCity(airport);

    AlternativesAcc.Panes.Clear();
    AjaxControlToolkit.AccordionPane p = new AjaxControlToolkit.AccordionPane();
    Label header = new Label();
    header.Text = airport;
    Label content = new Label();
    content.Text = airport;
    p.HeaderContainer.Controls.Add(header);
    p.ContentContainer.Controls.Add(content);
    AlternativesAcc.Panes.Add(p);

...

Hi,

printAlternativesFromAirport method should change an accordion panel after the callback but it doesn't. Is there anything that i could set to fix this problem ? There should be stg with the page lifecycle but i can't figure it out !

Thanks

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号