SPS两个WEB部件链接时url作为传递参数,有时接收部件不能正常解析url。应该做编码处理。
/// <summary>
/// In this method, a part can fire any events that it requires to.
/// </summary>
public override void PartCommunicationMain()
{
if (CellReady != null)
{
CellReadyEventArgs cellReadyArgs = new CellReadyEventArgs();
cellReadyArgs.Cell = SPEncode.HtmlEncode(Url);
CellReady(this, cellReadyArgs);
}
}
/// In this method, a part can fire any events that it requires to.
/// </summary>
public override void PartCommunicationMain()
{
if (CellReady != null)
{
CellReadyEventArgs cellReadyArgs = new CellReadyEventArgs();
cellReadyArgs.Cell = SPEncode.HtmlEncode(Url);
CellReady(this, cellReadyArgs);
}
}