如何使用asp.net将数据库值带到html页面 [英] How to take database values to html page using asp.net

查看:244
本文介绍了如何使用asp.net将数据库值带到html页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

请帮我解决.
我正在尝试将值从asp引入到html,但是我的代码都无法正常工作.

我要在其中创建一个社区站点,我想不显示主页中每个位置的成员所属的任何成员.

我在html页面中做了一个树状视图.现在,我想在那边显示属于该位置的成员数.因此,如何从表格中获取计数以及如何在html页面中显示计数.

请帮帮我.

例如
o印度(70)
喀拉拉邦(15)
孟买(15)
德里(40)
o欧洲(20)
挪威(20)

在此先谢谢您.

Hi everyone ,

Please help me with a solution.
I am trying to bring values from asp to html but none of my code is working.

I am creating a community site in-which,I want to display no of members belongs to each place in the home page

And i made a tree view in html page .Now i want to display the count of members belongs to that place on the side of that. So how to take the count from the table and how to display it in html page.

please help me.

for example
o India(70)
 Kerala(15)
 Mumbai(15)
 Delhi(40)
o Europe(20)
 Norway(20)

Thanks in advance.

推荐答案

将页面扩展名从HTML更改为Asp.net类型,所有值都可以访问.

使用jquery从asp页面获取值并将其显示在HTML页面中.
其他
过去代码,看看吧.
Change page extension from HTML to Asp.net type and all values are accessible.
OR
Use jquery to get values from asp page and show it in your HTML page.
OTHERWISE
Past your code and let see.


这篇关于如何使用asp.net将数据库值带到html页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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