Click here to Skip to main content
15,923,689 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
my code is

C#
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");
      }



it is not redirect on other page from this line
Imapdf_report.ImageUrl = "get_pdf_app_form.aspx";
Posted

1 solution

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...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900