Click here to Skip to main content
16,016,623 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi I have tow pages asp.net 1. default.aspx 2. popup.aspx with sqlserver database
i have grid view with 10 columns and Template Field with imagebutton1
i want when I click on imagebutton1 first: run my function OpenPopup()

<script type="text/javascript">
    function OpenPopup() {

        window.open("popup.aspx", "List", "toolbar=no, location=no,status=yes,menubar=no,scrollbars=yes,resizable=no, width=500,height=500,left=430,top=100");
        return false;
    }
</script>


and secod: value of cell[2] and cell[6] of grid view display in labels on popup.aspx
how can i do that
thanks

What I have tried:

how to get cell value of gridview and display it in another page onclientclick
Posted
Updated 30-Mar-16 6:31am
v2

1 solution

use Query string [^] to pass the values from one page another .

refer this Get ASP.Net GridView SelectedRow when clicked using JavaScript[^] for getting value from the current row of girdview.

using Request.QueryString get the values
C#
label1.Text += Request.QueryString["YourKey"];
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900