如何将数据列表项添加到其他页面? [英] How do I add datalist items to other pages?

查看:90
本文介绍了如何将数据列表项添加到其他页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在不回发页面的情况下将数据列表项添加到另一页.

数据列表项来自用户控件和ascx.cs

我们有导航URL.

How do I add a datalist item to another page without page postback.

Data list items are coming from a user control and ascx.cs

We are having navigate url.

推荐答案

我认为您正在填充UserControl内的数据集,并且您想填充某些控件上的数据列表.的UserControl.

如果没有PostBack,则无法填充(IMO,使用异步服务是可能的,但是非常繁琐),因为要获取数据,需要往返.

只有当您使用JSON和Webservice处理所有内容时,这才有可能.

环顾四周,您会发现许多无需回发即可填充数据的异步方法.
I think you''re filling Dataset which is inside of UserControl and you want to fill the Data List on some controls click out side of UserControl.

Without PostBack it isn''t possible(IMO It''s possible using Asynchronous service but it''s quite tedious) to fill, Because To fetch a data it needs a round trip.

That could be only possible if you''re handling everything using JSON with Webservice.

Find around a net you will find many asynchronous way to fill the data without postback.


这篇关于如何将数据列表项添加到其他页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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