惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Threatpost
MyScale Blog
MyScale Blog
D
Docker
人人都是产品经理
人人都是产品经理
有赞技术团队
有赞技术团队
Recent Announcements
Recent Announcements
博客园 - 三生石上(FineUI控件)
大猫的无限游戏
大猫的无限游戏
博客园_首页
S
SegmentFault 最新的问题
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Microsoft Azure Blog
Microsoft Azure Blog
V
Visual Studio Blog
Stack Overflow Blog
Stack Overflow Blog
G
Google Developers Blog
F
Fortinet All Blogs
A
About on SuperTechFans
博客园 - Franky
腾讯CDC
T
Tailwind CSS Blog
量子位
雷峰网
雷峰网
Microsoft Security Blog
Microsoft Security Blog
Apple Machine Learning Research
Apple Machine Learning Research
GbyAI
GbyAI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
The Register - Security
The Register - Security
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Attack and Defense Labs
Attack and Defense Labs
酷 壳 – CoolShell
酷 壳 – CoolShell
Cyberwarzone
Cyberwarzone
T
The Exploit Database - CXSecurity.com
宝玉的分享
宝玉的分享
C
Cyber Attacks, Cyber Crime and Cyber Security
H
Help Net Security
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Cisco Talos Blog
Cisco Talos Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
SecWiki News
SecWiki News
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
Cisco Blogs
F
Full Disclosure
Y
Y Combinator Blog
S
Secure Thoughts
Webroot Blog
Webroot Blog
C
Check Point Blog
C
CERT Recently Published Vulnerability Notes
I
Intezer
Know Your Adversary
Know Your Adversary
Scott Helme
Scott Helme

博客园 - 站在天空下的猪

SqlBulkCopy批量转移数据备注 根据文本框联动下拉框(jquery 插件) - 站在天空下的猪 - 博客园 关于用FOMR提交编码的问题 jquery 图片预览插件 - 站在天空下的猪 - 博客园 自己写的一个jquery模板引擎(json比较好用) Document 对象的常用方法 今天发现梅花雨日历控件蛮好用的哟,腾讯都在用 身份证对应县及县的行政区划代码 【SQLSERVER】存储过程基础 昨天很失败 一个简单的FileUpload处理逻辑 C# 判断是否为数字 DataBinder.Eval总结 asp.net 2.0中实现防盗链 如何把HTML语句直接保存到数据库 如何取得IP/用户名等信息 “ConnectionString 属性尚未初始化”的另类解决办法 asp.net常用函数表 C#中计算两个时间的差
终于解决了一个AjaxPro无刷新的问题了,可以引用在短信方面滴asp.net 2.0
站在天空下的猪 · 2007-05-25 · via 博客园 - 站在天空下的猪

AjaxPro.2.dll
这个文件,大家都有,我就不说了哈
可能对于高手来说,这算不了什么,但是我却鼓捣了一天才弄出来滴,不容易啊
稍加改装,就能应用在短信方面
现在还有待解决滴就是怎么把短信的标题,时间、发信人显示出来,希望大家能提供一个好滴建议
谢谢了哈
.CS文件
:   

protected void Page_Load(object sender, EventArgs e)
    
{
        AjaxPro.Utility.RegisterTypeForAjax(
typeof(Admin_Top));
    }

    [AjaxPro.AjaxMethod()]
    
public string TestMehtod(string name)
    
{
        
return this.BuildMessage(name);
    }

    
protected string BuildMessage(string name)
    
{
        
return DateTime.Now.ToString() + "|||" + string.Format("Hello {0}!Welcome to AjaxPro's world.Hello {0}!Welcome to AjaxPro's world.Hello {0}!Welcome to AjaxPro's world.Hello {0}!Welcome to AjaxPro's world.Hello {0}!Welcome to AjaxPro's world.Hello {0}!Welcome to AjaxPro's world.", name);
        
//return string.Format("Hello {0}!Welcome to AjaxPro's world.Hello {0}!Welcome to AjaxPro's world.Hello {0}!Welcome to AjaxPro's world.Hello {0}!Welcome to AjaxPro's world.Hello {0}!Welcome to AjaxPro's world.Hello {0}!Welcome to AjaxPro's world.", name) ;
    }

页面文件:
function GetTopSMS()
{
    document.getElementById("ShowTopSMS").innerHTML="<img src=\"Images/loading_16x16.gif\" border=\"0\">  正在获取最新短信……"
    var serverMessage = Admin_Top.TestMehtod('jxh');
    //alert(serverMessage.value);
    document.getElementById("ShowTopSMS").innerHTML = "<marquee align=\"center\" width=\"500\" direction=\"left\" scrollamount=\"2\" onMouseOver=\"stop()\" onMouseOut=\"start()\">"+serverMessage.value+"</marquee>";
}

<script language = "javascript">
setInterval("GetTopSMS()", 10000);  
    </script>