Ask a questionAsk a question
 

AnswerCan I create Web Access Ajax Custom Control?

  • Friday, October 23, 2009 8:41 AMkeunwoo Park Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Our Project has Tow Cutom Fields (A, B)  with DropDownList.
    And these fields display data from DataBase.
    When A is changed, call webservice and get DB data and B DropDownList is filled with DB Data.
    But I add changed event in A control, When event fire, raised PostBack so MessageBox is showed.
    So I want create two DropDownList controls in Ajax Update Panel.
    Is it possible? Plz, give me some advise.

Answers

  • Monday, October 26, 2009 9:32 AMRuiz YiModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     AnswerHas Code
    Hi Park,

    I modified " C:\Program Files\Microsoft Visual Studio 2008 Team System Web Access\Web\UI\Pages\WorkItems\WorkItemEdit.aspx" like following code

        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <dbz:EditWorkItem ID="we" runat="server" />
            </ContentTemplate>
        </asp:UpdatePanel><br/><br/><br/><br/>
    
    and it seems that it work well.

    In addition, I think using Ajax WebService is a better way .

    Best Regards,
    Ruiz
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Sincerely, Ruiz Yi

All Replies

  • Monday, October 26, 2009 9:32 AMRuiz YiModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     AnswerHas Code
    Hi Park,

    I modified " C:\Program Files\Microsoft Visual Studio 2008 Team System Web Access\Web\UI\Pages\WorkItems\WorkItemEdit.aspx" like following code

        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <dbz:EditWorkItem ID="we" runat="server" />
            </ContentTemplate>
        </asp:UpdatePanel><br/><br/><br/><br/>
    
    and it seems that it work well.

    In addition, I think using Ajax WebService is a better way .

    Best Regards,
    Ruiz
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Sincerely, Ruiz Yi