大家请帮忙 ̄

tangqingqiong 2004-07-23 04:40:29
public void wm()
{
Response.Write ("<script>window.open ('h.htm')</script>");
}
private void Button3_Click(object sender, System.EventArgs e)
{
ThreadStart worker=new ThreadStart (wm);
Thread t=new Thread (worker);
t.Start ();
}


不知为什么,出错啊
...全文
140 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
zzcwhq 2004-07-26
  • 打赏
  • 举报
回复
最后写javascript代码
lxcc 2004-07-26
  • 打赏
  • 举报
回复
private void Button3_Click(object sender, System.EventArgs e)
{
Response.Write ("<script>window.open ('h.htm')</script>");
}
tangqingqiong 2004-07-26
  • 打赏
  • 举报
回复
没人知道吗?
其实我就是想弹出一个窗口而已啊。
tangqingqiong 2004-07-23
  • 打赏
  • 举报
回复
An unhandled exception of type 'System.Runtime.Serialization.SerializationException' occurred in Unknown Module.

Additional information: The type System.Web.HttpException in Assembly System.Web, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a is not marked as serializable.


出这个错误啊?
Edison621 2004-07-23
  • 打赏
  • 举报
回复
re
newsea008 2004-07-23
  • 打赏
  • 举报
回复
直接这么做不更好
private void Button3_Click(object sender, System.EventArgs e)
{
Thread Th = new Thread(new ThreadStart(wm));
Th.IsBackground = true;
Th.start();
}

110,534

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧