我有这样的代码,我想detailMess
在确认后显示。那么,我如何div-id
在 a-href 中调用:
<a href="" onclick="return confirm('1 time count if you click OK, Are you sure?');">Show contact details</a>
<div id="detailMess" style="display: none;">
<%
string uID = "-1";
var u = Membership.GetUser();
if (u != null) { uID = u.ProviderUserKey.ToString(); }
string U1 = Convert.ToString(Model.Load.OwnerId) ?? "";
bool isOwner = uID.Equals(U1, StringComparison.OrdinalIgnoreCase);
%>
<% if ((!LDC.Common.isShowLetGoContactInfor) || (User.IsInRole("Staff")) || (isOwner))
{ %>
<%
if (Model.User != null && Model.User.Profiles == null) { Model.User.Profiles = new LDC.Domain.Profile(); }
Html.RenderPartial("ContactInfo", Model);
%>
<% }
else
{ %>
<% Html.RenderPartial("LetgoContactInfo"); %>
<%} %>
</div>
请有人帮助我!