c# - Check read and unread message in ASP.NET -
if user has not yet accessed message, remains bold ("unread") , number should show how many message unread . if user clicks link , accesses it, goes bold unbold ("read")
<li><a href="contactform.aspx"><span class="icon16 icomoon-icon-envelop"></span><span class="txt">contact forms</span></a><span class="notification" id="txtcontactcount" runat="server">0</span></li> c# code:
string contactcount = system.getdatacell("select count(*) tblcontactform"); txtcontactcount.innertext = contactcount.tostring(); now working show total message
your sql select count(*) tblcontactform count in table. need add sort of where clause on there.

Comments
Post a Comment