IsPostBack控件变得清晰时的ASP.NET Web窗体 [英] ASP.NET Web Form when IsPostBack control become clear

查看:114
本文介绍了IsPostBack控件变得清晰时的ASP.NET Web窗体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

需要回传时不应该清除的香精油
我开发了一个包含两个面板控件的网页
每个面板内部都有html表,运行时,我在标签创建的控件的每一行中都在边表中添加一行.当我创建一个面板时,使另一个面板变得清晰
任何一个问题都可以建议我如何处理这种情况吗?我有很多问题.
1.在加载表单时,我要根据我在数据库中搜索值并在网格中生成的内容在网页中创建一些控件.
2.我们可以放置框架/面板/其他在发布时不应该清除的控件吗?
3.我的页面中需要几个不清楚的面板,我可以这样做吗?

谢谢
最好的问候


[edit]已删除呼喊声-OriginalGriff [/edit]

Hi everyone

Need cotnrol that should not clear when postback
I developented a web page that contain two panel controls
Every panel has html table inside, runtime I add row in side table every row I create lable control. When I create execute one panel so other panel become clear
Can any onle sugges me how can handel this situation I have so many questions.
1.while loading form I want to create some control in web page according to that I search value inside the database and result in my grid.
2.Can we put frame/panel/any other control that should not clear at the time of post ?
3.I need several panel inside my page that should not be clear can I do this?

thanks
best regards


[edit]SHOUTING removed - OriginalGriff[/edit]

推荐答案

您可以使用AJAX Updatepanel

AJAX多个更新面板,ASP.NET中的触发器 [ ^ ]
You may use AJAX Updatepanel

AJAX multiple Update Panel, Triggers in ASP.NET[^]




html表不是服务器控件,因此回发时将清除请使用updatepanel


html table is not server control so when postback happen it will clear pls use updatepanel


如果动态添加控件,它将不会保留其状态.在每次回发中,您都必须再次在面板中添加控件.使用框架不是您的问题的解决方案.我相信您应该确切地解释有关您的问题的更多信息.您可以根据需要添加任意数量的面板.问题是您对所有这些面板的处理方式.
If you are adding control dynamically, it will not retain its state. On every postback you have to add the controls in the panels again. To use frame is not the solution of your problem. I believe you should explain more about your problem what you want to exactly. You can add as many panels as you want. Question is about what you are doing with all these panels.


这篇关于IsPostBack控件变得清晰时的ASP.NET Web窗体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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