Add Forum capabilites to your .NET application

Monday, April 27th, 2009

Want to add a cool forum in your .net application? A forum where users can perform all the functions which are being used in the latest applications available till now? YetAnotherForum.NET An opensource project YetAnotherForum.NET is the answer to the questions raised above. YetAnotherForum.NET (YAF) is a Open Source discussion forum or bulletin board system [...] Read more »

IP Address validation in C#

Wednesday, April 1st, 2009

In this post, I have used Regular expression to validate if the IP address provided as string is valid IP Address or not. Usefull when we want user to input IP address in our application and we want to check if the IP address is corrct format or not. public bool IsValidIP(string addr) { //create [...] Read more »

Parsing an XML file from RSS feed with namespaces in C#

Tuesday, March 24th, 2009

The task is to parse a XML file retrieved from the RSS feed. Below is the sample partial XML file taken from a Leading Geographical alerts website’s RSS feeds. <?xml version="1.0" encoding="ISO-8859-1"?> <rss version="2.0" xmlns:geo="http://www.w3.org/2003/01/geo/"> <channel> <pubDate>Fri, 4 Jan 2008 09:51 GMT+1</pubDate> <item> <title>Red alert: Tropical Cyclone SINLAKU-08.</title> <description>Tropical Cyclone SINLAKU-08 .</description> <pubDate>Tue, 16 Sep [...] Read more »

New Way to Pass Querystrings into Dynamically Loaded Usercontrol in ASP.NET

Tuesday, March 24th, 2009

Problem: How to pass values into a usercontrol as querystrings in asp.net. More References to the problem as as follows: Pass querystring to user control? Pass QueryString as Integer to UserControl Solution: One Can definitely use Session Variables to give the functionality. Set the session variable value in the page and then retrieve the value [...] Read more »