Linkbutton in asp:reapeater - all in user control, needs to register linkbuttons with ajax script manager?

Last post 11-11-2007 6:29 PM by DisturbedBuddha. 1 replies.

Sort Posts:

  • Linkbutton in asp:reapeater - all in user control, needs to register linkbuttons with ajax script manager?

    11-09-2007, 11:34 AM
    • Member
      4 point Member
    • awfarral
    • Member since 09-05-2007, 3:05 PM
    • Posts 68

    I have a master page with the ajax script manager on it.

    the master page then has a user control, which contains an asp:repeater which renders asp:LinkButtons on the page, i need them to be registered with the script manager so that they will only cause page re-renering in the content.

    The problem i am facing is getting access to the ScriptManager in the master page fron the Repeater1_ItemCommand event in the user control.

    Any thoughts, THanks

  • Re: Linkbutton in asp:reapeater - all in user control, needs to register linkbuttons with ajax script manager?

    11-11-2007, 6:29 PM
    Answer

    To programmatically access the scriptmanager: 

    Dim sm as ScriptManager
    sm = ScriptManager.GetCurrent(Page)

    When you ask a question, remember to click "mark as answered" when you get a reply which answers your question.


    My latest ASP.NET AJAX blog entries.
Page 1 of 1 (2 items)