<iframe id="ifameOne" src="../User/LogOn"></iframe>
public ActionResult Pdf()
{
return File(@"d:\test.pdf", "application/pdf");
}
<iframe src="<%= Url.Action("Pdf", "SomeController") %>"></iframe>
<script type="text/javascript">
var ImportInfo = function() {
var info = $('td.active').html();
// call controller action which parses the given string,
//checks for existence in database, and adds new row if needed
$.ajax({
url: '/controller/action',
data: { paramName: info }
})
}
$("#Import").click(ImportInfo);
</script>
<script type="text/javascript"> var ImportInfo = function() { var info = $$('td.active')[0].innerHTML; // call controller action which parses the given string: new Ajax.Request('/controller/action',{ method: 'post' parameters: { paramName: info } }) } $("#Import").click(ImportInfo); </script>
沒有留言:
張貼留言