[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1223
  • Last Modified:

listview itemcommand button with jquery

say I have these two asp panel

<asp:Panel id=panel1 style="display:none" />

<asp:Panel id=panel2>
   <asp:Listview id=listview1>
        <asp:LinkButton runat="server" ID="link1" CommandName="Select"  />
  </asp:Listview>
</asp:Panel>

and then I have this code behind to handle the listview itemcommand event

    Protected Sub LV1_OnItemCommand(ByVal sender As Object, ByVal e As ListViewCommandEventArgs) Handles ListView1.ItemCommand
        If e.CommandName = "Select" Then

        End If
    End Sub


As you can see, the first panel "panel1" is hidden now, what should I do, to add the jquery fadein function, to let the panel1 fadein after the listview ItemCommand "Select" is occur?
Any help? tks
0
joeylu
Asked:
joeylu
  • 2
1 Solution
 
bklmnshCommented:
ScriptManager.RegisterStartupScript(Me, Me.GetType, "ScriptName", "$('#" & panel1.ClientID & "').fadeIn();", True)
0
 
joeyluAuthor Commented:
hi, tks for the reply

where should I put this line of code? into  listview itemcommand event?
0
 
joeyluAuthor Commented:
tks
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now