在发一贴 高分悬赏 http://topic.csdn.net/u/20100731/09/c450f5c1-9353-4efb-b12f-cfef1c4c6303.html 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 1.到别人机器上试下,没问题说明引用有问题2.也有问题的话就仔细检查下代码,特别是前台的,看看标签是否完整建议搞个Visual Assist X装上 错误提示更明显 项目的webconfig是不是2.0的 控件用的是2.0+的? 应该不是这个原因 他那好像连button label都挂了 你的MasterPage继承的是不是默认的类,如果不是,改回来看看public partial class MasterPage : System.Web.UI.MasterPage另外,即使不能预览也可以直接编辑HTML再用浏览器查看调整, 我新建二个页面 都继承模版页面 前一个页面 没有继承BasePage 视图状态下是可以显示正常的 后一个页面 却无法正常显示 我猜 是不是哪个BasePage 的原因 我用的VS是10版本的 using System;using System.Collections.Generic;using System.Linq;using System.Web;namespace Patti.Web.Admin{ public class BasePage : System.Web.UI.Page { protected override void OnInit(EventArgs e) { if (AdminManager.GetAdminInfo() == null) { Response.Write("<script>window.top.location='/Admin/Login.aspx';</script>"); } } public static bool Judge(string rid, string mid, string op) { if (AdminManager.GetAdminCName() == null || AdminManager.GetAdminCName() == "") { return false; } if (rid.Trim() == "") { return false; } if (mid == "") { return false; } Dictionary<string, string> d = PowerCache.GetPowers(); string key = rid + "," + mid; if (d.ContainsKey(key)) { if (d[key].IndexOf(op) >= 0) { return true; } else { return false; } } return false; } }} GridView绑定list 操作Execl的问题 急呀 mvc架构与三层架构相比有什么优势、为什么mvc那么热乎呢 用vb开发web程序,如何开发中英文版本或更多的语言版本? 如何发布有格式的文本(在线) From 验证的问题 XP系统无法更新access数据库 提示内存不足。。进程:w3wp.exe 占用内存:36,128K <----------W3WP是啥东东?? 如何在dll中增加swf(Falsh)文件,并在页面中调用Flash 程序效率問題 TextBox的只读问题 添加用户控件缓存依赖项发生的异常?高手指正。
2.也有问题的话就仔细检查下代码,特别是前台的,看看标签是否完整建议搞个Visual Assist X装上 错误提示更明显
public partial class MasterPage : System.Web.UI.MasterPage
另外,即使不能预览也可以直接编辑HTML再用浏览器查看调整,
后一个页面 却无法正常显示
我猜 是不是哪个BasePage 的原因 我用的VS是10版本的 using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;namespace Patti.Web.Admin
{
public class BasePage : System.Web.UI.Page
{
protected override void OnInit(EventArgs e)
{
if (AdminManager.GetAdminInfo() == null)
{
Response.Write("<script>window.top.location='/Admin/Login.aspx';</script>");
} } public static bool Judge(string rid, string mid, string op)
{
if (AdminManager.GetAdminCName() == null || AdminManager.GetAdminCName() == "")
{
return false;
}
if (rid.Trim() == "")
{
return false;
}
if (mid == "")
{
return false;
}
Dictionary<string, string> d = PowerCache.GetPowers();
string key = rid + "," + mid;
if (d.ContainsKey(key))
{
if (d[key].IndexOf(op) >= 0)
{
return true;
}
else
{
return false;
}
}
return false;
}
}
}