javascript如何循环获取服务器端的变量值
如题.我在服务器端循环了一下取值.(.aspx.cs代码)
DataTable dt = Connect.BindTable("SELECT SiteNo, longitude from Info");
if (dt.Rows.Count != 0)
{
for (int i = 0; i < dt.Rows.Count; i++)
{
if (dt.Rows[i]["SiteNo"].ToString() != "")
{
string name = dt.Rows[i]["SiteNo"].ToString();
string jingdu =dt.Rows[i]["longitude"].ToString()();
}
}
}
想在aspx页面上用javascript也依次取得该循环值,在地图加载的时候用到.请问该怎么取,谢谢.在线等
相关问答:
比如有一个textbox,用户输入后点button按钮时,实现用JavaScript对textbox输入信息的验证,比如验证用户输入的是否是数字。
希望将HTML代码一并写出来哈,谢谢。
HTML code:
<!DOCTYPE html PUBLIC &quo ......
var english = {"A","B","C","D","E","F","G","H","I","J","K","L","M",&qu ......
insertAuUser.jsp页面中有个 <div id="link"> </div>,我想用 out.print("link.innerHTML=\" <a href=' <%=request.getContextPath()%>/jsp/authority/au/auuser/next ......
JScript code:
<form id="myform" name="myform">
<input type='hidden' name='maxp' value='6'></input>
<input type='text' id='pageinput' onkeydown="if(e ......
C#写JAVASCRIPT 数组
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
& ......