asp.net线程与Timer问题
我在线程中调用了一个Timer计时器,如果线程监听到数据就触发计时器,这里遇到问题,线程虽然触发了计时器,但是页面上没有做任何反应,也没有显示,但是代码确实执行了(断点跟过了),我怀疑没有达到同步的问题,还请高手给指导一下
设置了timer的属性enabled了吗
设置了
Thread td;
void tdd()
{
Message myMessage;
while (true)
{
try
{
MessageQueue myQueue = new MessageQueue(".\\private$\\myQueue");
myQueue.Formatter = new XmlMessageFormatter(new Type[] { typeof(string) });
myMessage = myQueue.Receive();
st = myMessage.Body.ToString();
myQueue.Close();
if (st != null)
{
BS(st);
st = null;
&nbs
相关问答:
select top 12 * from Product where [id] not in (select top 12 [id] from Product)
这样可以分页,但是我在后面想加个条件
select top 12 * from Product where [id] not in (select top 12 [id] from Prod ......
在弹出框中点击一个按钮,怎么调转到另一个浏览器,并且在该浏览器打开两个页面
你的意思应该是
response.write("<script>alert('确认'); window.location.href('xxxx.aspx'); </script>"); ......
ASP.NET MVC架构发布了,你用了吗?
还在学习中
我也在学习。买书,听教程,看网上资料,下载例子,感觉听不错的,不过比起工厂模式,似乎逊色了点。。。欢迎到我博客互相学习
都用了5个版本了 从 PV1 到beta ......
我用MULTIVIEW+VIEW+FORMVIEW做输入网页,
我输入的数据要插入四个表。
要怎么做呢?
sf
事务啊
然后写sql语句咯
你的问题是UI方面的内容,这个和你插入多少张表没有什么关系的;
Transaction 控制整 ......