[{"data":1,"prerenderedAt":199},["ShallowReactive",2],{"article-everyday-i-learn-string-trim-vs-trimstring":3},{"article":4,"tags":62,"previous":77,"next":137},{"id":5,"title":6,"author":7,"body":8,"createdAt":50,"description":51,"extension":52,"img":53,"meta":54,"navigation":55,"path":56,"seo":57,"stem":58,"tags":59,"updatedAt":50,"__hash__":61},"articles\u002Farticles\u002Feveryday-i-learn-string-trim-vs-trimstring.md","Everyday I Learn - String.Trim vs Trim(string)","[object Object]",{"type":9,"value":10,"toc":46},"minimark",[11,15,18,21,24,37,40,43],[12,13,14],"p",{},"String.Trim method - Removes all occurrences of white space characters from the beginning and end of this instance.",[12,16,17],{},"Trim(var) method - returns a string with no leading or trailing spaces",[12,19,20],{},"Yes, there is a difference between these.  The String.Trim will remove any non-visible characters such as line feeds and carriage returns.",[12,22,23],{},"How I came across this was as a result of an odd exception I am getting from an application.  Randomly the NameValueCollection after a postback will have an appended or prepended line feed.",[12,25,26,27,30,31,33,34,36],{},"i.e.",[28,29],"br",{},"\nhidCustomerID: -1",[28,32],{},"\nhidCustomerNo: 0",[28,35],{},"\nhidCurrent: True    hidOrderID: -1",[12,38,39],{},"When the code behind tries to ctype(hidCurrent, Boolean) it recieves True or False with additional hidden line feeds.",[12,41,42],{},"This is within an ASP.NET 2.x web application.  I have yet to find the source of this problem but I am hoping the String.Trim() will help me out here.",[12,44,45],{},"If you have any ideas please let me know what may be going on here.",{"title":47,"searchDepth":48,"depth":48,"links":49},"",2,[],"2015-04-20T08:07:19.2000000-04:00","Learn something everyday","md","\u002Farticles\u002Fimages\u002Fu1gRsGzBFH.png",{},true,"\u002Farticles\u002Feveryday-i-learn-string-trim-vs-trimstring",{"title":6,"description":51},"articles\u002Feveryday-i-learn-string-trim-vs-trimstring",[60],"csharp","dyD86vhVOaZMdPRBPmlEH1iZtcKlN5GvmNPHl8_FRWg",[63],{"id":64,"title":65,"body":66,"description":70,"extension":52,"img":71,"meta":72,"name":60,"navigation":55,"path":73,"seo":74,"stem":75,"__hash__":76},"tags\u002Ftags\u002Fcsharp.md","Csharp",{"type":9,"value":67,"toc":68},[],{"title":47,"searchDepth":48,"depth":48,"links":69},[],null,"https:\u002F\u002Fimages.unsplash.com\u002Fphoto-1598313183973-4effcded8d5e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=675&q=80",{},"\u002Ftags\u002Fcsharp",{"description":70},"tags\u002Fcsharp","q__D01bgRc46igktetL1XSIb0CS3jpaQOtnTfdNZJyQ",{"id":78,"title":79,"author":7,"body":80,"createdAt":129,"description":70,"extension":52,"img":70,"meta":130,"navigation":55,"path":131,"seo":132,"stem":133,"tags":134,"updatedAt":129,"__hash__":136},"articles\u002Farticles\u002Fone-hundred-pushups-ndash-oh-ya-for-real.md","One Hundred Pushups oh ya for real",{"type":9,"value":81,"toc":127},[82,85,95,108,116,124],[12,83,84],{},"Back from vacation and back into the routine of work, and I am ready to get in shape.  City living and a developers' lifestyle has left my body in rough shape.",[12,86,87,88,94],{},"My wife and I recently invested in some home exercise\n",[89,90,93],"a",{"href":91,"target":92},"http:\u002F\u002Fwww.soletreadmills.com\u002Fdetails.php?name=E55&product_type=ellipticals","_blank","equipment",", and I assembled it today. ",[12,96,97,98,102,103,107],{},"I was scanning some blogs this evening and came across a couple of other individuals in similar modes.  ",[89,99,101],{"href":100,"target":92},"http:\u002F\u002Fblog.wekeroad.com\u002Fblog\u002Fone-hundred-pushups-twitter-challenge\u002F","Rob Conery"," posted about the ",[89,104,106],{"href":105,"target":92},"http:\u002F\u002Fhundredpushups.com\u002Findex.html","onehundredpushups"," ‘program’ and thought this is good timing.",[12,109,110,111,115],{},"So my goal is to do my time (2 – 30-minute sessions) on our home equipment daily as well as the 100 pushup plan.  I did the initial test and with sore arms I'm completing this post.  For my friends out there, if you also get involved and do the program with me (and complete it) I will buy and have delivered your choice of ",[89,112,114],{"href":113,"target":92},"http:\u002F\u002Fhundredpushups.com\u002Fmerchandise.html","merchandise"," from their site. ",[12,117,118,119,123],{},"Let me know if this sounds too good. I am ",[120,121,122],"strong",{},"serious",".",[12,125,126],{},"I start day 1 tomorrow.  Let me know if you like my offer.",{"title":47,"searchDepth":48,"depth":48,"links":128},[],"2015-04-20T08:07:19.3500000-04:00",{},"\u002Farticles\u002Fone-hundred-pushups-ndash-oh-ya-for-real",{"title":79,"description":70},"articles\u002Fone-hundred-pushups-ndash-oh-ya-for-real",[135],"general","Nh1uo3hIQOlVxHZAK-2sTb67Xuq73LSRwDX-kD0gaKY",{"id":138,"title":139,"author":7,"body":140,"createdAt":189,"description":190,"extension":52,"img":191,"meta":192,"navigation":55,"path":193,"seo":194,"stem":195,"tags":196,"updatedAt":189,"__hash__":198},"articles\u002Farticles\u002F75-really-useful-javascript-techniques-more.md","75 (Really) Useful JavaScript Techniques +More",{"type":9,"value":141,"toc":187},[142,145,154,160,166,172,178,184],[12,143,144],{},"A really nice collection of JavaScript tools and scripts can be found here",[12,146,147,150],{},[89,148],{"title":149,"href":149},"http:\u002F\u002Fwww.smashingmagazine.com\u002F2008\u002F09\u002F11\u002F75-really-useful-javascript-techniques\u002F",[89,151,149],{"href":149,"rel":152},[153],"nofollow",[12,155,156],{},[89,157,159],{"href":158},"http:\u002F\u002Fwww.smashingmagazine.com\u002F2007\u002F06\u002F20\u002Fajax-javascript-solutions-for-professional-coding\u002F","80+ AJAX-Solutions For Professional Coding",[12,161,162],{},[89,163,165],{"href":164},"http:\u002F\u002Fwww.smashingmagazine.com\u002F2008\u002F04\u002F15\u002F60-more-ajax-and-javascript-solutions-for-professional-coding\u002F","60 More AJAX- and Javascript Solutions For Professional Coding",[12,167,168],{},[89,169,171],{"href":170},"http:\u002F\u002Fwww.smashingmagazine.com\u002F2007\u002F05\u002F18\u002F30-best-solutions-for-image-galleries-slideshows-lightboxes\u002F","30 Scripts For Galleries, Slideshows and Lightboxes",[12,173,174],{},[89,175,177],{"href":176},"http:\u002F\u002Fwww.smashingmagazine.com\u002F2007\u002F06\u002F12\u002Ftooltips-scripts-ajax-javascript-css-dhtml\u002F","40+ Tooltips Scripts With AJAX, JavaScript & CSS",[12,179,180],{},[89,181,183],{"href":182},"http:\u002F\u002Fwww.smashingmagazine.com\u002F2007\u002F05\u002F30\u002Ftables-and-data-grids-with-ajax-dhtml-javascript\u002F","Data Grids with AJAX, DHTML and JavaScript",[12,185,186],{},"All these resources are very good and certainly something here for everyone.",{"title":47,"searchDepth":48,"depth":48,"links":188},[],"2015-04-20T08:07:19.0000000-04:00","A really nice collection of JavaScript tools and scripts can be found here.","\u002Farticles\u002Fimages\u002F28QUDU0HYd.png",{},"\u002Farticles\u002F75-really-useful-javascript-techniques-more",{"title":139,"description":190},"articles\u002F75-really-useful-javascript-techniques-more",[197],"javascript","0sO-yyldLtzjQCHlwmXdN-AiCLoCZv1PxMvU0AsKUkM",1781574763325]