Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6585069
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:36:57+00:00 2026-05-25T16:36:57+00:00

<asp:GridView ID=UserTable runat=server AllowPaging=False SelectedIndex=0 DataKeyNames=UserID ShowHeaderWhenEmpty=True OnRowDeleting=UserTable_RowDeleting AutoGenerateColumns=false> <Columns> <asp:TemplateField HeaderText=Edit Controls ItemStyle-Width=15%>

  • 0
    <asp:GridView ID="UserTable" runat="server" AllowPaging="False" SelectedIndex="0"   DataKeyNames="UserID" ShowHeaderWhenEmpty="True"
                            OnRowDeleting="UserTable_RowDeleting" AutoGenerateColumns="false">
    <Columns>
    <asp:TemplateField HeaderText="Edit Controls" ItemStyle-Width="15%">
    <ItemTemplate>
    <%--  <asp:LinkButton ID="lnk_Edit" ToolTip="Edit User" CommandArgument='<%# Eval("UserID") %>' CommandName="Edit1" runat="server">--%>
    <asp:ImageButton ID="img_Edit"  src="Styles/Images/Edit.jpg" runat="server"           style="border-style: none" CommandArgument='<%# Eval("UserID") %>'
                                    CommandName="Edit1"  />
<%--</asp:LinkButton>--%>
    <asp:PopupControlExtender ID="PopUCtrlExt_Edit" runat="server" DynamicServicePath=""
                                            Enabled="True" ExtenderControlID="" TargetControlID="img_Edit" PopupControlID="pnl_updateUser">
    </asp:PopupControlExtender>

I wanted to get a pop up when I click the edit image inside my grid view. When I tried with a edit image inside a link the pop up was doing post back so I had to remove the link. Now How can i get the values of the selected row and use that value in the pop up panel which has

<asp:ListBox ID="listboxE_RoleName" runat="server" DataSourceID="SurelyKnown" DataTextField="RoleName" DataValueField="RoleName"></asp:ListBox>
<asp:TextBox ID="txtE_Email" runat="server" CssClass="style23"></asp:TextBox>

I want to edit the selected value. How to populate the values of selected row in the pop up panel in client side. If possible also a fix for the pop up postback when I use the image button inside the link. Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T16:36:57+00:00Added an answer on May 25, 2026 at 4:36 pm

    Check these links

    http://mattberseth.com/blog/2007/07/modalpopupextender_example_for.html

    http://mattberseth.com/blog/2008/06/masterdetail_with_the_gridview_1.html

    http://mattberseth.com/blog/2008/04/masterdetail_with_the_gridview.html

    http://www.aspdotnet-suresh.com/2011/03/how-to-show-modalpopup-to-edit-gridview.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple gridview <asp:GridView ID=GridView1 runat=server DataKeyNames=OriginatorID AutoGenerateColumns=False AllowPaging=True OnPageIndexChanging=GridView1_PageIndexChanging PageSize=5 OnPreRender=GridView1_PreRender>
i have the following gridview <asp:GridView ID=GridView3 runat=server AllowPaging=True AllowSorting=True AutoGenerateColumns=False DataKeyNames=ID DataSourceID=CommentsDataSource> <Columns>
I have a gridview like below: <asp:GridView DataKeyNames=TransactionID AllowSorting=True AllowPaging=TrueID=grvBrokerage runat=server AutoGenerateColumns=False CssClass=datatable Width=100%
<asp:GridView ID=GridView2 runat=server AllowPaging=True AllowSorting=True AutoGenerateColumns=False DataSourceID=LinqDataSource1> <Columns> <asp:BoundField DataField=UserName HeaderText=User Name ReadOnly=True SortExpression=UserName
<asp:GridView ID=GridView2 runat=server AllowPaging=True AutoGenerateColumns=False DataSourceID=opendiarysource Font-Size=Small style=font-size: 8pt; border-top-style: solid; border-right-style: solid; border-left-style:
i have a asp.net webpage with a GridView <asp:GridView ID=grid_view runat=server AllowPaging=True AutoGenerateColumns=False BackColor=White
Below is my gridview <asp:GridView ID=GridView1 runat=server AutoGenerateColumns=False EnableModelValidation=True onrowdatabound=GridView1_RowDataBound onrowcommand=GridView1_RowCommand onrowdeleting=GridView1_RowDeleting> <asp:TemplateField HeaderText=Amount
I have a GridView : <asp:GridView ID=GridView1 runat=server AllowPaging=True GridLines=None HorizontalAlign=Left AutoGenerateColumns=False DataSourceID=SqlDataSource1 onrowcommand=GridView1_RowCommand1>
I have a GridView in my page : <asp:GridView ID=GridView1 runat=server AllowPaging=True BackColor=White AutoGenerateColumns=False
<asp:GridView ID=GridView3 runat=server Width=100% DataSourceID=SDSAllowPaging=True AutoGenerateColumns=False > <Columns> <asp:BoundField DataField=Hint HeaderText=textSortExpression=Hint /> <asp:BoundField DataField=Visi

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.