Add a linkbutton in itemtemplate,define its commandname as "lnk1".when you click the linkbutton ,get data from dataset.
in datagrid's itemcommand event,write like this(if datagrid's view is same as dataset):
if(e.commandname=="lnk1")
{
int i=datagrid.currentpageindex*datagrid.pagesize+e.item.itemindex;
session["content_str"]=ds.tables[0].rows[i]["content"].tostring();
response.write("<script language=javascript>window.open("b.aspx");</script>");
}
in b.aspx's page_load
response.write(session["content_str"].tostring());
Add a linkbutton in itemtemplate,define its commandname as "lnk1".when you click the linkbutton ,get data from dataset.
in datagrid's itemcommand event,write like this(if datagrid's view is same as dataset):
if(e.commandname=="lnk1")
{
int i=datagrid.currentpageindex*datagrid.pagesize+e.item.itemindex;
session["content_str"]=ds.tables[0].rows[i]["content"]
response.write("<script language=javascript>window.open("b.aspx");</script>")
}
in b.aspx's page_load
response.write(session["content_str"].tostring());