本文介绍了如何通过html调用c-sharp函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
int i;
title = "";
for (i = 0; i < ds.Tables[0].Rows.Count; i++)
{
title = title + "<div class='one' ><div class='Solar Mobile'><h1>" + (i + 1).ToString() + "." + ds.Tables[0].Rows[i]["product_name"].ToString() + " Just Rs." + ds.Tables[0].Rows[i]["price"].ToString() + "/-<asp:ImageButton ID='ImageButton1' runat='server' ImageUrl='~/images/cart.jpg' onclick='Addtocart' /></h1></div><div class='Solar-text' >" + ds.Tables[0].Rows[i]["description"].ToString() + "</div ><div class='img'><img src='imggrab.aspx?ID=" + ds.Tables[0].Rows[i]["pk_product_id"].ToString() + "' /></div><div class='clr'></div></div>";
}
是否正确...我正试图调用
is it correct ... i''m trying to call
Addtocart
函数,但是asp图像按钮不起作用...为什么这样...?
在此先感谢
function but the asp image button does not appers... why so...?
thanks in advance
推荐答案
这篇关于如何通过html调用c-sharp函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!