MessageBox没有出现在Intellisense C#asp.net VS 2010中 [英] MessageBox not appearing in Intellisense C# asp.net VS 2010

查看:73
本文介绍了MessageBox没有出现在Intellisense C#asp.net VS 2010中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用 MessageBox 位它不起作用。



我在 VS 2010 C#ASP编程.NET





  if (lblStatus.Text ==   YES
{
MessageBox.Show( 贷款处理已经运行了这个月。 贷款处理,MessageBoxButtons.OK);
}









我做错了什么?





请协助



谢谢

解决方案

Message Box是Windows表单应用程序的一部分,您正试图在Web表单应用程序中使用,这就是为什么它不会出现在Intellisense中。


< blockquote>如果这是ASP.NET,就像你说的那样,那意味着一个网站:而MessageBox不能在网站上运行,因为它会出现在服务器上,而不是客户端。



因此Intellisense不提供它作为选项......


I tried using the MessageBox bit it doesn't work .

I'm Programming in VS 2010 C# ASP.NET


if (lblStatus.Text == "YES")
                  {
                    MessageBox.Show("LOAN PROCESSING HAS BEEN RUN FOR THIS MONTH.","LOAN PROCESSING",MessageBoxButtons.OK);
                  }





What am I doing wrong?


Please assist

Thanks

解决方案

Message Box is a part of Windows form application, and you are trying to use in Web form application, that's why its not appearing in you in Intellisense.


If this is ASP.NET as you say, then that implies a website: and MessageBox doesn't work on websites because it would appear at the server, not the client.

Hence Intellisense doesn't offer it as an option...


这篇关于MessageBox没有出现在Intellisense C#asp.net VS 2010中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆