私は、
Webフォーム(レポートビューアーサーバー側のコントロール)と
ビュー(iFrameを含む)を使用して、mvc4 WebアプリケーションでSSRSレポートを使用しています。セッションを使用してアクションからレポートするパラメータを送信しています。これが私のコードです。
コントローラのアクション コード
public ActionResult GetParamReport()
{
HttpContext.Session.Add("param","a");
Redirect("~/Contents/Reports/ReportParameter.aspx");
return View("ParamReport");
}
aspxのページロードで、次を使用してアクセスします
protected void Page_Load(object sender, EventArgs e)
{
string Parameter = HttpContext.Current.Session["param"].ToString();
}
セッションを使用したくないため、セッション以外のパラメーターを送信する他の方法はありますか。