ITeye博客

AJAX判断用户名是否被注册

hsys · 2009-11-16 12:43 · Ajax · C · C++ · Ajax · C# · thread · Markdown

用的标签有ScriptManager,UpdatePanel,UpdateProgress ,主要的是UpdatePanel中的Triggers属性一定要对。 前台代码 [code="C#"]

正在更新中...

[/code] 后台代码 [code="C#"] protected void txtName_TextChanged(object sender, EventArgs e) { System.Threading.Thread.Sleep(2000); //为了看清楚UpdateProgress的过程 if (txtName.Text == "123") { ltlName.Text = "已经被注册"; } else { ltlName.Text = "可以注册"; } } [/code]

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。