在innerhtml语句中使用asp.net工具箱选项

时间:2015-04-08 10:20:28

标签: javascript c# asp.net string innerhtml

我试图在InnerHtml属性中插入ASP.Net按钮:

divAppointmentsToday.InnerHtml += "<tr><td class='appoint-normal-text' height='100px' style='background-color:#f9f9f9; padding-top:20px; padding-left:40px;'>" + reader["actionreporttime"].ToString().Split(' ')[0] + "<br /> " + reader["leadname"] + " <br /> " + reader["organisation"] + "<br />Contact/Mobile :  " + reader["Contactno"] + " / " + reader["Mobile"] + "<br />Product Requested for: " + reader["productrequested"] + "<br /> Action to be taken :<span style='color:#818286'> " + reader["actionreport"].ToString() + "</span><br /> Status :<span style='color:#818286'>" + reader["status1"].ToString() + "</span><br /> Scoring :<span style='color:#818286'>" + reader["status2"].ToString() + "</span><button type=button ID=statusedit>click me</button><br/><a href='Appointments.aspx?idAppointments=" + reader["id"] + "' onClick='return confirm(\"Are you sure you want delete?\")'>  <span class='appoint-red-text'>Dismiss</span></a>  /  <a href='Prospect.aspx?id=" + reader["id"] + "#PlanOfActionn'>  <span class='appoint-red-text'>Edit</span></a><br /><br /></td></tr>";

这是我要整合的ASP.Net按钮代码:

<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />

0 个答案:

没有答案