我有一个String变量(在C#中),它包含我服务器上PDF文件的完整路径(就像"〜/ doc/help.pdf").
我希望在点击按钮,这个文件将下载到客户端计算机.
我创建了一个按钮并在C#中创建了onClick事件.现在,我应该编写哪些代码来做到这一点?
我收到此错误:
"java.lang.OutOfMemoryError: Compressed class space"
Run Code Online (Sandbox Code Playgroud)
在我弄清楚触发因素之前,我尝试禁用压缩的类指针
-XX:-UseCompressedClassPointers.
但我仍然收到此错误。这怎么可能?
谢谢!
我试着从这个网站做一个简单的例子:http: //www.programming-free.com/2013/02/gridviewrow-details-modalpopup-bootstrap.html (我删除了一些字段......只想看看是否有用.当我运行并单击'Detail'时,我只得到这样的黑色背景:http://oi40.tinypic.com/24qlgkg.jpg
这是我的asp代码:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="Shemen.WebForm1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Modal Popup using Bootstrap</title>
<link href="css/bootstrap.css" rel="stylesheet" type="text/css" />
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="js/bootstrap.js" type="text/javascript"></script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<div>
<h2 style="text-align:center;">
Display GridView Row Details in Modal Dialog using Twitter Bootstrap</h2>
<p style="text-align:center;">
Demo by Priya Darshini - Tutorial @ <a href="">Programmingfree</a> …Run Code Online (Sandbox Code Playgroud)