I have two pages page1.aspx and page2.aspx. Page1 opens up page2 in a popup window. Page2 has a datagrid with a button column which is select. I have this in my selectedindexchanged:
Anyways dgi.Cells[1].Text is returning the correct value that I'm trying to pass back to page1. The problem I am having is when I send the value to page1 it comes up differently. Example Cells[1] = 123-45678 but when it goes to page1 it returns as -8888. I am pretty stumped and figured an extra pair of eyes might help me find the problem. Any tips or suggestions will be appreciated. Have a great day.
Code:
DataGridItem dgi = dtgEQ.SelectedItem;
Response.Write(@"<script language=JavaScript>opener.document.frmWO.txtEqID.value = " + dgi.Cells[1].Text +";</script>");
Anyways dgi.Cells[1].Text is returning the correct value that I'm trying to pass back to page1. The problem I am having is when I send the value to page1 it comes up differently. Example Cells[1] = 123-45678 but when it goes to page1 it returns as -8888. I am pretty stumped and figured an extra pair of eyes might help me find the problem. Any tips or suggestions will be appreciated. Have a great day.