Posted 四月 7th, 2010 by o2ho in category
技术
Entity
Max permissible size
Site Name
128 characters
Site URL
255 characters
Display name
128 characters
Connection string
384 characters
Email address
128 characters
Version numbers
064 characters
Virtual Server Friendly Name
064 characters
SQL Database Name
Posted 四月 7th, 2010 by o2ho in category
技术
bool AccessDeniedflag = SPSecurity.CatchAccessDeniedException;
SPSecurity.CatchAccessDeniedException = false;
try
{
SPList list = web.GetList(web.ServerRelativeUrl+"/Lists/ListName");
SPListItem item = list.Items;
item = "ayman-elhattab.blogspot.com";
item.Update();
}
catch(UnauthorizedAccessException ex)
{
// Redirect to your custom p
Posted 一月 21st, 2010 by o2ho in category
技术
Enterprise Portal
Web Form Web Part Use for Web Content of Type Display ( Web Form)
Web Report Web Part Use for Web Content of Type Output ( Report and Web Report)
Generic Web Part Use for Web Let
Web Menu Web Part Use f
Posted 一月 20th, 2010 by o2ho in category
技术
Point8020 Learning Solutions from SharePoint: http://www.point8020.com/Training.aspx
Posted 一月 14th, 2010 by o2ho in category
工作,
技术
/// <summary>
/// A custom editor part for picking data fields for a table web part
/// </summary>
class CustomEditorPart:EditorPart
{
#region Declarations
// In addition to other controls, etc, declare an error variable
string _errorText = string.Empty;
#endregion Declarations
#region Apply Changes
/// <summary&g
Posted 九月 17th, 2009 by o2ho in category
工作,
技术
private static String GetSmtpHost()
{
SPOutboundMailServiceInstance instance = SPContext.Current.Site.WebApplication.OutboundMailServiceInstance;
if (instance != null)
{
return instance.Server.Address;
}
instance = SPAdministrationWebApplication.Local.OutboundMailServiceInstance;
if (instance != null)
{
return instance.Server.Addres
Posted 九月 16th, 2009 by o2ho in category
工作,
技术
… 并且避免 ASP.NET 验证控件错误:
This page contains content or formatting that is not valid. You can find more information in the affected sections.
or
Input string was not in a correct format.
当创建一个WebPart来显示包含验证控件的表单时, ASP.NET 验证控件会阻止你签入和发布当前的Publishing页面.
解决方案:
Check if the web part is in edit or design mode and only add the validator i
Posted 九月 11th, 2009 by o2ho in category
工作,
技术
String formUrl = String.Format(CultureInfo.InvariantCulture, "{0}/{1}?id={2}",
SPContext.Current.Web.Url,
SPContext.Current.Web.Lists.Forms.Url, item.Id);
来源: http://www.myrocode.com/post/2009/03/20/How-get-SharePoint-2007-SpListItem-DispForm-Url.aspx
Posted 七月 16th, 2009 by o2ho in category
工作,
技术
The cause for this behavior is that there is a flag (named _spFormOnSubmitCalled) in SharePoint which prevents double form submition. This flag is set when the form is submitted and clear when the response is received.
However when exporting the response is redirected and the page is not updated, thus the flag is not cleared and page's postbacks