how to pass parameter from page to action savereport ?
Posted: Thu Feb 23, 2017 10:30 am
how to pass parameter from page to action savereport with mvc5 page?
in my index view page ,i use ajax like this : when click button,
ajax:url: '/StiRptTemplate/StiRptDesign?keyValue=' + templatepath,
StiRptTemplate controller like this:
public ActionResult StiRptDesign()
{
return View();
}
will rerurn StiRptDesign.cshtml,
StiRptTemplate controller like this:
public ActionResult SaveReportTemplate(????)
{
StiReport report = StiMvcMobileDesigner.GetReportObject(HttpContext);
report.Save(@"D:\" + report.ReportName + ".mrt");
return StiMvcMobileDesigner.SaveReportTemplateResult(HttpContext);
}
i want to know the action SaveReportTemplate how to receive parameter from url: '/StiRptTemplate/StiRptDesign?keyValue=' + templatepath?
in my index view page ,i use ajax like this : when click button,
ajax:url: '/StiRptTemplate/StiRptDesign?keyValue=' + templatepath,
StiRptTemplate controller like this:
public ActionResult StiRptDesign()
{
return View();
}
will rerurn StiRptDesign.cshtml,
StiRptTemplate controller like this:
public ActionResult SaveReportTemplate(????)
{
StiReport report = StiMvcMobileDesigner.GetReportObject(HttpContext);
report.Save(@"D:\" + report.ReportName + ".mrt");
return StiMvcMobileDesigner.SaveReportTemplateResult(HttpContext);
}
i want to know the action SaveReportTemplate how to receive parameter from url: '/StiRptTemplate/StiRptDesign?keyValue=' + templatepath?