<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Dreamcatchernick&#039;s Blog</title>
	<atom:link href="http://dreamcatchernick.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://dreamcatchernick.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Sat, 06 Nov 2010 12:37:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='dreamcatchernick.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Dreamcatchernick&#039;s Blog</title>
		<link>http://dreamcatchernick.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://dreamcatchernick.wordpress.com/osd.xml" title="Dreamcatchernick&#039;s Blog" />
	<atom:link rel='hub' href='http://dreamcatchernick.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Sys.WebForms.PageRequestManagerParserErrorException &#8211; what it is and how to avoid it</title>
		<link>http://dreamcatchernick.wordpress.com/2010/11/06/sys-webforms-pagerequestmanagerparsererrorexception-what-it-is-and-how-to-avoid-it/</link>
		<comments>http://dreamcatchernick.wordpress.com/2010/11/06/sys-webforms-pagerequestmanagerparsererrorexception-what-it-is-and-how-to-avoid-it/#comments</comments>
		<pubDate>Sat, 06 Nov 2010 12:37:25 +0000</pubDate>
		<dc:creator>dreamcatchernick</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dreamcatchernick.wordpress.com/?p=45</guid>
		<description><![CDATA[Sys.WebForms.PageRequestManagerParserErrorException &#8211; what it is and how to avoid it If you&#8217;ve used the Microsoft ASP.NET AJAX UpdatePanel control, there&#8217;s a good chance you&#8217;ve hit the &#8220;Sys.WebForms.PageRequestManagerParserErrorException&#8221; error. What&#8217;s a PageRequestManagerParserErrorException? The UpdatePanel control uses asynchronous postbacks to control which parts of the page get rendered. It does this using a whole bunch of JavaScript [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamcatchernick.wordpress.com&amp;blog=9378682&amp;post=45&amp;subd=dreamcatchernick&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Sys.WebForms.PageRequestManagerParserErrorException &#8211; what it is and how to avoid it</p>
<p>If you&#8217;ve used the Microsoft ASP.NET AJAX UpdatePanel control, there&#8217;s a good chance you&#8217;ve hit the &#8220;Sys.WebForms.PageRequestManagerParserErrorException&#8221; error.</p>
<p>What&#8217;s a PageRequestManagerParserErrorException?</p>
<p>The UpdatePanel control uses asynchronous postbacks to control which parts of the page get rendered. It does this using a whole bunch of JavaScript on the client and a whole bunch of C# on the server. Asynchronous postbacks are exactly the same as regular postbacks except for one important thing: the rendering. Asynchronous postbacks go through the same life cycles events as regular pages (this is a question I get asked often). Only at the render phase do things get different. We capture the rendering of only the UpdatePanels that we care about and send it down to the client using a special format. In addition, we send out some other pieces of information, such as the page title, hidden form values, the form action URL, and lists of scripts.</p>
<p>As I mentioned, this is rendered out using a special format that the JavaScript on the client can understand. If you mess with the format by rendering things outside of the render phase of the page, the format will be messed up. Perhaps the most common way to do this is to call Response.Write() during Page&#8217;s Load event, which is something that page developers often do for debugging purposes.</p>
<p>The client ends up receiving a blob of data that it can&#8217;t parse, so it gives up and shows you a PageRequestManagerParserErrorException. Here&#8217;s an example of what the message contains:</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Microsoft Internet Explorer<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.</p>
<p>Details: Error parsing near &#8216;Hello, World!106|upd&#8217;.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
OK<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>If you ask me, this error message is not all that bad. After all, I&#8217;m the one that made it <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  The details indicate what was being parsed when it decided to give up. You can see the part of the text from my Response.Write(), and immediately after that is part of the special format I keep mentioning.</p>
<p>Why do I keeping getting a PageRequestManagerParserErrorException?</p>
<p>Well, chances are you&#8217;re doing one of the things mentioned in the error message. Here are the most common reasons and why they don&#8217;t work:</p>
<p>   1.</p>
<p>      Calls to Response.Write():<br />
      By calling Response.Write() directly you are bypassing the normal rendering mechanism of ASP.NET controls. The bits you write are going straight out to the client without further processing (well, mostly&#8230;). This means that UpdatePanel can&#8217;t encode the data in its special format.<br />
   2.</p>
<p>      Response filters:<br />
      Similar to Response.Write(), response filters can change the rendering in such a way that the UpdatePanel won&#8217;t know.<br />
   3.</p>
<p>      HttpModules:<br />
      Again, the same deal as Response.Write() and response filters.<br />
   4.</p>
<p>      Server trace is enabled:<br />
      If I were going to implement trace again, I&#8217;d do it differently. Trace is effectively written out using Response.Write(), and as such messes up the special format that we use for UpdatePanel.<br />
   5.</p>
<p>      Calls to Server.Transfer():<br />
      Unfortunately, there&#8217;s no way to detect that Server.Transfer() was called. This means that UpdatePanel can&#8217;t do anything intelligent when someone calls Server.Transfer(). The response sent back to the client is the HTML markup from the page to which you transferred. Since its HTML and not the special format, it can&#8217;t be parsed, and you get the error.</p>
<p>How do I avoid getting a PageRequestManagerParserErrorException?</p>
<p>To start with, don&#8217;t do anything from the preceding list! Here&#8217;s a matching list of how to avoid a given error (when possible):</p>
<p>   1.</p>
<p>      Calls to Response.Write():<br />
      Place an  or similar control on your page and set its Text property. The added benefit is that your pages will be valid HTML. When using Response.Write() you typically end up with pages that contain invalid markup.<br />
   2.</p>
<p>      Response filters:<br />
      The fix might just be to not use the filter. They&#8217;re not used very often anyway. If possible, filter things at the control level and not at the response level.<br />
   3.</p>
<p>      HttpModules:<br />
      Same as response filters.<br />
   4.</p>
<p>      Server trace is enabled:<br />
      Use some other form of tracing, such as writing to a log file, the Windows event log, or a custom mechanism.<br />
   5.</p>
<p>      Calls to Server.Transfer():<br />
      I&#8217;m not really sure why people use Server.Transfer() at all. Perhaps it&#8217;s a legacy thing from Classic ASP. I&#8217;d suggest using Response.Redirect() with query string parameters or cross-page posting.</p>
<p>Another way to avoid the parse error is to do a regular postback instead of an asynchronous postback. For example, if you have a button that absolutely must do a Server.Transfer(), make it do regular postbacks. There are a number of ways of doing this:</p>
<p>   1.</p>
<p>      The easiest is to simply place the button outside of any UpdatePanels. Unfortunately the layout of your page might not allow for this.<br />
   2.</p>
<p>      Add a PostBackTrigger to your UpdatePanel that points at the button. This works great if the button is declared statically through markup on the page.<br />
   3.</p>
<p>      Call ScriptManager.RegisterPostBackControl() and pass in the button in question. This is the best solution for controls that are added dynamically, such as those inside a repeating template.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dreamcatchernick.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dreamcatchernick.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dreamcatchernick.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dreamcatchernick.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dreamcatchernick.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dreamcatchernick.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dreamcatchernick.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dreamcatchernick.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dreamcatchernick.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dreamcatchernick.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dreamcatchernick.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dreamcatchernick.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dreamcatchernick.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dreamcatchernick.wordpress.com/45/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamcatchernick.wordpress.com&amp;blog=9378682&amp;post=45&amp;subd=dreamcatchernick&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dreamcatchernick.wordpress.com/2010/11/06/sys-webforms-pagerequestmanagerparsererrorexception-what-it-is-and-how-to-avoid-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/47f5ab767510e9050b250746d2f469be?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dreamcatchernick</media:title>
		</media:content>
	</item>
		<item>
		<title>My new project using MVC</title>
		<link>http://dreamcatchernick.wordpress.com/2009/11/10/my-new-project-using-mvc/</link>
		<comments>http://dreamcatchernick.wordpress.com/2009/11/10/my-new-project-using-mvc/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 00:03:02 +0000</pubDate>
		<dc:creator>dreamcatchernick</dc:creator>
				<category><![CDATA[.NET 2.0]]></category>

		<guid isPermaLink="false">http://dreamcatchernick.wordpress.com/?p=36</guid>
		<description><![CDATA[i use my free time to create ASP.NET MVC content management portals Still developing now here i post a screen shot to my blog new update today add article page<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamcatchernick.wordpress.com&amp;blog=9378682&amp;post=36&amp;subd=dreamcatchernick&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>i use my free time to create ASP.NET MVC content management portals</p>
<p>Still developing now</p>
<p>here i post a screen shot to my blog</p>
<p><img class="alignnone size-full wp-image-37" title="adminportals" src="http://dreamcatchernick.files.wordpress.com/2009/11/adminportals.jpg?w=600&#038;h=347" alt="adminportals" width="600" height="347" /></p>
<h2>new update today</h2>
<h2>add article page</h2>
<p><img class="alignnone size-full wp-image-41" title="update" src="http://dreamcatchernick.files.wordpress.com/2009/11/update.jpg?w=600&#038;h=479" alt="update" width="600" height="479" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dreamcatchernick.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dreamcatchernick.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dreamcatchernick.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dreamcatchernick.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dreamcatchernick.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dreamcatchernick.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dreamcatchernick.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dreamcatchernick.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dreamcatchernick.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dreamcatchernick.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dreamcatchernick.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dreamcatchernick.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dreamcatchernick.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dreamcatchernick.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamcatchernick.wordpress.com&amp;blog=9378682&amp;post=36&amp;subd=dreamcatchernick&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dreamcatchernick.wordpress.com/2009/11/10/my-new-project-using-mvc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/47f5ab767510e9050b250746d2f469be?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dreamcatchernick</media:title>
		</media:content>

		<media:content url="http://dreamcatchernick.files.wordpress.com/2009/11/adminportals.jpg" medium="image">
			<media:title type="html">adminportals</media:title>
		</media:content>

		<media:content url="http://dreamcatchernick.files.wordpress.com/2009/11/update.jpg" medium="image">
			<media:title type="html">update</media:title>
		</media:content>
	</item>
		<item>
		<title>TUTORIAL: How to install PHP and MySQL on IIS</title>
		<link>http://dreamcatchernick.wordpress.com/2009/10/08/tutorial-how-to-install-php-and-mysql-on-iis/</link>
		<comments>http://dreamcatchernick.wordpress.com/2009/10/08/tutorial-how-to-install-php-and-mysql-on-iis/#comments</comments>
		<pubDate>Thu, 08 Oct 2009 08:22:54 +0000</pubDate>
		<dc:creator>dreamcatchernick</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dreamcatchernick.wordpress.com/2009/10/08/tutorial-how-to-install-php-and-mysql-on-iis/</guid>
		<description><![CDATA[With the apparent increase of interest in individuals desiring to install PHP and MySQL on computers running Windows operating systems, I thought it would be beneficial to provide a set of instructions to help make this process as easy as possible. In this article, I’ll be providing some basics of IIS installation and then move [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamcatchernick.wordpress.com&amp;blog=9378682&amp;post=35&amp;subd=dreamcatchernick&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>With the apparent increase of interest in individuals desiring to install PHP and MySQL on computers running Windows operating systems, I thought it would be beneficial to provide a set of instructions to help make this process as easy as possible. In this article, I’ll be providing some basics of IIS installation and then move to the installation of PHP and MySQL.</p>
<p>Some essentials you will need to get started:<br />
IIS (preferably IIS 5 or IIS 6)<br />
The PHP windows installer file<br />
The PHP binaries file<br />
The MySQL Windows installation file<br />
(links will be provided for the downloads shortly).</p>
<p>Optional:<br />
phpMyAdmin<br />
MySQL Administrator</p>
<p>Let’s get started. Since you are installing on a Windows computer, you will most likely be using IIS for a web server, however, it is not required. You must have some web server running however, and you are quite welcome to use Apache or another web server of your choice, however, since that falls outside the scope of this tutorial we will leave that discussion for another day.</p>
<p>Some things to know about IIS. IIS v5.1 is included with Windows 2000 Professional, and Windows XP Professional, but is not installed by default. (*note – IIS 5.1 is not included with XP Home edition and is not available as a stand alone download from Microsoft. If you are an XP Home user, you will need to look for an alternative web server solution.) Windows 2000 server includes IIS 5.1, and Windows 2003 server includes IIS 6.</p>
<p>If you haven’t already done so begin by installing IIS. To do this go to Control Panel | Add/Remove Programs | Add/Remove Windows Components. In the dialogue box that comes up, check the option for Internet Information Services(IIS) and click the “Details” button. Select any additional features that would like to have installed and click OK. Click OK again to begin the installation. This will install IIS and start the web server service automatically. You should not need to reboot. To test your installation open your web browser and type in</p>
<p><!-- m -->http://localhost/</p>
<p><!-- m -->. This should bring up the default IIS page. If it does, your installation was a success and you can immediately get started on installing PHP.</p>
<p>It really shouldn’t matter whether you install PHP first or MySQL first. I’ve simply gotten into the habit of beginning with PHP, so that will be my next step. To get the files you will need, go to the download page at php.net . The most current release available for download at the time of this writing is 5.1.1. This release has worked just fine for me, so it’s the one I use. You will want to download both the PHP 5.1.1 zip package AND the PHP 5.1.1 installer. Unzip both files to a temporary location and run the setup installer. This will install PHP automatically. The default installation directory is C:\PHP and I would suggest to leave it at that, unless there is a specific reason you need to install it elsewhere. *note it is not recommended to install PHP in a directory that contains spaces such as c:\Program Files\PHP as it can cause some web servers to crash. Answer the questions as they are presented by the wizard. I recommend choosing the option to add PHP to the Windows PATH environment variable when that option is presented. If not you can manually add it later, but you really should include it. For a good article on Windows environment variables go here . When the installer completes you will have a basic installation of PHP. This works just fine, but it is recommended to add the additional libraries found in the PHP 5.1.1 zip package. Simply copy those files into the C:\PHP directory. The following files in this package are already installed with your PHP and there is no need to copy them install.txt, license.txt, php.exe and php4ts.dll.</p>
<p>To test your PHP installation copy the following into a file and save it as info.php in c:\Inetpub\wwwroot\ . (wwwroot is Windows IIS default website folder. Any of your web files will always go in there)</p>
<p><!-- no smilies start -->// </p>
<div><strong>Code</strong>: [ <a href="http://www.ozzu.com/bbc_download.php?p=296723">Download</a> ] [ <a href="void(0)">Select</a> ]// </div>
<div id="code_0_6db5af99_ln">
<div>&lt;?php phpinfo(); ?&gt;</div>
</div>
<p><!-- no smilies end --><br />
Then go to your web browser and type: http://localhost/info.php</p>
<p><!-- m -->. If your installation was successful, this should display your PHP configuration information.</p>
<p>Now we can proceed to installing MySQL. Go to the MySQL download page here. . As of this writing the most current release is v5.0.16. Download the Windows(x86) file (the 33.6MB file). This is the full package and includes the installer. Unzip it to a temporary location and run the installer. For the most part, especially for someone doing this the first time, it’s easiest to use the standard installation. This will essentially configure all the basic things you need to have MySQL work. During the configuration you will be asked which port to use. The default port 3306 is usually fine, however if you know something else is already using that port, you can select another one. Your “super” user that will be created during the install is user “root”. Root is the chief administrative username and can do anything in MySQL. You can add other users later after you’re up and running, but root is going to be your main admin access. Remember the root password you use. If you lose or forget it, there is no way to access it, and you could find yourself unable to use MySQL. Complete the wizard. Now let’s test it to make sure it’s working. Go to Programs | MySQL | MySQL Server 5 | MySQL Command Line Client. This is a utility similar to DOS for managing MySQL. At the password prompt type in the password you entered and hit enter. If your server is working properly you should get something that looks like this:</p>
<div><strong>Quote</strong>:</div>
<div>Enter password:<br />
Welcome to the MySQL monitor.  Commands end with ; or \g.<br />
Your MySQL connection id is 1 to server version: 5.0.16-nt</p>
<p>Type &#8216;help;&#8217; or &#8216;\h&#8217; for help. Type &#8216;\c&#8217; to clear the buffer.</p>
<p>mysql&gt;</p></div>
<p>If you see that, your installation was successful.  You can type quit or exit to close the Client.</p>
<p>Now there are some purists out there that probably swear by that command line client and use it exclusively for managing their server. However, for us spoiled Windows dummies that are used to “easy-to-use” GUI’s there is an alternative good tool for your server management &#8211; MySQL Administrator which can be downloaded from HERE . The installation is very straightforward. After it’s installed simply run it. For your logon the host would be localhost, the port would be the port you used when installing MySQL (default 3306) and the user would be root with the password you gave on installation. Since administering your MySQL server is beyond the scope of this article, we’ll leave that for another day, however, you’ll see very quickly the ease with which you can add users and create and manage your databases.</p>
<p>The last tool that I listed as optional, I actually couldn’t live without it, and that is phpMyAdmin which can be downloaded HERE . Simply unzip the contents to a temporary directory. Create a folder called phpMyAdmin in c:\Inetpub\wwwroot\ and copy your extracted phpMyAdmin download files in there. Then open config.default.php in an editor and edit the following as needed.<br />
Make sure the port number here $cfg['Servers'][$i]['port'] = &#8217;3306&#8242;; matches the port you used when installing MySQL. If you are going to only be using this as a development machine and it will not be connected to the internet or accessible from the internet use the following configuration for these three lines:</p>
<p><!-- no smilies start -->// </p>
<div><strong>Code</strong>: [ <a href="http://www.ozzu.com/bbc_download.php?p=296723&amp;item=1">Download</a> ] [ <a href="void(0)">Select</a> ]// <span id="code_1_d8432649_lny"> [ <a href="void(0)">Line Numbers Off</a> ]</span></div>
<div id="code_1_d8432649">
<div>$cfg['Servers'][$i]['auth_type']     = &#8216;config&#8217;; // Authentication method (config, http or cookie based)?<br />
$cfg['Servers'][$i]['user']         = &#8216;root&#8217;;     // MySQL user<br />
$cfg['Servers'][$i]['password']     = &#8216;yourpassword&#8217;;         // MySQL password (only needed<br />
// with &#8216;config&#8217; auth_type)</div>
</div>
<div id="code_1_d8432649_ln">
<ol>
<li>$cfg['Servers'][$i]['auth_type']     = &#8216;config&#8217;; // Authentication method (config, http or cookie based)?</li>
<li>$cfg['Servers'][$i]['user']         = &#8216;root&#8217;;     // MySQL user</li>
<li>$cfg['Servers'][$i]['password']     = &#8216;yourpassword&#8217;;         // MySQL password (only needed</li>
<li> // with &#8216;config&#8217; auth_type)</li>
</ol>
</div>
<p><!-- no smilies end --></p>
<p>If this will be accessible from the web, you’ll most likely want to use HTTP authentication, in which case change config to http and leave user and password empty. Save the file as config.inc.php in your phpMyAdmin folder.</p>
<p>For some reason on a Windows machine, phpMyAdmin seems to want access to php_mbstring.dll . To solve this open c:\Windows\php.ini (or WINNT if Win2K) and find the following:<br />
; Directory in which the loadable extensions (modules) reside.<br />
extension_dir = &#8220;./’<br />
Change that to<br />
; Directory in which the loadable extensions (modules) reside.<br />
extension_dir = &#8220;./extensions/&#8221;</p>
<p>Then scroll down to this line and uncomment it (remove the leading semi-colon)<br />
extension=php_mbstring.dll</p>
<p>Now, in theory you should be able to go to</p>
<p><!-- m -->http://localhost/phpMyAdmin/index.php</p>
<p><!-- m -->and you should be working. “In Theory”. However, I’ve done four Windows installations on Win2K, XP and Windows 2003 Server machines, and this is where I always run into a snag. For some reason, there seems to be a bit of a problem with the MySQL authentication protocol that it doesn’t like. Since one of our members recently had this problem and rather than retyping everything, simply read the post here for the workaround to this:</p>
<p><!-- l --><a href="http://www.ozzu.com/ftopic55568.html">ftopic55568.html</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dreamcatchernick.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dreamcatchernick.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dreamcatchernick.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dreamcatchernick.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dreamcatchernick.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dreamcatchernick.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dreamcatchernick.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dreamcatchernick.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dreamcatchernick.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dreamcatchernick.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dreamcatchernick.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dreamcatchernick.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dreamcatchernick.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dreamcatchernick.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamcatchernick.wordpress.com&amp;blog=9378682&amp;post=35&amp;subd=dreamcatchernick&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dreamcatchernick.wordpress.com/2009/10/08/tutorial-how-to-install-php-and-mysql-on-iis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/47f5ab767510e9050b250746d2f469be?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dreamcatchernick</media:title>
		</media:content>
	</item>
		<item>
		<title>Onlineshopping design</title>
		<link>http://dreamcatchernick.wordpress.com/2009/10/06/onlineshopping-design/</link>
		<comments>http://dreamcatchernick.wordpress.com/2009/10/06/onlineshopping-design/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 04:40:18 +0000</pubDate>
		<dc:creator>dreamcatchernick</dc:creator>
				<category><![CDATA[.NET 2.0]]></category>

		<guid isPermaLink="false">http://dreamcatchernick.wordpress.com/?p=31</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamcatchernick.wordpress.com&amp;blog=9378682&amp;post=31&amp;subd=dreamcatchernick&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-32" title="working" src="http://dreamcatchernick.files.wordpress.com/2009/10/working1.jpg?w=600&#038;h=467" alt="working" width="600" height="467" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dreamcatchernick.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dreamcatchernick.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dreamcatchernick.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dreamcatchernick.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dreamcatchernick.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dreamcatchernick.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dreamcatchernick.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dreamcatchernick.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dreamcatchernick.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dreamcatchernick.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dreamcatchernick.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dreamcatchernick.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dreamcatchernick.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dreamcatchernick.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamcatchernick.wordpress.com&amp;blog=9378682&amp;post=31&amp;subd=dreamcatchernick&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dreamcatchernick.wordpress.com/2009/10/06/onlineshopping-design/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/47f5ab767510e9050b250746d2f469be?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dreamcatchernick</media:title>
		</media:content>

		<media:content url="http://dreamcatchernick.files.wordpress.com/2009/10/working1.jpg" medium="image">
			<media:title type="html">working</media:title>
		</media:content>
	</item>
		<item>
		<title>Web design</title>
		<link>http://dreamcatchernick.wordpress.com/2009/10/06/web-design/</link>
		<comments>http://dreamcatchernick.wordpress.com/2009/10/06/web-design/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 04:36:55 +0000</pubDate>
		<dc:creator>dreamcatchernick</dc:creator>
				<category><![CDATA[Design]]></category>

		<guid isPermaLink="false">http://dreamcatchernick.wordpress.com/2009/10/06/web-design/</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamcatchernick.wordpress.com&amp;blog=9378682&amp;post=29&amp;subd=dreamcatchernick&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-27" title="working" src="http://dreamcatchernick.files.wordpress.com/2009/10/working.jpg?w=600&#038;h=384" alt="working" width="600" height="384" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dreamcatchernick.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dreamcatchernick.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dreamcatchernick.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dreamcatchernick.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dreamcatchernick.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dreamcatchernick.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dreamcatchernick.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dreamcatchernick.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dreamcatchernick.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dreamcatchernick.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dreamcatchernick.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dreamcatchernick.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dreamcatchernick.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dreamcatchernick.wordpress.com/29/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamcatchernick.wordpress.com&amp;blog=9378682&amp;post=29&amp;subd=dreamcatchernick&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dreamcatchernick.wordpress.com/2009/10/06/web-design/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/47f5ab767510e9050b250746d2f469be?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dreamcatchernick</media:title>
		</media:content>

		<media:content url="http://dreamcatchernick.files.wordpress.com/2009/10/working.jpg" medium="image">
			<media:title type="html">working</media:title>
		</media:content>
	</item>
		<item>
		<title>Some good video websites to catch with Microsoft technology</title>
		<link>http://dreamcatchernick.wordpress.com/2009/09/23/some-good-video-websites-to-catch-with-microsoft-technology/</link>
		<comments>http://dreamcatchernick.wordpress.com/2009/09/23/some-good-video-websites-to-catch-with-microsoft-technology/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 22:55:36 +0000</pubDate>
		<dc:creator>dreamcatchernick</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dreamcatchernick.wordpress.com/2009/09/23/some-good-video-websites-to-catch-with-microsoft-technology/</guid>
		<description><![CDATA[Although all the videos are from last year , but they are still good and if you missed the teched you can catch up there. http://www.microsoft.com/emea/msdn/spotlight/ http://www.microsoft.com/emea/spotlight/<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamcatchernick.wordpress.com&amp;blog=9378682&amp;post=25&amp;subd=dreamcatchernick&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Although all the videos are from last year , but they are still good and if you missed the teched you can catch up there.<br />
<a href="http://www.microsoft.com/emea/msdn/spotlight/" target="_blank">http://www.microsoft.com/emea/msdn/spotlight/</a></p>
<p><a href="http://www.microsoft.com/emea/spotlight/" target="_blank">http://www.microsoft.com/emea/spotlight/</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dreamcatchernick.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dreamcatchernick.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dreamcatchernick.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dreamcatchernick.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dreamcatchernick.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dreamcatchernick.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dreamcatchernick.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dreamcatchernick.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dreamcatchernick.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dreamcatchernick.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dreamcatchernick.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dreamcatchernick.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dreamcatchernick.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dreamcatchernick.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamcatchernick.wordpress.com&amp;blog=9378682&amp;post=25&amp;subd=dreamcatchernick&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dreamcatchernick.wordpress.com/2009/09/23/some-good-video-websites-to-catch-with-microsoft-technology/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/47f5ab767510e9050b250746d2f469be?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dreamcatchernick</media:title>
		</media:content>
	</item>
		<item>
		<title>My working</title>
		<link>http://dreamcatchernick.wordpress.com/2009/09/18/my-working/</link>
		<comments>http://dreamcatchernick.wordpress.com/2009/09/18/my-working/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 11:03:03 +0000</pubDate>
		<dc:creator>dreamcatchernick</dc:creator>
				<category><![CDATA[Design]]></category>

		<guid isPermaLink="false">http://dreamcatchernick.wordpress.com/?p=19</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamcatchernick.wordpress.com&amp;blog=9378682&amp;post=19&amp;subd=dreamcatchernick&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[
<a href='http://dreamcatchernick.wordpress.com/2009/09/18/my-working/sample/' title='Draft'><img data-attachment-id='20' data-orig-size='1280,1023' data-liked='0'width="150" height="119" src="http://dreamcatchernick.files.wordpress.com/2009/09/sample.jpg?w=150&#038;h=119" class="attachment-thumbnail" alt="Draft" title="Draft" /></a>
<a href='http://dreamcatchernick.wordpress.com/2009/09/18/my-working/smaple1/' title='Draft1'><img data-attachment-id='21' data-orig-size='1280,1023' data-liked='0'width="150" height="119" src="http://dreamcatchernick.files.wordpress.com/2009/09/smaple1.jpg?w=150&#038;h=119" class="attachment-thumbnail" alt="Draft1" title="Draft1" /></a>
<a href='http://dreamcatchernick.wordpress.com/2009/09/18/my-working/admin/' title='admin'><img data-attachment-id='22' data-orig-size='1279,701' data-liked='0'width="150" height="82" src="http://dreamcatchernick.files.wordpress.com/2009/09/admin.jpg?w=150&#038;h=82" class="attachment-thumbnail" alt="admin" title="admin" /></a>

<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dreamcatchernick.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dreamcatchernick.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dreamcatchernick.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dreamcatchernick.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dreamcatchernick.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dreamcatchernick.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dreamcatchernick.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dreamcatchernick.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dreamcatchernick.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dreamcatchernick.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dreamcatchernick.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dreamcatchernick.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dreamcatchernick.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dreamcatchernick.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamcatchernick.wordpress.com&amp;blog=9378682&amp;post=19&amp;subd=dreamcatchernick&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dreamcatchernick.wordpress.com/2009/09/18/my-working/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/47f5ab767510e9050b250746d2f469be?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dreamcatchernick</media:title>
		</media:content>

		<media:content url="http://dreamcatchernick.files.wordpress.com/2009/09/sample.jpg?w=150" medium="image">
			<media:title type="html">Draft</media:title>
		</media:content>

		<media:content url="http://dreamcatchernick.files.wordpress.com/2009/09/smaple1.jpg?w=150" medium="image">
			<media:title type="html">Draft1</media:title>
		</media:content>

		<media:content url="http://dreamcatchernick.files.wordpress.com/2009/09/admin.jpg?w=150" medium="image">
			<media:title type="html">admin</media:title>
		</media:content>
	</item>
		<item>
		<title>Made a Form Validator and add CSS style make it looks better</title>
		<link>http://dreamcatchernick.wordpress.com/2009/09/17/made-a-form-validator-and-add-css-style-make-it-looks-better/</link>
		<comments>http://dreamcatchernick.wordpress.com/2009/09/17/made-a-form-validator-and-add-css-style-make-it-looks-better/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 04:20:29 +0000</pubDate>
		<dc:creator>dreamcatchernick</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Design]]></category>

		<guid isPermaLink="false">http://dreamcatchernick.wordpress.com/?p=13</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamcatchernick.wordpress.com&amp;blog=9378682&amp;post=13&amp;subd=dreamcatchernick&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[
<a href='http://dreamcatchernick.wordpress.com/2009/09/17/made-a-form-validator-and-add-css-style-make-it-looks-better/b__fv9o_76de00081e132d12/' title='before'><img data-attachment-id='15' data-orig-size='551,448' data-liked='0'width="150" height="121" src="http://dreamcatchernick.files.wordpress.com/2009/09/b__fv9o_76de00081e132d12.jpg?w=150&#038;h=121" class="attachment-thumbnail" alt="before" title="before" /></a>
<a href='http://dreamcatchernick.wordpress.com/2009/09/17/made-a-form-validator-and-add-css-style-make-it-looks-better/b__eyd8_5eba00062f932d0e/' title='after'><img data-attachment-id='16' data-orig-size='570,418' data-liked='0'width="150" height="110" src="http://dreamcatchernick.files.wordpress.com/2009/09/b__eyd8_5eba00062f932d0e.jpg?w=150&#038;h=110" class="attachment-thumbnail" alt="after" title="after" /></a>

<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dreamcatchernick.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dreamcatchernick.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dreamcatchernick.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dreamcatchernick.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dreamcatchernick.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dreamcatchernick.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dreamcatchernick.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dreamcatchernick.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dreamcatchernick.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dreamcatchernick.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dreamcatchernick.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dreamcatchernick.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dreamcatchernick.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dreamcatchernick.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamcatchernick.wordpress.com&amp;blog=9378682&amp;post=13&amp;subd=dreamcatchernick&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dreamcatchernick.wordpress.com/2009/09/17/made-a-form-validator-and-add-css-style-make-it-looks-better/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/47f5ab767510e9050b250746d2f469be?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dreamcatchernick</media:title>
		</media:content>

		<media:content url="http://dreamcatchernick.files.wordpress.com/2009/09/b__fv9o_76de00081e132d12.jpg?w=150" medium="image">
			<media:title type="html">before</media:title>
		</media:content>

		<media:content url="http://dreamcatchernick.files.wordpress.com/2009/09/b__eyd8_5eba00062f932d0e.jpg?w=150" medium="image">
			<media:title type="html">after</media:title>
		</media:content>
	</item>
		<item>
		<title>Send Email using CSharp via Gmail</title>
		<link>http://dreamcatchernick.wordpress.com/2009/09/09/send-email-using-csharp-via-gmail/</link>
		<comments>http://dreamcatchernick.wordpress.com/2009/09/09/send-email-using-csharp-via-gmail/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 02:12:57 +0000</pubDate>
		<dc:creator>dreamcatchernick</dc:creator>
				<category><![CDATA[.NET 2.0]]></category>

		<guid isPermaLink="false">http://dreamcatchernick.wordpress.com/?p=3</guid>
		<description><![CDATA[Namespaces The following Namespaces need to be imported in order to send emails using System.Net; using System.Net.Mail; MailMessage Class Properties Following are the required properties of the mail message class. From – Sender’s email address To – Recipient(s) Email Address CC – Carbon Copies BCC – Blind Carbon Copies Subject – Subject of the Email [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamcatchernick.wordpress.com&amp;blog=9378682&amp;post=3&amp;subd=dreamcatchernick&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="blogContent">
<p><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;">Namespaces</span></p>
<p><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;">The following Namespaces need to be imported in order to send emails</span></p>
<p><span style="font-size:10pt;color:blue;font-family:Courier New;">using</span><span style="font-size:10pt;font-family:Courier New;"> System.Net;</span></p>
<p><span style="font-size:10pt;color:blue;font-family:Courier New;">using</span><span style="font-size:10pt;font-family:Courier New;"> System.Net.Mail; </span></p>
<p><span style="font-size:10pt;font-family:Courier New;"><br />
</span></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;">MailMessage Class </span></strong><strong><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;">Properties</span></strong><strong> </strong></p>
<p><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;">Following are the required properties of the mail message class.</span></p>
<p><strong><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;">From</span></strong><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;"> – Sender’s email address</span></p>
<p><strong><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;">To</span></strong><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;"> – Recipient(s) Email Address</span></p>
<p><strong><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;">CC</span></strong><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;"> – Carbon Copies</span></p>
<p><strong><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;">BCC</span></strong><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;"> – Blind Carbon Copies</span></p>
<p><strong><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;">Subject</span></strong><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;"> – Subject of the Email </span></p>
<p><strong><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;">Body</span></strong><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;"> – Body of the Email</span></p>
<p><strong><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;">IsBodyHtml</span></strong><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;"> – Specify whether body contains text or HTML mark up.</span></p>
<p><strong><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;">Attachments – </span></strong><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;">Attachments if Any.</span></p>
<p><strong><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;">ReplyTo </span></strong><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;">– ReplyTo Email address.</span></p>
<p><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;"><br />
</span></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;">Creating a MailMessage Object</span></strong></p>
<p><span style="font-size:10pt;color:teal;font-family:Courier New;">MailMessage</span><span style="font-size:10pt;font-family:Courier New;"> mm = <span style="color:blue;">new</span> <span style="color:teal;">MailMessage</span>();</span></p>
<p><span style="font-size:10pt;font-family:Courier New;">mm.From = <span style="color:blue;">new</span> <span style="color:teal;">MailAddress</span>(<span style="color:maroon;">&#8220;username@gmail.com&#8221;</span>);</span></p>
<p><span style="font-size:10pt;font-family:Courier New;">mm.Subject = <span style="color:maroon;">&#8220;Hello&#8221;</span>;</span></p>
<p><span style="font-size:10pt;font-family:Courier New;">mm.Body = <span style="color:maroon;">&#8220;&lt;p&gt;Body&lt;/p&gt;&#8221;</span>;</span></p>
<p><span style="font-size:10pt;font-family:Courier New;">mm.IsBodyHtml = <span style="color:blue;">true</span>;</span></p>
<p><span style="font-size:10pt;font-family:Courier New;"><br />
</span></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;">SMTP Class Properties</span></strong></p>
<p><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;">Following are the properties of the SMTP class.</span></p>
<p><strong><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;">Host – </span></strong><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;">Your SMTP Server</span></p>
<p><strong><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;">EnableSsl – </span></strong><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;">Specify whether you host accepts SSL Connections.</span></p>
<p><strong><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;">UseDefaultCredentials</span></strong><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;"> – Set to True inorder to allow authentication based on the Credentials of the Account used to send emails</span></p>
<p><strong><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;">Credentials</span></strong><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;"> – Valid login credentials for the SMTP server</span></p>
<p><strong><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;">Port</span></strong><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;"> – Port Number of the SMTP server</span></p>
<p><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;">Below code describes how the above properties are applied</span></p>
<p><span style="font-size:10pt;font-family:Courier New;">smtp.Host = <span style="color:maroon;">&#8220;smtp.gmail.com&#8221;</span>;</span></p>
<p><span style="font-size:10pt;font-family:Courier New;">smtp.EnableSsl = <span style="color:blue;">true</span>;</span></p>
<p><span style="font-size:10pt;font-family:Courier New;">System.Net.<span style="color:teal;">NetworkCredential</span> NetworkCred = <span style="color:blue;">new</span> System.Net.<span style="color:teal;">NetworkCredential</span>();</span></p>
<p><span style="font-size:10pt;font-family:Courier New;">NetworkCred.UserName = <span style="color:maroon;">&#8220;username@gmail.com&#8221;</span>;</span></p>
<p><span style="font-size:10pt;font-family:Courier New;">NetworkCred.Password = <span style="color:maroon;">&#8220;xxxxxxxxx&#8221;</span>;</span></p>
<p><span style="font-size:10pt;font-family:Courier New;">smtp.UseDefaultCredentials = <span style="color:blue;">true</span>;</span></p>
<p><span style="font-size:10pt;font-family:Courier New;">smtp.Credentials = NetworkCred;</span></p>
<p><span style="font-size:10pt;font-family:Courier New;">smtp.Port = 587;</span></p>
<p><span style="font-size:10pt;font-family:Courier New;"><br />
</span></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;">Send Email</span></strong></p>
<p><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;">The method<strong> Smtp.Send(..) </strong>is used to send the email. See the example below</span></p>
<p><span style="font-size:10pt;line-height:115%;font-family:Courier New;"><br />
smtp.Send(mm);</span></p>
<p><span style="font-size:10pt;line-height:115%;font-family:Courier New;"><br />
MessageBox.Show(&#8220;Message sent successfully.&#8221;,&#8221;Success&#8221;, MessageBoxButtons.OK,MessageBoxIcon.Information);</span></p>
<p><span style="font-size:10pt;line-height:115%;font-family:Courier New;"><br />
</span></p>
<p><strong><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;">Send Email Asynchronously</span></strong></p>
<p><span style="font-size:10pt;line-height:115%;font-family:Courier New;">//Create event handler</span><br />
<span style="font-size:10pt;line-height:115%;font-family:Courier New;"><br />
void sc_SendCompleted(object sender, AsyncCompletedEventArgs e)<br />
{<br />
if (e.Cancelled)<br />
Console.WriteLine(&#8220;Message cancelled&#8221;);<br />
else if (e.Error != null)<br />
Console.WriteLine(&#8220;Error: &#8221; + e.Error.ToString());<br />
else<br />
Console.WriteLine(&#8220;Message sent&#8221;);<br />
}</span></p>
<p><span style="font-size:10pt;line-height:115%;font-family:Courier New;">//Add event handler</span></p>
<p><span style="font-size:10pt;line-height:115%;font-family:Courier New;">smtp.SendCompleted += new SendCompletedEventHandler(sc_SendCompleted);</span></p>
<p><span style="font-size:10pt;line-height:115%;font-family:Courier New;">smtp.SendAsync(mm , null);</span></p>
<p><span style="font-size:10pt;line-height:115%;font-family:Courier New;">//Or Cancel the transmtion</span></p>
<p><span style="font-size:10pt;line-height:115%;font-family:Courier New;">smtp.SendAsyncCancel();</span></p>
<p><span style="font-size:10pt;line-height:115%;font-family:Courier New;"><br />
</span></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;">Send Email using Background Thread</span></strong></p>
<p><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;">Sending Email requires some amount of time. So many times user has to wait for the page to load while the mail is being sent. And if the server is not reachable the code will try to send email until timeout.</span></p>
<p><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;">To avoid that the email can be sent using a background thread and the user can be displayed a message immediately without delay.</span></p>
<p><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;">Import the following Namespace</span></p>
<p><span style="font-size:10pt;color:blue;line-height:115%;font-family:Courier New;">using</span><span style="font-size:10pt;line-height:115%;font-family:Courier New;"> System.Threading;</span></p>
<p><span style="font-size:10pt;line-height:115%;font-family:Arial,sans-serif;">Send email using a Background thread </span></p>
<p><span style="font-size:10pt;color:teal;font-family:Courier New;">Thread</span><span style="font-size:10pt;font-family:Courier New;"> threadSendMails;</span></p>
<p><span style="font-size:10pt;font-family:Courier New;">threadSendMails = <span style="color:blue;">new</span> <span style="color:teal;">Thread</span>(<span style="color:blue;">delegate</span>()</span></p>
<p><span style="font-size:10pt;font-family:Courier New;">{</span></p>
<p><span style="font-size:10pt;font-family:Courier New;"> sendemail(<span style="color:maroon;">&#8220;username@gmail.com&#8221;</span>, <span style="color:maroon;">&#8220;receiver@abc.com&#8221;</span>, <span style="color:maroon;">&#8220;Hello&#8221;</span>, <span style="color:maroon;">&#8220;&lt;p&gt;Body&lt;/p&gt;&#8221;</span>, <span style="color:maroon;">&#8220;C:\\MyDoc.txt&#8221;</span>, <span style="color:blue;">true</span>);</span></p>
<p><span style="font-size:10pt;font-family:Courier New;">});</span></p>
<p><span style="font-size:10pt;font-family:Courier New;">threadSendMails.IsBackground = <span style="color:blue;">true</span>;</span></p>
<p><span style="font-size:10pt;line-height:115%;font-family:Courier New;">threadSendMails.Start();</span></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dreamcatchernick.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dreamcatchernick.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dreamcatchernick.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dreamcatchernick.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dreamcatchernick.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dreamcatchernick.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dreamcatchernick.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dreamcatchernick.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dreamcatchernick.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dreamcatchernick.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dreamcatchernick.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dreamcatchernick.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dreamcatchernick.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dreamcatchernick.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dreamcatchernick.wordpress.com&amp;blog=9378682&amp;post=3&amp;subd=dreamcatchernick&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dreamcatchernick.wordpress.com/2009/09/09/send-email-using-csharp-via-gmail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/47f5ab767510e9050b250746d2f469be?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dreamcatchernick</media:title>
		</media:content>
	</item>
	</channel>
</rss>
