Monday, September 24, 2007

Developer Extension To Mozilla

The Web Developer extension adds a menu and a toolbar to the browser with various web developer tools. It is designed for Firefox, Flock, Mozilla and Seamonkey, and will run on any platform that these browsers support including Windows, Mac OS X and Linux.

Monday, September 17, 2007


Speed up your web pages with YSlow a tool from Yahoo Developer Network

YSlow analyzes web pages and tells you why they're slow based on the rules for high performance web sites.

YSlow is a Firefox add-on integrated with the popular Firebug web development tool.

YSlow gives you:

* Performance report card
* HTTP/HTML summary
* List of components in the page
* Tools including JSLint

more info...

Thursday, September 06, 2007

Find string between and xml or html string

 
The following code can be usefull to search a string with in an html tag
 
private string ParseHtml(string strInput, string key)
{
string returnValue = string.Empty;

int startIndex = strInput.ToUpper().IndexOf("<" + key.ToUpper() + ">");

int endIndex = strInput.ToUpper().IndexOf("</" + key.ToUpper() + ">");

if(startIndex != -1 && endIndex != -1)

{

returnValue = strInput.Substring(startIndex + (key.Length + 2), endIndex - (startIndex + (key.Length + 2))).ToString();
}

return returnValue;

}

 


string str = "<from>jeebu@abc.com</from>";

MessageBox.Show(ParseHtml(str ,"from"));

will return jeebu@abc.com