zoukankan      html  css  js  c++  java
  • [VS2010] VB – Visual Web Part – Bug

    今天在用vb生成sharepoint 2010的visual webpart时 碰到一个怪怪的bug.

    生成一个新的solution – VB – Sharepoint 2010 – Empty project.

    image

    加入一个visual web part. 系统生成以下代码

    image

    系统生成以下代码

    <%@ 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>

    同时系统报错

    image

    第一行就报告 “system.web.extensions.updatepanel” is not defined.

    有趣的是 删除 ID=”Updatepanel1”, 一切都恢复正常了。太怪了!!!

    另外 用C#做同样的事情,就没有问题了。

  • 相关阅读:
    Vue 环境配置
    Vue-think脚手架
    搭建vue环境网站
    数组 还是 字符串
    javascript jquery console调试方法说明
    获取 stoken 或者id MVC写法
    它山之石
    Android学习笔记_44_apk安装、反编译及防治反编译
    (转)超级实用且不花哨的js代码大全
    Android学习笔记_43_网络通信之文件断点上传
  • 原文地址:https://www.cnblogs.com/by1455/p/1651659.html
Copyright © 2011-2022 走看看