如何将数据集从ASPX页面传递到HTML页面 [英] How to pass dataset from aspx page to html page

查看:89
本文介绍了如何将数据集从ASPX页面传递到HTML页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将数据集从一个aspx页面传递到html页面.此数据集包含许多数据,这些数据是从数据库的一个或多个表中检索的.它如何可能.请任何人帮助我

i want to pass dataset from one aspx page to html page.this dataset containg many data which are retrive from one or more table from database.how its possible.please anyone help me

推荐答案

对不起,这个问题没有道理.这就是为什么:这里没有ASPX页面与HTML页面之类的东西. "ASPX页面"仅存在于服务器端.在客户端,它被翻译成一些HTML页面(但可以是任何其他内容类型的资源).另外,还不清楚您是什么意思适用于HTML的数据集".在.NET中,有一个类System.Data.DataSet;在HTML中,没有这样的东西,HTML只是通过Web浏览器呈现为某些结构文本的文本文件.

—SA
Sorry, the question makes no sense. Here is why: there is not such thing as ASPX page vs. HTML page. "ASPX page" exists only on server side. On client side, it is translated into some HTML page (but could be a resource of any other content type). Also, it''s not clear what do you mean "dataset" applied to HTML. In .NET, there is a class System.Data.DataSet; in HTML, there is not such thing, HTML is just a text file rendered as some structure text by a Web browser.

—SA


HTML只是一种简单的标记语言,没有脚本,因此,如果您成功地传递了它,那么如何使用该数据集. .这是一个大问题...?


我的朋友,您只能使用脚本语言而不使用标记语言来使用任何服务器端数据,HTML仅用于显示目的...

对于您的解决方案,您可以使用服务器全局变量(例如会话,Cookie等)将该数据集传递到其他aspx页面...
HTML is only a simple markup language, it has no scripting so if you some how successful to pass it then how to use that data set... it''s a big question...?


My friend you can use any server side data in only scripting language not in mark up language, HTML is used for display purpose only...

for your solution you can pass that data set to other aspx page using server global variables like session,cookies etc...


HTML不理解DataSet ...
U可以将数据集从aspx转换为aspx,而不能将aspx转换为html.
HTML Don''t understand DataSet...
U can take dataset from aspx to aspx and not with aspx to html.


这篇关于如何将数据集从ASPX页面传递到HTML页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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