protected void ImgPrint_Click(object sender, ImageClickEventArgs e)
{
string id = treeViewChalanNo.SelectedNode.Text;
string[] str;
try
{
str = treeViewChalanNo.SelectedNode.Text.Split('-');
id = str[0];
txtChallanNo.Text = id;
Response.Redirect("ChallanReport.aspx?ChallanNo="+txtChallanNo.Text+"&cnno="+dropCNO.Text"");
}
catch (Exception ex)
{
MessageBox.Show("Err in ImgPrint_Click(object sender, ImageClickEventArgs e)" + ex.Message + " " + txtChallanNo.Text);
}
}
try this code hope solved your problem.
thanks