dipansaha.wordpress.com
Remove html tags from string | Dipan's Blog
https://dipansaha.wordpress.com/2012/10/22/remove-html-tags-from-string
October 22, 2012. Remove html tags from string. I found the below function very useful to strip html tags from html content. Sometimes this required to search contents. Public static string StripHtml(string text) { if (String.IsNullOrWhiteSpace(text) return String.Empty; return Regex.Replace(text, * , string.Empty); }. Modify html content element’s style and store into Memory Stream using Html Agility Pack. Get first and last day of any month using C# →. Leave a Reply Cancel reply. Jyoti on Read WordPre...
dipansaha.wordpress.com
Find index from list using LINQ | Dipan's Blog
https://dipansaha.wordpress.com/2013/03/26/find-index-from-list-using-linq
March 26, 2013. Find index from list using LINQ. This post will explain how to find an index of list using LINQ. Get the first line from the Multiline content. Read wordpress blog using REST API and C# →. Leave a Reply Cancel reply. Enter your comment here. Fill in your details below or click an icon to log in:. Address never made public). You are commenting using your WordPress.com account. ( Log Out. You are commenting using your Twitter account. ( Log Out. Notify me of new comments via email.
dipansaha.wordpress.com
25 | October | 2012 | Dipan's Blog
https://dipansaha.wordpress.com/2012/10/25
Daily Archives: October 25, 2012. October 25, 2012. Get first and last day of any month using C#. Effective way to get the first and last date of the month. see below example :. Get previous month's first and last date var firstDayOfPrevMonth = new DateTime(DateTime.Today.Year, DateTime.Today.Month, 1).AddMonths(-1); var lastDayofPrevMonth = new DateTime(DateTime.Today.Year, DateTime.Today.Month, 1).AddDays(-1); / get last 6 month's first and last date var firstDay...Blog at WordPress.com.
dipansaha.wordpress.com
Calculate weekly, fortnightly, monthly dates between two dates | Dipan's Blog
https://dipansaha.wordpress.com/2012/09/03/calculate-weekly-fortnightly-monthly-dates-between-two-dates/comment-page-1
September 3, 2012. Calculate weekly, fortnightly, monthly dates between two dates. I wanted to share a function to calculate Weekly, Fortnightly, Monthly, 3 Months dates between two date. Sometimes we need functionality to send notification email to the subscribed people based on date frequency. So this function will help to calculate dates between two dates. I will go through a demo to explain this functionality. Created an aspx page with a label control to display all dates. Hope this helps…. The code ...
dipansaha.wordpress.com
08 | January | 2013 | Dipan's Blog
https://dipansaha.wordpress.com/2013/01/08
Daily Archives: January 8, 2013. January 8, 2013. Get the first line from the Multiline content. I found the following code snippent is very useful to retrive the first line from the text content. I hope this will help to others. Just want to point out this snippet will work if content is multiline. This is a basic code. Output will be :. This is a demo test. Download file with save/open dialog box using C#. Calculate weekly, fortnightly, monthly dates between two dates. Blog at WordPress.com.
dipansaha.wordpress.com
Modify html content element’s style and store into Memory Stream using Html Agility Pack | Dipan's Blog
https://dipansaha.wordpress.com/2012/09/07/modify-html-content-element-style-and-store-into-memory-stream-using-html-agility-pack
September 7, 2012. Modify html content element’s style and store into Memory Stream using Html Agility Pack. P this is a test. /p div style=width: 700px; table style=float: left; border-right: none! Look at the Screenshot below to see how it looks. Public string getFilteredText(string text) { string content = ; try { HtmlDocument doc = new HtmlDocument(); doc.LoadHtml(text); var divs = doc.DocumentNode.SelectNodes(/ div); if (divs! Null) { int divCount = 1; foreach (var div in divs) { if (divCount.Eq...
dipansaha.wordpress.com
get first and last day of any month using C# | Dipan's Blog
https://dipansaha.wordpress.com/2012/10/25/get-first-and-last-day-of-any-month-using-c
October 25, 2012. Get first and last day of any month using C#. Effective way to get the first and last date of the month. see below example :. Get previous month's first and last date var firstDayOfPrevMonth = new DateTime(DateTime.Today.Year, DateTime.Today.Month, 1).AddMonths(-1); var lastDayofPrevMonth = new DateTime(DateTime.Today.Year, DateTime.Today.Month, 1).AddDays(-1); / get last 6 month's first and last date var firstDayOfprev6Months = new DateTime(DateT...Get first and last date of month.
dipansaha.wordpress.com
Get the first line from the Multiline content | Dipan's Blog
https://dipansaha.wordpress.com/2013/01/08/get-the-first-line-from-the-content
January 8, 2013. Get the first line from the Multiline content. I found the following code snippent is very useful to retrive the first line from the text content. I hope this will help to others. Just want to point out this snippet will work if content is multiline. This is a basic code. Output will be :. This is a demo test. Download file with save/open dialog box using C#. Find index from list using LINQ →. Leave a Reply Cancel reply. Enter your comment here. Address never made public). Read Sharepoin...
dipansaha.wordpress.com
Dipan | Dipan's Blog
https://dipansaha.wordpress.com/author/dipansaha
April 5, 2016. Read WordPress Blog Using Rss feed and C#. Then use the below function to get all blog post. Var blogs = RssHelper.ReadFeed("https:/ dipansaha.wordpress.com/feed");. If you like this post then please don’t forget to give your rating. September 20, 2013. Read wordpress blog using REST API and C#. Your blog url}/posts . Your blog url = dipansaha.wordpress.com ( Make sure you don’t add http and www). Then use the below function to get all blog post. March 26, 2013. January 8, 2013. Using Syst...
dipansaha.wordpress.com
Dipan's Blog | Page 2
https://dipansaha.wordpress.com/page/2
September 7, 2012. Modify html content element’s style and store into Memory Stream using Html Agility Pack. P this is a test. /p div style=width: 700px; table style=float: left; border-right: none! Look at the Screenshot below to see how it looks. Public string getFilteredText(string text) { string content = ; try { HtmlDocument doc = new HtmlDocument(); doc.LoadHtml(text); var divs = doc.DocumentNode.SelectNodes(/ div); if (divs! Null) { int divCount = 1; foreach (var div in divs) { if (divCount.Eq...
SOCIAL ENGAGEMENT