更新面板不刷新 [英] Update Panel not refreshing

查看:95
本文介绍了更新面板不刷新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在C#asp.net的Web控件中使用更新面板"来更新网页的一部分. Web控件放置在网页中.我有提交按钮来更新内容.

问题在于,它会在第一次单击提交"按钮时更新内容,但之后会停止刷新面板.即使它正在更新数据库中的数据,更改也不会反映在页面中.当我完成刷新(CTR + F5)时,它再次可以正常工作1次.

可以帮助身体吗?

我是asp.net编程的新手.

为了让您知道我的页面看起来像这样(这是母版页的内容)


Hi,

I am using an Update Panel in web control in C# asp.net for updating one section of my web page. Web control is placed in web page. I have submit button to update the content.

Problem is it updates the content on first click of submit button, but then after it stops refreshing the panel. Even though it is updating the data in database changes is not being reflected in page. When i do complete refresh (CTR+F5) it again works fine for 1 time.

Can some body Help.

I am new to asp.net programming.

To give you the idea my page looks like this (which is a content of Master Page)


<form>
<webcontrol goes="" some="" where="" here="" in="" table="">
</form>
</webcontrol>




Web控件看起来像这样




web control looks like this

<updatepanel>
<repeater>
<itemtemplate>
<submit button="" ...="" which="" fires="" click="" event="">
</submit></itemtemplate>
</repeater>
</updatepanel>




希望这可以帮助您了解我的问题.

任何帮助将不胜感激.




Hope this will help you to understand my problem.

Any help will be highly appreciated.

推荐答案

应将提交按钮放在updatepanel中,然后刷新面板
Thw submit buttom should be placed in the updatepanel then the panel will be refreshed


这篇关于更新面板不刷新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆