在JavaScript中创建动态用户控件 [英] create A dynamic user control in JavaScript

查看:69
本文介绍了在JavaScript中创建动态用户控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网格。在其中一个列中,我显示了具有Ajax评级控制的用户控件。

现在在另一列中,我打开一个弹出窗口,其中有一些其他字段的用户控件。现在我想要ajax评级应该在页面更新,如果我在弹出窗口更新它。这样做最好的方法是什么?

I have a grid. In one of the column I am showing user control which has Ajax rating control.
Now in another column I open a popup in which same user control with some other field is there. Now i want ajax rating should be updated in page if i update it in popup. What shoud be best approach to do so?

推荐答案

最好的方法是将更新的评级值从弹出窗口返回到主页面。



然后使用该评级值在主页面中更新。



从弹出窗口返回值到主页面的功能会有所不同根据您使用的弹出窗口类型。所以,搜索并实现。
The best approach will be that return the updated rating value from the popup to the main page.

Then update in the main page using that rating value.

The functionality of returning value from popup to main page will differ according to the type of popup you are using. So, search for that and implement.


这篇关于在JavaScript中创建动态用户控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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