关键是你在Web工程里面引用了WinForm的原因吧。
解决方案 »
- TabContainer 动态添加 TabPanel 问题?求救高手
- 如何让asp.net自动检测过期的数据,并触发某个事件
- asp.net输出html时,代码混合写还是分开写好?
- 如何读取resx文件里面的内容?
- 哪位大哥有ZedGraphWeb连接数据库的例子?
- 问个比较白痴的问题,我的.net程序写好后,生成网站,怎么在目录下什么都没看到啊,连bin目录都没有生成,放到别的服务器上也只要拷贝过去即可
- 应用C#在WEB上画折线图
- ----->>>>>>>>>>>一个关于关联下拉菜单的问题,急,高手请帮忙!!!在线等。。。。。。。。。。
- 这是什么问题啊-为什么会出现找不到“System.Web”?
- 急事!!!!!!
- 急呀!有谁知道CrystalReport的怎样实现动态设置
- 今天中国队对巴西,为中国队加油!
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient; //DataView
//using System.Windows.Forms;
using Microsoft.Web.UI.WebControls;//TreeView
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Dim aa As System.Windows.Forms.MessageBox
Dim bb As System.Windows.Forms.MessageBoxButtons = OKCancel
Dim cc As System.Windows.Forms.MessageBoxIcon = Warning
Dim MsgResult As System.Windows.Forms.DialogResult = System.Windows.Forms.DialogResult.OK
If (MsgResult = aa.Show("要連接到深圳熱線馬?", "Warning!", bb, cc, System.Windows.Forms.MessageBoxDefaultButton.Button1, System.Windows.Forms.MessageBoxOptions.DefaultDesktopOnly)) Then
Response.Redirect("http://www.szonline.net")
End If
End Sub