作者Nessa1103 (紫藤)
看板C_Sharp
标题[问题] aspx档中的Label cs档找不到
时间Fri Feb 27 11:29:34 2015
这个专案的.aspx档案里明明就有这个 Label1,
http://i.imgur.com/oMvN7fE.jpg
可是 Compile 的时候系统说找不到这东西orz
编译失败。
http://i.imgur.com/0FBkhpC.jpg
不过显示结果正常......我的C#怎麽了orz
我需要解决这个问题吗?
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 123.193.69.208
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/C_Sharp/M.1425007777.A.C59.html
1F:推 J002: 先砍掉原本的 再加回去试试 02/27 12:24
2F:→ Nessa1103: for Web 版本我找不到在哪里加 Label 欸 orz 02/27 14:00
3F:→ Nessa1103: 找到了。不过打到 Label 都正常,打 Label1系统就说看 02/27 14:55
4F:→ Nessa1103: 不懂了 orz 02/27 14:55
5F:→ soup514: 你看的aspx跟cs该不会是不同组吧 02/27 16:51
6F:→ Nessa1103: 同一组啊,不同组的话我早回文笑自己耍白痴了XD 02/27 16:58
7F:推 YahooTaiwan: 附上完整的 code 吧 02/27 17:02
8F:→ soup514: 看看autogen的code 跟你cs的class是否一样吧 02/27 17:23
9F:→ Nessa1103: orz 结果我重开一个全新的专案(旧的移除),就解决了 02/27 18:42
10F:→ Nessa1103: 加的动作写的程式完全一样......(倒) 02/27 18:43
11F:推 YahooTaiwan: Rebuild 就能解决的事情,不需重开专案 02/27 19:26
12F:→ YahooTaiwan: 身为 coder,要有想办法找出 root cause 的决心 02/27 19:26
13F:→ Nessa1103: Rebuild 是什麽意思呢?我重新 compile 还是都一样, 02/27 22:47
14F:→ Nessa1103: 又不小心把练完的档案砍掉,只好重头写才有原始码可以 02/27 22:48
15F:→ Nessa1103: 贴上来,意外 compile 成功。 02/27 22:48
16F:→ nfsong: runat='server' 03/19 01:00