页面未在其他页面上重定向 [英] Page is not redirecting on other page
本文介绍了页面未在其他页面上重定向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的代码是
my code is
protected void reg_report_Click(object sender, EventArgs e)
{
LinkButton lnk_regno = (LinkButton)sender;
string[] CommandArgument = lnk_regno.CommandArgument.Split(',');
Session["sn_reg_no"] = CommandArgument[0];
Session["sn_reg_sr_no"] = CommandArgument[1];
lbl_app.Text = "MOUs SIGN" + " - " + Session["sn_reg_sr_no"].ToString().Trim();
Imapdf_report.ImageUrl = "get_pdf_app_form.aspx";
mdl_pdf_report.Show();
// myframe.Attributes.Add("src", "/vc_office/Temp/" + Session["sn_reg_no"] + "draft_mous" + Session["sn_reg_sr_no"] + ".pdf");
myframe.Attributes.Add("src", "/Temp/" + Session["sn_reg_no"] + "draft_mous" + Session["sn_reg_sr_no"] + ".pdf");
}
它不在此行的其他页面重定向
Imapdf_report.ImageUrl =get_pdf_app_form.aspx;
it is not redirect on other page from this line
Imapdf_report.ImageUrl = "get_pdf_app_form.aspx";
推荐答案
为什么要这样?在您的代码中,您设置图像的原点'Imapdf_report'。要重定向到其他页面,您应该使用Respons.Redirect()方法...
Why should it? In your code, you set the origin of the image 'Imapdf_report'. To redirect to a different page you should use Respons.Redirect() method...
这篇关于页面未在其他页面上重定向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文