hello...i did go through the msdn link but am unable to use the findcontrol for my data grid.
Frinny
I was not able to get the GridView.SelectedRow.Cells[1].Text value into my javascript. i can select the value and display it in the same page but do not know how can I pass that value to my javascript. I have a working javascript that would transfer the value to the first page. but passing the value of selected text is my problem.
- function selectcode(code) {
-
if (window.opener && !window.opener.closed)
-
window.opener.document.form2.textbx.value = code;
-
window.close();
-
}
this code now writes 'code' in my textbox, instead it should write the selected code say 1234 into my textbox.
this is my gridview code
- <asp:GridView ID="GridView" runat="server" AutoGenerateColumns="False"
-
onselectedindexchanged="GridView_SelectedIndexChanged">
-
<Columns>
-
<asp:CommandField ShowSelectButton="True" />
-
<asp:BoundField DataField="Code" HeaderText="Code" SortExpression="Code" />
-
<asp:BoundField DataField= "Name" HeaderText="Name" SortExpression="Name" />
-
</Columns>
-
-
</asp:GridView>
i am unable to put my javascript in the code to retrieve the value of selected row.
Please let me know if I am not clear. Thanks in advance.