Comment box same as facebook but in asp.net -


i have created web application , have created page showing post same facebook comment box not working in asp.net.

[webmethod] public static string loadimages( int skip, int take ) {     // string image;     system.threading.thread.sleep( 2000 );     stringbuilder getimages = new stringbuilder();     // string imagespath = httpcontext.current.server.mappath("~/networking/image/");     // string sitepath = httpcontext.current.server.mappath("~/networking");     //var files = (from file in directory.getfiles(imagespath) select new { image = file.replace(sitepath, "") }).skip(skip).take(take);     int records = 0;     var files = productdatamanager.getrequiredpost( 1, 100, ref records ).skip( skip ).take( take );       foreach( var file in files ) {         string postimage = null;         if( file.postimage != "" ) {             postimage = file.postimage.replace( "\\", "/" ).substring( 13 );         }         string image = null;         if( file.postimage != "" ) {             image = file.imageurl.replace( "\\", "/" ).substring( 13 );         }         getimages.appendformat( string.format( @"                                              <div style='clear: both;'>                                 <div style='float: left;'>                                     <img src='{0}' id='userimage1' height='50' width='50' runat='server'/>                                 </div>                                 <div style='float: left; margin-left: 8px; font-family: arial; font-size: 14px; font-weight: bold;                                     color: navy;'>                                     <span id='ctl00_contentplaceholder1_gdvgrid_ctl06_username1'>{1}</span>                                 </div>                                 <div style='float: right;'>                                  </div>                             </div>                             <div style='margin-left: 70px; clear: both;'>                                 <div style='clear: both; color: black; font-family: arial; width: 400px;'>                                     <span id='txtsub1' style='display:inline-block;width:400px;font-family: arial; font-size: 15px; color: #64635d;'>{2}</span>                                 </div>                                 <div style='clear: both; font-family: arial;'>                                     <img src='{3}' width='400'/>                                 </div>                                 <div style='color: black; width: 400px; text-align: justify'>                                     <span style='font-family: arial;                                         font-size: 12px; color: #64635d; text-align: justify; line-height: 15px;'>{4}</span>                                 </div>          <div style='float: left; margin-top: 10px; margin-right: 10px;'>                 <a onclick='$find(&#39;sendmail3&#39;).show();return false;' id='ctl00_contentplaceholder1_gdvgrid_ctl{6}_btnsendenq' href='href='javascript:__dopostback(&#39;ctl00$contentplaceholder1$gdvgrid$ctl{7}$btnsendenq&#39;,&#39;&#39;)' style='font-size: 12px; color: #6d84b4;' tabindex='-1'>send enquiry</a>         </div>         <div style='float: left; margin-top: 10px; margin-right: 10px;'>             <a onclick='$find(&#39;commentdialog&#39;).show();return false;' id='ctl00_contentplaceholder1_gdvgrid_ctl{8}_btnsendenq' href='javascript:__dopostback(&#39;ctl00$contentplaceholder1$gdvgrid$ctl{9}$lnkcomment&#39;,&#39;&#39;)' style='font-size: 12px; color: #6d84b4;' tabindex='-1'>comment</a>                                 </div> <div style='display: none'>             <input type='submit' name='ctl00$contentplaceholder1$gdvgrid$ctl{10}$btncomment' value='comment' id='ctl00_contentplaceholder1_gdvgrid_ctl{11}_btncomment' style='width:100px;'>  </div>  <div style='clear: both; color: #c0c0c0; font-size: 12px; padding-top: 10px; font-weight: bold;'>                                     <span id='ctl00_contentplaceholder1_gdvgrid_ctl06_lbldate'>{5}</span>                                 </div>                             </div>                              <div style='border-bottom: 2px solid gray; padding-bottom: 10px;'>                             </div>                              ", image, file.companyidentity, file.posttitle, postimage, file.postdescription, file.createdate, file.userid, file.userid, file.scrapid, file.scrapid, file.scrapid, file.scrapid ) );     }     return getimages.tostring(); } 

you can integrate facebook comment box instead of implement own.

facebook comments box: comments box social plugin enables user commenting on site. features include moderation tools , distribution.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -