关闭sharepoint对话框后如何刷新父页面?这是我打开弹出窗口的编码.
<input type="button" value="Add" class="button submit" style="width: 80px" onclick="javascript:OpenAttachmentUpload()" />
<script type="text/javascript">
//User Defined Function to Open Dialog Framework
function OpenAttachmentUpload() {
var strPageURL = '<%= ResolveClientUrl("~/Dialogs/AttachUpload.aspx") %>';
//OpenFixCustomDialog(strPageURL, "Attachment");
OpenCustomDialog(strPageURL, 350, 200, "Attachment");
return false;
}
</script>
Run Code Online (Sandbox Code Playgroud)
这是脚本.
function OpenCustomDialog(dialogUrl, dialogWidth, dialogHeight, dialogTitle, dialogAllowMaximize, dialogShowClose) {
var options = {
url: dialogUrl,
allowMaximize: dialogAllowMaximize,
showClose: dialogShowClose,
width: dialogWidth,
height: dialogHeight,
title: dialogTitle,
dialogReturnValueCallback: Function.createDelegate(null, CloseCallback3)
};
SP.UI.ModalDialog.showModalDialog(options);
}
Run Code Online (Sandbox Code Playgroud)
打开它后,当我关闭弹出窗口(〜/ Dialogs/AttachUpload.aspx)时,我想刷新父页面.我该怎么做?我谷歌并看到SP.UI.ModalDialog.RefreshPage但仍然找不到我的答案.谢谢.
Ps我对SharePoint不是很了解.
我开始学习设计模式.现在我理解了一点,但对我来说有很多困惑.策略DP和工厂方法DP有什么区别?对我来说,他们看起来都一样.
我正在学习设计模式并找到了Builder设计模式.这种设计模式有什么好处,我什么时候应该使用它?我浏览www.dofactory.com和www.blackwasp.com,但仍然不了解其好处.顺便说一下,我是设计模式的新手,所以请用简单的方法解释一下.
可能重复:
C中使用的数据类型
嗨,我正在从Linux移植到Visual C++.我发现了很多错误.什么是u_int32_t?我在Visual C++中找不到它?它只在Linux中可用吗?我应该在Visual C++中使用哪种类型?提前致谢 !!!
凯文
CamlQuery query = new CamlQuery();
query.ViewXml = @"<View>"
+ "<Query>"
+ "<Where><Eq><FieldRef Name='Name' /><Value Type='Text'>"
+ fileName
+ "</Value>"
+ "</Eq>"
+ "</Where>"
+ "</Query>"
+ "</View>";
ListItemCollection item = list.GetItems(query);
clientContext.Load(item);
clientContext.ExecuteQuery();
Run Code Online (Sandbox Code Playgroud)
此查询给了我错误一个或多个字段类型未正确安装.转到列表设置页面以删除这些字段.
如果我用<Where><Eq><FieldRef Name='Title' /><Value Type='Text'>而不是Name,那就没关系.
它出什么问题了 ?列表中有名称.
提前致谢 !!!
我试图从sharepoint下载文件.但是在我下载这个文件后,我无法点击其他按钮.我的编码出了什么问题?
这是我的第一条路.
Run Code Online (Sandbox Code Playgroud)Response.AppendHeader("content-disposition", "attachment; filename= " + fileName); Response.ContentType = "text/plain"; Response.WriteFile(Server.MapPath("~/" + fileName)); Response.End();
这是我的第二种方式
Run Code Online (Sandbox Code Playgroud)byte[] bytes = System.IO.File.ReadAllBytes("D:\\" + fileName); Response.ClearContent(); Response.ClearHeaders(); Response.AddHeader("Content-Type", "application/octet-stream"); Response.AddHeader("Content-Length", bytes.Length.ToString()); Response.AddHeader("content-disposition", "attachment; filename= " + fileName); Response.BinaryWrite(bytes); Response.Flush(); Response.End();
我甚至评论Response.End()但仍然是相同的结果.
还有其他方法我应该尝试吗?
任何帮助将非常感激.事实上,我几天前发布了这个问题,但只有一个人给了我第二种尝试方法,但它仍然没有用.
谢谢.
UPDATE
这是GridView下的GridView.
<asp:GridView ID="gvGiro" Width="100%" runat="server" GridLines="Both" AllowPaging="false" CssClass="form-table" ShowHeader="false"
AllowSorting="false" AutoGenerateColumns="false" OnRowDataBound="gvGiro_RowDataBound">
<Columns>
<asp:TemplateField ItemStyle-Width="20%" ItemStyle-HorizontalAlign="Center">
<ItemTemplate>
<asp:Label ID="lblValueDate" Text='<%# getDate(Eval("ValueDate")) %>' runat="server" />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField>
<ItemTemplate>
<asp:GridView ID="gvDetail" runat="server" AllowPaging="false" AllowSorting="false"
CssClass="list-table border" HeaderStyle-CssClass="header" AutoGenerateColumns="false">
<Columns> …Run Code Online (Sandbox Code Playgroud) SharePoint中的列表和内容类型之间有什么区别?
对我来说,它几乎是一样的.
我看内容类型是一种特殊的List?
可以这样看吗?
还有什么不同之处?
顺便说一下,我是SharePoint的初学者.
我们应该多久回收一次应用程序池?
有人告诉我,我应该每24小时回收一次应用程序池吗?
为什么我需要回收应用程序池?
我们会得到什么样的好处?
嗨,我是C语言的新手,发现了malloc功能.我应该什么时候使用它?在我的工作中,有人说你必须在这种情况下使用malloc,但是其他人说在这种情况下你不需要使用它.所以我的问题是:我什么时候应该使用malloc?这对你来说可能是一个愚蠢的问题,但对于一个不熟悉C的程序员来说,这很令人困惑!
sharepoint ×4
c ×2
c# ×2
c++ ×2
visual-c++ ×2
asp.net ×1
caml ×1
dialog ×1
download ×1
iis ×1
malloc ×1
modal-dialog ×1