惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
Microsoft Security Blog
Microsoft Security Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
V
Visual Studio Blog
宝玉的分享
宝玉的分享
IT之家
IT之家
人人都是产品经理
人人都是产品经理
T
The Blog of Author Tim Ferriss
I
InfoQ
B
Blog RSS Feed
T
Threatpost
博客园_首页
M
MIT News - Artificial intelligence
Spread Privacy
Spread Privacy
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Know Your Adversary
Know Your Adversary
U
Unit 42
Engineering at Meta
Engineering at Meta
C
Cyber Attacks, Cyber Crime and Cyber Security
月光博客
月光博客
Scott Helme
Scott Helme
T
Tor Project blog
有赞技术团队
有赞技术团队
AWS News Blog
AWS News Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Last Week in AI
Last Week in AI
S
Schneier on Security
Vercel News
Vercel News
博客园 - Franky
C
Cybersecurity and Infrastructure Security Agency CISA
L
LINUX DO - 热门话题
NISL@THU
NISL@THU
L
LangChain Blog
爱范儿
爱范儿
Google DeepMind News
Google DeepMind News
The GitHub Blog
The GitHub Blog
雷峰网
雷峰网
Latest news
Latest news
C
CXSECURITY Database RSS Feed - CXSecurity.com
Hugging Face - Blog
Hugging Face - Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
www.infosecurity-magazine.com
www.infosecurity-magazine.com
G
GRAHAM CLULEY
S
Security Affairs
A
About on SuperTechFans
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
大猫的无限游戏
大猫的无限游戏
W
WeLiveSecurity
Cisco Talos Blog
Cisco Talos Blog
罗磊的独立博客

博客园 - 老蒋

[转]silverlight打印慢的问题 Android模拟器访问google网站获取天气信息时,出现 java.net.UnknownHostException: www.google.com 错误 在Eclipse中运行Android程序报 Failed to write core dump. Minidumps are not enabled by default on client versions of Windows 解决方法 在Eclipse中Override基类行为的便捷方式 20110515041233(yyyyMMddHHmmss)时间格式,转换成yyyy-MM-dd HH:mm:ss 未能从程序集 D:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Build.Tasks.dll 加载任务“Microsoft.Build.Tasks.Delete”。 - 老蒋 [javascript]解决IE7的window.close()弹出确认提示框(转) - 老蒋 - 博客园 【转】使用ASP.NET 2.0新增加的SetFocus和MaintainScrollPositionOnPostback增强用户体验 - 老蒋 - 博客园 清除数据库日志文件 (转)按字节长度截取字符串(支持截取带HTML代码样式的字符串) asp.net 导出Excel时,解决纯数字字符串变成类似这样的 2.00908E+18 形式的代码 - 老蒋 (实战)使用ExtJs+WCF打造分行信息管理功能的一些心得 此数据库没有有效所有者,因此无法安装数据库关系图支持对象。若要继续,请首先使用“数据库属性”对话框的“文件”页或 ALTER AUTHORIZATION 语句将数据库所有者设置为有效登录名,然后再添加数据库关系图支持对象。 FileUpload控件IIS7上传限制设定方法 - 老蒋 - 博客园 IIS7.0 检测到在集成的托管管道模式下不适用的ASP.NET设置 的解决方法 江西人(一)---简介 使用C#打造自己的mp3播放器(基于Windows Media Player内核) 请教开发WinForm时输入法问题 使用MD5加密注册用户密码的简单示例 - 老蒋 - 博客园
WebPart使用问题
老蒋 · 2006-11-13 · via 博客园 - 老蒋

在微软的WebCast下载了有关WebPart的Demo
看了视频后自己做了一下,当使用DropDownList改变WebPartManage的DisplayMode时,
会出错如下错误:
 

“/DemoWebPart”应用程序中的服务器错误。

此页当前禁用指定的显示模式。请确保为当前用户启用了个性化设置。
参数名: value

说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.ArgumentException: 此页当前禁用指定的显示模式。请确保为当前用户启用了个性化设置。
参数名: value

源错误:

行 26:                 break;
            行 27:             case "d":
            行 28:                 WebPartManager1.DisplayMode = WebPartManager.DesignDisplayMode;
            行 29:                 break;
            行 30:             case "b":

源文件: e:\DemoWebPart\Default.aspx.cs    行: 28

把下载来的Demo用Vs2005打开,修改了web.config的数据库连接后运行,也是报一样的错,在google搜了,
有一个人也遇到过这样的问题,不过发出后没有人能解决的了,想发到园子里看看,有没有朋友遇到并解决过.

运行时报错的代码如下(红色部分):

protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
    {
        switch (DropDownList1.SelectedValue)
        {
            case "c":
                WebPartManager1.DisplayMode = WebPartManager.CatalogDisplayMode;
                break;
            case "e":
                WebPartManager1.DisplayMode = WebPartManager.EditDisplayMode;
                break;
            case "d":
                WebPartManager1.DisplayMode = WebPartManager.DesignDisplayMode;
                break;
            case "b":
                WebPartManager1.DisplayMode = WebPartManager.BrowseDisplayMode;
                break;
            default:
                WebPartManager1.DisplayMode = WebPartManager.BrowseDisplayMode;
                break;
        }
    }
附:在WebCast下载的Demo https://files.cnblogs.com/szflying/DemoWebPart.rar