从BulletedList菜单跳转到别的页面时出问题,救命呀。。急。。

ld2ctt1314 ld2ctt1314 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
BulletedList菜单生成没有问题,现贴上跳转的代码如下:

protected void BulletedList1_Click(object sender, BulletedListEventArgs e)
{

string sItemValue = (sender as BulletedList).Items[e.Index].Value;
string sItemText = (sender as BulletedList).Items[e.Index].Text;
string sURL = LYFunctionCs.LYFunctionCsClass.cmdScalar("SELECT url FROM yf_listitems WHERE listitem_name='" + sItemText + "' ", ConfigurationManager.ConnectionStrings["yflyzpconn"].ConnectionString); Page.ClientScript.RegisterStartupScript(this.GetType(), "", "<script language=javascript>window.open('" + sURL + "','main');</script>");
}
sURL变量输出结果为:http://localhost/aaa/payquery.aspx

页面跳转结果如图:



...全文
评论
收藏 已收藏
分享
返回顶部
ld2ctt1314
.NET社区 62,272 成员 668,968 内容