- C# code
<input type="text" id="t1p1z11" runat="server" class="imgbutton" value="0" title="1厅1排11座" readonly="readonly">
如题
------解决方案--------------------------------------------------------
请使用 t1p1z11.Attributes["title"];
------解决方案--------------------------------------------------------
http://topic.csdn.net/u/20120815/10/82a5a843-0ae4-4d20-b532-4bd2bb13fcb0
在你上一个帖子里面你不是采取了加runat="server" 变为服务器控件了吗?
<input type="text" id="t1p1z11" runat="server" class="imgbutton" value="0" title="1厅1排11座" readonly="readonly">
protected void Button1_Click(object sender, EventArgs e)
{
Response.Write(t1p1z11.Attributes["title"]);
}
输出1厅1排11座