Datagrid question
-
Hello, Thank you for reading this post. Here is my question. I have a datagrid and have 5 columns in it.The first one being should be a button column(either a button column or a template column with button is fine). The second column is lets say Email Subject, 3rd column is email date, 4th column hidden is customer_id and 5th column is email_sequence_id which is also hidden. My problem is this. When I click on the button in the datagrid i need to open a new window and go to a aspx page lets say showemail.aspx?id=custid&email_sequence_id=sequenceid where custid=column 4 of the datagrid and sequenceid=column 5 of the datagrid for that row. And this needs to open up in a new browser window. How do i do it ?? I tried using javascript and didnt work. Any suggestion will help. Please also be kind enough to give me a code sample because iam a little new to ASP.NET Thank you for reading RH
-
Hello, Thank you for reading this post. Here is my question. I have a datagrid and have 5 columns in it.The first one being should be a button column(either a button column or a template column with button is fine). The second column is lets say Email Subject, 3rd column is email date, 4th column hidden is customer_id and 5th column is email_sequence_id which is also hidden. My problem is this. When I click on the button in the datagrid i need to open a new window and go to a aspx page lets say showemail.aspx?id=custid&email_sequence_id=sequenceid where custid=column 4 of the datagrid and sequenceid=column 5 of the datagrid for that row. And this needs to open up in a new browser window. How do i do it ?? I tried using javascript and didnt work. Any suggestion will help. Please also be kind enough to give me a code sample because iam a little new to ASP.NET Thank you for reading RH
click me You can always make a button generate the popup, instead of an anchor tag, the thing is, the 'hidden' columns are not necessary, you use your databinding statements to build the URL in the column that it appears. Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )