在从数据库获取的html页面中传递字符串值 [英] Pass a string value in html page getting from database

查看:141
本文介绍了在从数据库获取的html页面中传递字符串值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨.朋友,我的项目中有一个问题,我从数据库中获取一个字符串值,并希望在html页面中传递它,这意味着要与其他字段(例如

Hi. friends I have a problem in my project that I am getting a string value from database and wants to pass it in html page means concatenate with another fields for example

 flashvars="file=ConvertVideo/SWF/"+getname()+"&autostart=file<</pre>

here is getname my method but how to call it or concatenate here string value which it is return.

Thanks in Advance
Parveen Rathi

推荐答案

您可以使用jquery/javascript从数据库获取值.

1.调用webmethod
2.调用aspx页面
3.致电网络服务

一些很好的例子是此处 [
You can use jquery/javascript to get the value from database.

1. Call webmethod
2. Call a aspx page
3. Call web service

Some good examples are here[^]

Apply any method which is suitable to your need.


这篇关于在从数据库获取的html页面中传递字符串值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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