如何在HTML控件中使用更新面板 [英] how to use update panel in HTML controls

查看:82
本文介绍了如何在HTML控件中使用更新面板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尊敬的先生,

如何在HTML控件中使用更新面板(不适用于服务器控件)仅HTML控件...
不会在运行时丢失其他控件数据.

给我带代码的例子.



关于mohan

解决方案

我的回答是您想在Asp.Net中做到这一点.

HTML控件不需要UpdatePanel.实际上UpdatePanel仅用于服务器控件.

但是,您可以使用传统的/核心 Ajax 从Html/JavaScript执行服务器端代码.

在下面查看有关此主题的提示/技巧. (不是广告:))
简化Asp.Net Core Ajax


Dear sir,

how to use update panel in HTML controls(Not For Server Controls)Only HTML controls...
without loss other controls data at running time.

give me examples with code.



With regards mohan

解决方案

My answer is on the guess that you want to do this in Asp.Net.

You do not need UpdatePanel for HTML controls. Infact UpdatePanel is for Server controls only.

However you may use traditional/core Ajax to execute server side code from your Html/JavaScript.

Have a look at my Tip/Trick on this topic below. (not an advertise :))
Simplifying Asp.Net Core Ajax


这篇关于如何在HTML控件中使用更新面板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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