本文介绍了如何避免在Asp.net中刷新页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友,

如何避免Asp.net中的页面刷新
===================================

我有一个包含3个文本框和登录按钮的登录页面

=======================================

用户名-Textbox1(TxtUserName)
DisplayName-Textbox2(TxtDisplayName)
密码-Textbox3(TxtPassword)

登录按钮

=========================================

输入用户名并按Tab键时,显示名称自动显示....但是页面正在刷新.

如何避免这种情况,请帮助我. THANX.

Dear Friends,

How to Avoid Page Refresh in Asp.net
====================================

I have a login page with 3 textboxes and login button

=========================================

UserName - Textbox1(TxtUserName)
DisplayName - Textbox2(TxtDisplayName)
Password - Textbox3(TxtPassword)

Login Button

============================================

when am entering UserName and pressing tab...,display name automatically displays....BUT PAGE IS REFRESHING.

how to avoid this, Please help me. THANX.

推荐答案


<asp:ScriptManager ID="SavedScriptManager" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="savedUpdatePanel" runat="server">
    <ContentTemplate>



这篇关于如何避免在Asp.net中刷新页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-28 03:30