when i click orders in DataGrid page is not transfering to order.aspx.
private void DataGrid1_ItemCommand(object source, DataGridCommandEventArgs e)
{
if (e.CommandName == "ORD")
{
string strISBN;
string strTitle;
string strAuthor;
strISBN = e.Item.Cells[1].Text;
strTitle = e.Item.Cells[2].Text;
strAuthor = e.Item.Cells[3].Text;
Response.Redirect("order.aspx?ISBN=" + strISBN + "@ Title=" + strTitle + "@ Author=" + strAuthor);
}
}
can someone help with this.
Thanks in advance.
Loading
satya kishorePosted Feb 6, 2009, 6:32 AM
use '&' instead of '@'
try it
private void DataGrid1_ItemCommand(object source, DataGridCommandEventArgs e)
{
if (e.CommandName == "ORD")
{
string strISBN;
string strTitle;
string strAuthor;
strISBN = e.Item.Cells[1].Text;
strTitle = e.Item.Cells[2].Text;
strAuthor = e.Item.Cells[3].Text;
Response.Redirect("order.aspx?ISBN=" + strISBN + "& Title=" + strTitle + "& Author=" + strAuthor);
}
}
Bechir BejaouiPosted Jan 28, 2009, 2:03 PM
parimal patelPosted Jan 28, 2009, 11:19 AM
Bechir BejaouiPosted Jan 27, 2009, 5:27 PM