Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Gridview linkButton and Modal Popup Extender

Gridview linkButton and Modal Popup Extender

Scheduled Pinned Locked Moved ASP.NET
sysadminhelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sarfaraj Ahmed
    wrote on last edited by
    #1

    Hello Everybody This is the second time im posting same problem. What I want to do is, On my gridView I have a linkButton name linkSelect if you click it then will send memberID for memberDetails (which will fill details view inside a panel called by popup extender) Im giving you my code: ASPX CODE FOR GridView: <asp:GridView ID="gvBorrowedBooks" runat="server" AutoGenerateColumns="False" Style="font-size: small; font-family: Verdana" Width="100%" Visible="False"> <Columns> <asp:TemplateField HeaderText="Sl.No."> <ItemTemplate> <asp:Label ID="lblSlNo" runat="server"></asp:Label> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="MemberID"> <ItemTemplate> <asp:HyperLink ID="linkMemberID" runat="server">[linkMemberID]</asp:HyperLink> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="BookID"> <ItemTemplate> <asp:HyperLink ID="linkBookID" runat="server">[linkBookID]</asp:HyperLink> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Due Date"> <ItemTemplate> <asp:Label ID="lblDueDate" runat="server"></asp:Label> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Delay"> <ItemTemplate> <asp:Label ID="lblDaysDelay" runat="server"></asp:Label> </ItemTemplate> </asp:TemplateField> asp:TemplateField <ItemTemplate> <asp:LinkButton ID="linkSelect" runat="server" ForeColor="#C04000" CommandName="Select" >Select</asp:LinkButton> <cc1:ModalPop

    F 1 Reply Last reply
    0
    • S Sarfaraj Ahmed

      Hello Everybody This is the second time im posting same problem. What I want to do is, On my gridView I have a linkButton name linkSelect if you click it then will send memberID for memberDetails (which will fill details view inside a panel called by popup extender) Im giving you my code: ASPX CODE FOR GridView: <asp:GridView ID="gvBorrowedBooks" runat="server" AutoGenerateColumns="False" Style="font-size: small; font-family: Verdana" Width="100%" Visible="False"> <Columns> <asp:TemplateField HeaderText="Sl.No."> <ItemTemplate> <asp:Label ID="lblSlNo" runat="server"></asp:Label> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="MemberID"> <ItemTemplate> <asp:HyperLink ID="linkMemberID" runat="server">[linkMemberID]</asp:HyperLink> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="BookID"> <ItemTemplate> <asp:HyperLink ID="linkBookID" runat="server">[linkBookID]</asp:HyperLink> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Due Date"> <ItemTemplate> <asp:Label ID="lblDueDate" runat="server"></asp:Label> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Delay"> <ItemTemplate> <asp:Label ID="lblDaysDelay" runat="server"></asp:Label> </ItemTemplate> </asp:TemplateField> asp:TemplateField <ItemTemplate> <asp:LinkButton ID="linkSelect" runat="server" ForeColor="#C04000" CommandName="Select" >Select</asp:LinkButton> <cc1:ModalPop

      F Offline
      F Offline
      firozu
      wrote on last edited by
      #2

      Sarfaraj Ahmed wrote:

      Protected Sub FillMemberDetails(i want to send memberID here when i click linkSelect button)

      Set LinkButton.CommandArgument = _bbMembers.MemberID.ToString() in the GridView_RowDataBound function and fetch this memberID in the RowCommand Event like dim memberID as string = e.CommandArgument Now call the Protected Sub FillMemberDetails(memberID) function in the RowCommand event. Hope this works for you!!

      S 1 Reply Last reply
      0
      • F firozu

        Sarfaraj Ahmed wrote:

        Protected Sub FillMemberDetails(i want to send memberID here when i click linkSelect button)

        Set LinkButton.CommandArgument = _bbMembers.MemberID.ToString() in the GridView_RowDataBound function and fetch this memberID in the RowCommand Event like dim memberID as string = e.CommandArgument Now call the Protected Sub FillMemberDetails(memberID) function in the RowCommand event. Hope this works for you!!

        S Offline
        S Offline
        Sarfaraj Ahmed
        wrote on last edited by
        #3

        thank you very much for your help

        Sarfarj Ahmed

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups