[VS2010] VB – Visual Web Part – Bug
2010-01-19 16:42
232 查看
今天在用vb生成sharepoint 2010的visual webpart时 碰到一个怪怪的bug.
生成一个新的solution – VB – Sharepoint 2010 – Empty project.
加入一个visual web part. 系统生成以下代码
系统生成以下代码
<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="VB" AutoEventWireup="true" CodeBehind="VWPUserControl.ascx.vb" Inherits="VB_Empty.VWPUserControl" %> 加入updatepanel, 新代码如下
<asp:UpdatePanel runat="server" ID=”Updatepanel1”>
</asp:UpdatePanel>
同时系统报错
第一行就报告 “system.web.extensions.updatepanel” is not defined.
有趣的是 删除 ID=”Updatepanel1”, 一切都恢复正常了。太怪了!!!
另外 用C#做同样的事情,就没有问题了。
生成一个新的solution – VB – Sharepoint 2010 – Empty project.
加入一个visual web part. 系统生成以下代码
系统生成以下代码
<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="VB" AutoEventWireup="true" CodeBehind="VWPUserControl.ascx.vb" Inherits="VB_Empty.VWPUserControl" %> 加入updatepanel, 新代码如下
<asp:UpdatePanel runat="server" ID=”Updatepanel1”>
</asp:UpdatePanel>
同时系统报错
第一行就报告 “system.web.extensions.updatepanel” is not defined.
有趣的是 删除 ID=”Updatepanel1”, 一切都恢复正常了。太怪了!!!
另外 用C#做同样的事情,就没有问题了。
相关文章推荐
- Creating Visual Web Part Properties
- win7 卸载vs2010 后无法安装vs2008 提示 Microsoft Visual Studio Web创作组件安装失败 (转)
- 转:Creating a SharePoint Visual Web Part using Visual Studio 2010
- Beginning DotNetNuke 4.0 Website Creation in VB 2005 with Visual Web Developer 2005 Express: From No
- VS2010小Bug:找不到System.Web.Extensions.dll引用
- NetBeans6.1(6.5)Visual Web JSF 应用程序开发的一个BUG
- SharePoint开发学习笔记3——Visual Web Part及自定义配置界面
- NetBeans6.1(6.5)Visual Web JSF 应用程序开发的一个BUG
- SharePoint 2010 Step By Step: Create Visual Web Part (1)
- .ascx.g.cs文件不能生成 The name ‘InitializeControl’ does not exist in the current context - Visual Web part Sharepoint
- Web Part Templates for Microsoft Visual Studio .NET--下载地址
- Visual Studio .NET 2003 的 一个Bug(2005-5-8)
- 如何在SharePoint中配置和自定义Content Query Web Part(一)
- 这属于selenium webdriver 的bug?
- 在 Visual Studio .NET 中处理 Office 2003 Web 组件的事件
- vb.net自动发帖器二(httpwebrequest实现)
- Orchard:使用VS2010来生成一个地图Content Part
- web developer tips (4):在Visual Web Developer中增加浏览器
- 移动web前端开发之常见bug
- Lesson 2 Building your first web page: Part 2