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")

enter image description here .aspx code:

<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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -