0
自分のファイルに新しい行を追加して、ファイルが互いに下になるようにしたい。 Jsとasp.netのコードをリンクボタンで掲示します。新しい行javascriptまたはasp.net
$(qFiles).each(function (i)
{
var a = document.createElement('a');
var isSharePoint = this.isSharePoint;
var img =document.createElement('img') ;
if (isSharePoint) {
a.target = "_blank";
a.href = this.FilePath;
img.src = appPath + '/Images/pagelink_16x16.png';
}
else {
var filePath = this.FilePath;
var fileName = this.FileName;
a.onclick = function() {
downloadFile(filePath + "\\" + fileName);
};
img.src = appPath + '/Images/download_16x16.png';
}
qDiv.appendChild(img);
a.innerHTML += this.FileName;
a.className = "linkSurrogate singleLine";
qDiv.appendChild(a);
});
qDiv = $(config.jQuerySelectors.quoteFiles);
var dialog = qDiv.dialog({
autoOpen: true,
height: config.dialog.height,
width: config.dialog.width,
closeOnEscape: true,
resizable: false,
title:"Quote "+ quoteNo +" Files",
modal: true,
buttons: {
"Close": function() {
qDiv.dialog('close');
}
}
});
ここで確認できるのは、SharePointが存在するかどうかです。また、2つのファイルが表示されるダイアログもあります。私はすでにdocument.write
両方\n
と<br />
と試み、働いていなかった
<div id="quoteFiles" style="display: none">
<asp:LinkButton CssClass="linkButton" ID="downloadFile" ClientIDMode="Static" runat="server" OnClick="downloadFile_Click"></asp:LinkButton>
<asp:LinkButton CssClass="linkButton" ID="sharePoint" ClientIDMode="Static" runat="server" OnClick="downloadFile_Click"></asp:LinkButton>
<asp:Label runat="server" ID="quoteFiles" ClientIDMode="Static" Text="There are no files attached."></asp:Label>
</div>
: そしてここでは、リンクボタン付きコードです。同様に、ASPページに新しい行を追加しようとしましたが、何も動作しないようです。あなたのコードの行の後
これは、ありがとうございます! –