开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜