如何将ASP.NET后台页面中对象(4个Demo)的值传递到前台中,使用JS脚本接收?
usingSystem;usingSystem.Collections;usingSystem.Collections.Generic;usingSystem.Confi...
using System;
using System.Collections;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
namespace Data_Yx_LTU
{
public partial class _Default : System.Web.UI.Page
{
Data_Yx_LTU Demo1= new Data_Yx_LTU(true, "A相电流", "C相电压", "0.9");
Data_Yx_LTU Demo2 = new Data_Yx_LTU(false, "C相电流", "B相电压", "0.96");
Data_Yx_LTU Demo3= new Data_Yx_LTU(true, "B相电流", "A相电压", "0.91");
Data_Yx_LTU Demo4= new Data_Yx_LTU(true, "A相电流", "B相电压", "0.92");
protected void Page_Load(object sender, EventArgs e)
{
}
}
} 展开
using System.Collections;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
namespace Data_Yx_LTU
{
public partial class _Default : System.Web.UI.Page
{
Data_Yx_LTU Demo1= new Data_Yx_LTU(true, "A相电流", "C相电压", "0.9");
Data_Yx_LTU Demo2 = new Data_Yx_LTU(false, "C相电流", "B相电压", "0.96");
Data_Yx_LTU Demo3= new Data_Yx_LTU(true, "B相电流", "A相电压", "0.91");
Data_Yx_LTU Demo4= new Data_Yx_LTU(true, "A相电流", "B相电压", "0.92");
protected void Page_Load(object sender, EventArgs e)
{
}
}
} 展开
2个回答
展开全部
一楼方法可行,你还可用隐藏域接收值,再用JS获取。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询