UserProfile profile = serProfile.GetUserProfile(currentUser.UserName);
这个currentUser是什么
写全点行吗?起码测试要通过哦!
UserProfile profile = serProfile.GetUserProfile(currentUser.UserName);
UserProfile不是serProfile
re: XML 增删查改 讨厌小强 2008-11-10 15:16
//编辑节点的方法也有些问题
public static bool EditNode(string xmlPath, string id, string level, string fatherid, string name)
{
.......
GetXmlDoc(root, fatherid,ref doc); //貌似在修改父节点,而不是本节点
if (doc != null)
{
re: XML 增删查改 讨厌小强 2008-11-10 15:10
XmlNode doc = null; //定义节点
GetXmlDoc(root, id, ref doc); //获取要处理的节点
doc 没有初始化就被引用, 用的是ref, 运行时肯定会抛异常的。
--引用--------------------------------------------------
无名名: 拿不到啊!
--------------------------------------------------------
没什么问题啊,能贴下你的代码吗?
re: ASP.NET src引用的问题 Jim~ 2008-09-02 09:52
"~/" 表示根目录 只能用于服务器控件 客户端不能识别
"../" 表示上级目录 可用于客户端
"http://......" 服务器端和客户端都能用
清空IE缓存就好了..................
补充一种找控件的方法,不只在ItemCommand里得到,在一般事件中加入如下代码:
FileUpload file = (FileUpload)((DataListItem)DataList1.Controls[DataList1.Controls.Count - 1]).FindControl("FileUpload1");
经测试,同样在footer中的按钮适用