本文介绍了访问cs中的图像按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
一开始对我的英语感到抱歉
我在CS中有此代码:
at the begining im sorry about my english
i have this code in cs:
foreach (System.Data.DataRow oDataRow in oDataTable.Rows)
{
litContent.Text = litContent.Text +
string.Format("<div>"
+ "<div class=" + "\"top\"" + ">"
+ " <div class=\"comm_info\">"
+ "<div class=\"comm_info_Title\">{0}</div>"
+ "<div class=\"LikeDislike\">"
+ "<div class=\"Count\">24</div>"
+ "<div class=\"imgbutton\">"
+ "<asp:imagebutton src=\"../Image/Like.png\" runat=\"server\" id=\"lnkLike\" onclick=\"lnkLike_OnClick\"/></div>"
+ "<div class=\"imgbutton\">"
+ "<asp:linkbutton id=\"lnkDislike\" runat=\"server\" cssclass=\"DislikeButton\" ></asp:linkbutton></div>"
+ "<div class=\"Count\">34</div></div>"
+ "<div class=\"fr_imgR\"></div>"
+ "<div class=\"comm_info_content\">"
+ "<div class=\"comm_info_name\">{0}</div>"
+ "<span class=\"comm_sep\">|</span>"
+ "<div class=\"comm_info_date\">{1}</div>"
+ "</div><div class=\"fr_imgL\"></div></div>"
+ "</p></div>"
+ "<div class=" + "\"mid\"" + ">"
+ "<div class=" + "\"in\"" + ">"
+ "<div class=" + "\"body\"" + " style=" + "\"margin-bottom: 5px;\"" + ">"
+ "{2}"
+ "</div>"
+ "</div>"
+ "</div>"
+ "<div class=" + "\"bottom\"" + ">"
+ "</div>"
+ "</div>", oDataRow["Title"].ToString(), System.Convert.ToDateTime(oDataRow["updatetime"]), oDataRow["Body"].ToString());
}
但是在运行时< asp:imagebutton和< asp:linkbutton可以正常工作,并且看不到,我无法单击它,运行运行单击功能
请帮我.
tnx
but in the run time <asp:imagebutton and <asp:linkbutton dosent work and it isnt seen and i cant click on it tu run click function
plz help me.
tnx
推荐答案
这篇关于访问cs中的图像按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!