问题描述
直接使用.cs好用,当将.cs编译dll出错.....C:>csc/t:library/out:cl.dll/R:dllsystem.dll/R:dllsystem.data.dll/R:dllsystem.web.dll/R:dllSystem.Drawing.dllcl.csMicrosoft(R)VisualC#2005Compilerversion8.00.50727.1433forMicrosoft(R)Windows(R)2005Frameworkversion2.0.50727Copyright(C)MicrosoftCorporation2001-2005.Allrightsreserved.cl.cs(34,6):errorCS0103:Thename'uploadFile'doesnotexistinthecurrentcontextcl.cs(36,1):errorCS0103:Thename'lblErrInfo'doesnotexistinthecurrentcontextcl.cs(46,41):errorCS0103:Thename'uploadFile'doesnotexistinthecurrentcontextcl.cs(46,82):errorCS0103:Thename'uploadFile'doesnotexistinthecurrentcontextcl.cs(49,1):errorCS0103:Thename'lblErrInfo'doesnotexistinthecurrentcontextcl.cs(54,1):errorCS0103:Thename'uploadFile'doesnotexistinthecurrentcontextcl.cs(55,18):errorCS0103:Thename'uploadFile'doesnotexistinthecurrentcontextcl.cs(55,59):errorCS0103:Thename'uploadFile'doesnotexistinthecurrentcontextcl.cs(58,4):errorCS0103:Thename'uploadFile'doesnotexistinthecurrentcontextcl.cs(58,64):errorCS0103:Thename'uploadFile'doesnotexistinthecurrentcontextcl.cs(173,1):errorCS0103:Thename'lblErrInfo'doesnotexistinthecurrentcontextcl.cs(195,1):errorCS0103:Thename'lblErrInfo'doesnotexistinthecurrentcontext说明.cs缺少uploadFile,lblErrInfo变量,但是在.aspx页面里我已定义并且好用,而在单独的.cs程序段里上下文联系不上,所以编译不成功,希望高人指点....急啊谢谢!
解决方案
解决方案二:
没人回答吗....顶!!1
解决方案三:
说明.cs缺少uploadFile,lblErrInfo变量,但是在.aspx页面里我已定义并且好用,编译的时候才不知道你的aspx呢你要定义在cs中啊,要不怎么编译呢在cs中定义接口,然后在页面使用分层开发啊,
解决方案四:
引用2楼virusplayer的回复:
说明.cs缺少uploadFile,lblErrInfo变量,但是在.aspx页面里我已定义并且好用,编译的时候才不知道你的aspx呢你要定义在cs中啊,要不怎么编译呢在cs中定义接口,然后在页面使用分层开发啊,
“但是在.aspx页面里我已定义并且好用!”编译可只编译.cs啊!
解决方案五:
怎么在cs中定义接口,能详细点吗,我的确是菜鸟...asp转型的,帮帮小弟吧.....谢谢!!
解决方案六:
我是菜鸟....希望得到一点点帮助
解决方案七:
up学习中
解决方案八:
ding....