Asp.net programming we consider all important topic for knowledge about controls,web Services, JSON, Ajax, database, and interview related Question. In this Asp.net and sql server tutorial blog we give many examples of jquery as like How Play YouTube Video in Your Asp.net Website by URL, How to Play YouTube Videos in Asp.net by using Jquery , Jquery Change div background on mouseover in asp.net , JQuery UI Datepicker (Calendar) etc.

Thursday, February 19, 2015

How to Display items in PopUp from DataList Button Click in Asp.net:

How to Display Particular detail in PopUp from DataList Button Click in Asp.net:



You need to add the attribute during the DataList's ItemDataBound event.
Sub Item_Bound(sender As Object, e As DataListItemEventArgs)

         If e.Item.ItemType = ListItemType.Item Or _
             e.Item.ItemType = ListItemType.AlternatingItem Then

            Dim ImageButton As imgBtn = _
                 CType(e.Item.FindControl("imgbtn_Zoom"), ImageButton)

            imgBtn.Attributes.Add("onclick", "popWin()")

End If

How to Display items in PopUp from DataList Button Click in Asp.net:






Other Related Post :

No comments:

Post a Comment