<?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/"
	>

<channel>
	<title>The Official ASATO Site</title>
	<atom:link href="http://wind-flowers.net/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://wind-flowers.net</link>
	<description>Hi, welcome to my blog. ASP,asp.net,Health,Javascript,JQUERY</description>
	<lastBuildDate>Thu, 05 Aug 2010 05:50:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Five asp.net open source E-Commerce websites</title>
		<link>http://wind-flowers.net/?p=192</link>
		<comments>http://wind-flowers.net/?p=192#comments</comments>
		<pubDate>Thu, 05 Aug 2010 05:50:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=192</guid>
		<description><![CDATA[»  nopCommerce
nopCommerce is the best ASP.NET open Source online shop e-commerce solution. nopCommerce is available for free. It has most of the things you need to get started in selling physical and digital goods over the internet including front-end catalog and back-end administration.
Type: Web
Source: ASP.NET/C#
Website: http://www.nopCommerce.com
»  dashCommerce
This is an ASP.NET open source e-commerce [...]]]></description>
			<content:encoded><![CDATA[<p>»  nopCommerce<br />
nopCommerce is the best ASP.NET open Source online shop e-commerce solution. nopCommerce is available for free. It has most of the things you need to get started in selling physical and digital goods over the internet including front-end catalog and back-end administration.<br />
Type: Web<br />
Source: ASP.NET/C#<br />
Website: http://www.nopCommerce.com</p>
<p>»  dashCommerce<br />
This is an ASP.NET open source e-commerce application. This product is robust as well as very flexible. It has all three major components required to be in an e-commerce application: Product Catalog, Shopping Cart &#038; Order Fulfillment.<br />
Type: Web<br />
Source: ASP.NET,VB.NET,C#<br />
Website: http://www.dashcommerce.org/</p>
<p>»  TheBeerHouse: CMS &#038; E-commerce Site Starter Kit<br />
This starter kit can be used to create CMS/e-commerce websites. Main features are: user selectable layout theme,membership,CMS,mailing list,forums,e-commerce store,personalization of homepage and localization.<br />
Type: Web<br />
Source: ASP.NET, C#<br />
Website: http://www.asp.net/downloads/starterkits/TheBeerHouse.aspx?tabid=62</p>
<p>»  Paypal eCommerce Site Starter Kit<br />
This is extensible e-Commerce web application which is enabled for PayPal. So you can install and administer your own e-Commerce site using this starter kit.<br />
Type: Web<br />
Source: ASP.NET, C#<br />
Website: http://www.asp.net/downloads/starterkits/PaypalEcommerce.aspx?tabid=62</p>
<p>»  Shopping.com Partner Site Script<br />
This is a complete web site which is built on Shopping.com API. It is fully customizable, search engine friendly and can be used to promote a third party such as Adsense, Yahoo Publisher Network, CJ or any other.<br />
Type: Web<br />
Source: ASP.NET,VB.NET<br />
Website: http://www.datafeedscripts.net/default.aspx</p>
]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=192</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Bind an ArrayList to Dropdownlist (asp.net)</title>
		<link>http://wind-flowers.net/?p=190</link>
		<comments>http://wind-flowers.net/?p=190#comments</comments>
		<pubDate>Thu, 05 Aug 2010 05:39:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=190</guid>
		<description><![CDATA[The ArrayList object is a collection of items containing a single data value.
Items are added to the ArrayList with the Add() method.
Create an ArrayList]]></description>
			<content:encoded><![CDATA[<p>The ArrayList object is a collection of items containing a single data value.<br />
Items are added to the ArrayList with the Add() method.<br />
Create an ArrayList</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p190code1'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p1901"><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code" id="p190code1"><pre class="csharp" style="font-family:monospace;">ArrayList list <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> ArrayList<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
  list.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;none&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
  list.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;Canada Post&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
  list.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;UPS&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
  list.<span style="color: #0000FF;">Insert</span><span style="color: #000000;">&#40;</span><span style="color: #FF0000;">1</span>,<span style="color: #666666;">&quot;FedEx&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span></pre></td></tr></table></div>

<p>An ArrayList can also be sorted alphabetically or numerically with the Sort() method:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p190code2'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p1902"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p190code2"><pre class="csharp" style="font-family:monospace;">  list.<span style="color: #0000FF;">Sort</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></pre></td></tr></table></div>

<p>Data Binding to an ArrayList:<br />
ArrayList object may automatically generate the text and values to the following controls:<br />
1 asp:RadioButtonList<br />
2 asp:CheckBoxList<br />
3 asp:DropDownList<br />
4 asp:Listbox</p>
<p>The following code Bind an ArrayList to Dropdownlist:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p190code3'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p1903"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
</pre></td><td class="code" id="p190code3"><pre class="csharp" style="font-family:monospace;">CS file<span style="color: #008000;">:</span>
<span style="color: #008000;">&lt;</span>script runat<span style="color: #008000;">=</span><span style="color: #666666;">&quot;server&quot;</span><span style="color: #008000;">&gt;</span>
    <span style="color: #0600FF;">void</span> Page_Load<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
    <span style="color: #000000;">&#123;</span>
         ArrayList list <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> ArrayList<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
         list.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;microsoft&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
         list.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;Canada Post&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
         list.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;google&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
         list.<span style="color: #0000FF;">Insert</span><span style="color: #000000;">&#40;</span><span style="color: #FF0000;">1</span>,<span style="color: #666666;">&quot;FedEx&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
         MyDDL.<span style="color: #0000FF;">DataSource</span> <span style="color: #008000;">=</span> list<span style="color: #008000;">;</span>
         MyDDL.<span style="color: #0000FF;">DataBind</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
    <span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #008000;">&lt;/</span>script<span style="color: #008000;">&gt;</span></pre></td></tr></table></div>

<p>HTML file:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p190code4'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p1904"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p190code4"><pre class="csharp" style="font-family:monospace;">  <span style="color: #008000;">&lt;</span>form id<span style="color: #008000;">=</span><span style="color: #666666;">&quot;Form1&quot;</span> method<span style="color: #008000;">=</span><span style="color: #666666;">&quot;post&quot;</span> runat<span style="color: #008000;">=</span><span style="color: #666666;">&quot;server&quot;</span><span style="color: #008000;">&gt;</span>
      <span style="color: #008000;">&lt;</span>asp<span style="color: #008000;">:</span>dropdownlist id<span style="color: #008000;">=</span><span style="color: #666666;">&quot;MyDDL&quot;</span> runat<span style="color: #008000;">=</span><span style="color: #666666;">&quot;server&quot;</span><span style="color: #008000;">&gt;&lt;/</span>asp<span style="color: #008000;">:</span>dropdownlist<span style="color: #008000;">&gt;</span>
  <span style="color: #008000;">&lt;/</span>form<span style="color: #008000;">&gt;</span></pre></td></tr></table></div>

<p>The DataSource property of the dropdownlist control is set to the ArrayList and it defines the data source of the dropdownlist control. The DataBind() method of the dropdownlist control binds the data source with the dropdownlist control.</p>
]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=190</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WebService Class Introduce</title>
		<link>http://wind-flowers.net/?p=188</link>
		<comments>http://wind-flowers.net/?p=188#comments</comments>
		<pubDate>Wed, 28 Apr 2010 15:00:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asp.net]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=188</guid>
		<description><![CDATA[Defines the optional base class for XML Web services, which provides direct access to common ASP.NET objects, such as application and session state.
]]></description>
			<content:encoded><![CDATA[<p>Defines the optional base class for XML Web services, which provides direct access to common ASP.NET objects, such as application and session state.<br />
<strong>Namespace:</strong>  <a href="http://msdn.microsoft.com/en-us/library/system.web.services.aspx">System.Web.Services</a><br />
<strong>Assembly:</strong>  System.Web.Services (in System.Web.Services.dll)</p>
<p><strong>Examples<br />
</strong>The example below creates an XML Web service, deriving from WebService, in order to use the <a href="http://msdn.microsoft.com/en-us/library/system.web.services.webservice.context.aspx">Context</a> property to obtain the time of the request on the server.<br />
&lt;%@ WebService Language=&#8221;C#&#8221; Class=&#8221;Util&#8221; %&gt;<br />
using System;<br />
using System.Web.Services;</p>
<p>public class Util: WebService {<br />
   [ WebMethod(Description="Returns the time as stored on the Server",<br />
   EnableSession=false)]<br />
   public string Time() {<br />
      return Context.Timestamp.TimeOfDay.ToString();<br />
   }<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=188</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to upload File use a C# Web Service?</title>
		<link>http://wind-flowers.net/?p=185</link>
		<comments>http://wind-flowers.net/?p=185#comments</comments>
		<pubDate>Wed, 28 Apr 2010 14:55:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=185</guid>
		<description><![CDATA[This article shall describe an approach that may be used to upload any sort of a file through a web service from a Windows Forms application. The approach demonstrated does not rely on the ASP.NET file uploader control and allows the developer the opportunity to upload files programmatically and without user intervention.]]></description>
			<content:encoded><![CDATA[<table cellspacing="0" cellpadding="4" width="100%">
<tbody>
<tr>
<td width="130" align="left">Download Files:</td>
<td align="left">
<table id="ctl00_ContentPlaceHolder1_ArticleFooter1_ucArticleButtons1_DataListDownloadFiles" border="0" cellspacing="0">
<tbody>
<tr>
<td align="center" valign="top"><a id="ctl00_ContentPlaceHolder1_ArticleFooter1_ucArticleButtons1_DataListDownloadFiles_ctl00_LinkButtonDownloadFiles" href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$ArticleFooter1$ucArticleButtons1$DataListDownloadFiles$ctl00$LinkButtonDownloadFiles','')">UploadAnyfilePack.zip</a></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p> </p>
<p><strong>Introduction</strong></p>
<p>This article shall describe an approach that may be used to upload any sort of a file through a web service from a Windows Forms application. The approach demonstrated does not rely on the ASP.NET file uploader control and allows the developer the opportunity to upload files programmatically and without user intervention. Such an approach may be useful for doing something like processing out the contents of a local message queue when internet service is available (if the user base were mobile and had only intermittent connectivity). The article also addresses the use of a file size check as a precursor to allowing a file to upload through the service.</p>
<p>Figure 1: Test Application Shown Uploading a File.</p>
<p>Figure 2: Mixed bag of different file types in transient storage folder.</p>
<p><strong>Getting Started</strong></p>
<p>The solution contains two projects; one is an ASP.NET Web Service project (<em>Uploader</em>) and the other is a Win Forms test application (<em>TestUploader</em>) used to demonstrate uploading files through the web method provided in the web service project.</p>
<p>The web service project contains only a single web service (<em>FileUploader</em>) which in turn contains only a single Web Method (<em>UploadFile</em>). The Win Forms application contains only a single form which contains the controls (one textbox and two buttons used in conjunction with an <em>OpenFileDialog</em> control) and code necessary to select and upload files through the web service.</p>
<p>Figure 3: Solution Explorer with the both Projects Visible.</p>
<p><strong>Code:  Uploader Web Service Project</strong></p>
<p>The Uploader web service project is an ASP.NET web service project containing a single web service called, &#8220;<em>FileUploader</em>&#8220;; this web service exposes a single web method called, &#8220;<em>UploadFile</em>&#8220;.</p>
<p>The code for this web service begins with the following:</p>
<p>using System;</p>
<p>using System.Data;</p>
<p>using System.Web;</p>
<p>using System.Collections;</p>
<p>using System.Web.Services;</p>
<p>using System.Web.Services.Protocols;</p>
<p>using System.ComponentModel;</p>
<p>using System.IO; </p>
<p>namespace Uploader</p>
<p>{</p>
<p>    /// &lt;summary&gt;</p>
<p>    /// This web method will provide an web method to load any</p>
<p>    /// file onto the server; the UploadFile web method</p>
<p>    /// will accept the report and store it in the local file system.</p>
<p>    /// &lt;/summary&gt;</p>
<p>    [WebService(Namespace = "http://tempuri.org/")]</p>
<p>    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]</p>
<p>    [ToolboxItem(false)]</p>
<p>    public class FileUploader : System.Web.Services.WebService</p>
<p>    {</p>
<p>The class starts out with the default imports; I added System.IO to the defaults to support the use of file and memory streams. The web service namespace is left as the default http://tempuri.org/ which of course will have to updated if the service were deployed.</p>
<p>The remainder of the code supplied in this class is used to define the web method used to upload the file; the code is annotated. The essential process is that, files converted to byte arrays are passed along with the full name of the file (not the path) including the extention as arguments to the UploadFile web method. The byte array is passed to a memory stream, and a file stream is opened pointing to a newly created file (named the name of the original file) within the target folder used to store the files. Once the file stream has been created, the memory stream is written into the file stream and then the memory stream and file stream are disposed of. </p>
<p>The web method is setup to return a string; if all goes well, the string returned will read, &#8220;OK&#8221;, if not, the error message encountered will be returned to the caller.</p>
<p>[WebMethod]</p>
<p>public string UploadFile(byte[] f, string fileName)</p>
<p>{</p>
<p>    // the byte array argument contains the content of the file</p>
<p>    // the string argument contains the name and extension</p>
<p>    // of the file passed in the byte array</p>
<p>    try</p>
<p>    {</p>
<p>        // instance a memory stream and pass the</p>
<p>        // byte array to its constructor</p>
<p>        MemoryStream ms = new MemoryStream(f);</p>
<p>        // instance a filestream pointing to the</p>
<p>        // storage folder, use the original file name</p>
<p>        // to name the resulting file</p>
<p>        FileStream fs = new FileStream(System.Web.Hosting.HostingEnvironment.MapPath</p>
<p>                    (&#8220;~/TransientStorage/&#8221;) +fileName, FileMode.Create); <br />
        // write the memory stream containing the original</p>
<p>        // file as a byte array to the filestream</p>
<p>        ms.WriteTo(fs); <br />
        // clean up</p>
<p>        ms.Close();</p>
<p>        fs.Close();</p>
<p>        fs.Dispose(); <br />
        // return OK if we made it this far</p>
<p>        return &#8220;OK&#8221;;</p>
<p>    }</p>
<p>    catch (Exception ex)</p>
<p>    {</p>
<p>        // return the error message if the operation fails</p>
<p>        return ex.Message.ToString();</p>
<p>    }</p>
<p>}<br />
 </p>
<p><strong>Code:  Test Uploader Win Forms Application</strong></p>
<p>The test application contains a single Windows Form class; this form contains a text box used to display the name of the file selected for upload, a browse button used to launch an open file dialog box which is used to navigate to and select a file for upload, and an upload button which is used to pass the file to web service so that the selected file may be stored on the server.</p>
<p>The code for this class begins with the following:</p>
<p>using System;</p>
<p>using System.Collections.Generic;</p>
<p>using System.ComponentModel;</p>
<p>using System.Data;</p>
<p>using System.Drawing;</p>
<p>using System.Text;</p>
<p>using System.Windows.Forms;</p>
<p>using System.IO;<br />
 </p>
<p>namespace TestUploader</p>
<p>{</p>
<p>    /// &lt;summary&gt;</p>
<p>    /// A test form used to upload a file from a windows application using</p>
<p>    /// the Uploader Web Service</p>
<p>    /// &lt;/summary&gt;</p>
<p>    public partial class Form1 : Form</p>
<p>    {</p>
<p>        public Form1()</p>
<p>        {</p>
<p>            InitializeComponent();</p>
<p>        } </p>
<p>        private void Form1_Load(object sender, EventArgs e)</p>
<p>        {</p>
<p>            // do nothing</p>
<p>        }</p>
<p>Aside from the default imports, I have added only System.IO to the list. This being necessary to support working with files. The namespace and class declarations are in the default configuration. In addition to System.IO, the project also adds in a web reference pointing to the File Uploader web service, the reference is given the alias of Uploader.</p>
<p>The next bit of code in the class is private method used to prepare the file for submittal to the web service and to actually make that submittal. The code below is annotated to describe the activity but the essential parts of the operation are to check the file size to see if the web service will accept the file (by default, the web server will accept uploads smaller than 4 MB in size, the web config file must be updated in order to support larger uploads), and to convert the file to a byte array. When everything is ready, the byte array and the name of the file including the extension is passed to an instance of the web service web method. </p>
<p>Note that, when setting up the demo, you will have remove and add the web reference back into the project in order for it to work for you.</p>
<p>/// &lt;summary&gt;</p>
<p>/// Upload any file to the web service; this function may be</p>
<p>/// used in any application where it is necessary to upload</p>
<p>/// a file through a web service</p>
<p>/// &lt;/summary&gt;</p>
<p>/// &lt;param&gt;Pass the file path to upload&lt;/param&gt;</p>
<p>private void UploadFile(string filename)</p>
<p>{</p>
<p>    try</p>
<p>    {</p>
<p>        // get the exact file name from the path</p>
<p>        String strFile = System.IO.Path.GetFileName(filename);</p>
<p>        // create an instance fo the web service</p>
<p>        TestUploader.Uploader.FileUploader srv = new</p>
<p>        TestUploader.Uploader.FileUploader();</p>
<p>        // get the file information form the selected file</p>
<p>        FileInfo fInfo = new FileInfo(filename);</p>
<p>        // get the length of the file to see if it is possible</p>
<p>        // to upload it (with the standard 4 MB limit)</p>
<p>        long numBytes = fInfo.Length;</p>
<p>        double dLen = Convert.ToDouble(fInfo.Length / 1000000);</p>
<p>        // Default limit of 4 MB on web server</p>
<p>        // have to change the web.config to if</p>
<p>        // you want to allow larger uploads</p>
<p>        if (dLen &lt; 4)</p>
<p>        {</p>
<p>            // set up a file stream and binary reader for the</p>
<p>            // selected file</p>
<p>            FileStream fStream = new FileStream(filename,</p>
<p>            FileMode.Open, FileAccess.Read);</p>
<p>            BinaryReader br = new BinaryReader(fStream);</p>
<p>            // convert the file to a byte array</p>
<p>            byte[] data = br.ReadBytes((int)numBytes);</p>
<p>            br.Close();</p>
<p>            // pass the byte array (file) and file name to the web service</p>
<p>            string sTmp = srv.UploadFile(data, strFile);</p>
<p>            fStream.Close();</p>
<p>            fStream.Dispose();</p>
<p>            // this will always say OK unless an error occurs,</p>
<p>            // if an error occurs, the service returns the error message</p>
<p>            MessageBox.Show(&#8220;File Upload Status: &#8221; + sTmp, &#8220;File Upload&#8221;);</p>
<p>        }</p>
<p>        else</p>
<p>        {</p>
<p>             // Display message if the file was too large to upload</p>
<p>             MessageBox.Show(&#8220;The file selected exceeds the size limit for uploads.&#8221;, &#8220;File Size&#8221;);</p>
<p>         }</p>
<p>    }</p>
<p>    catch (Exception ex)</p>
<p>    {</p>
<p>         // display an error message to the user</p>
<p>         MessageBox.Show(ex.Message.ToString(), &#8220;Upload Error&#8221;);</p>
<p>    }</p>
<p>}</p>
<p>Following the UploadFile method, the next bit of code is used to handle the browse button&#8217;s click event. This code is used merely to display an open file dialog to the user and to take the file selected through that dialog and display the file name in the form&#8217;s file name text box.</p>
<p>/// &lt;summary&gt;</p>
<p>/// Allow the user to browse for a file</p>
<p>/// &lt;/summary&gt;</p>
<p>/// &lt;param&gt;&lt;/param&gt;</p>
<p>/// &lt;param&gt;&lt;/param&gt;</p>
<p>private void btnBrowse_Click(object sender, EventArgs e)</p>
<p>{</p>
<p>    openFileDialog1.Title = &#8220;Open File&#8221;;</p>
<p>    openFileDialog1.Filter = &#8220;All Files|*.*&#8221;;</p>
<p>    openFileDialog1.FileName = &#8220;&#8221;;</p>
<p>    try</p>
<p>    {</p>
<p>        openFileDialog1.InitialDirectory = &#8220;C:\\Temp&#8221;;</p>
<p>    }</p>
<p>    catch</p>
<p>    {</p>
<p>        // skip it</p>
<p>    }</p>
<p>    openFileDialog1.ShowDialog();</p>
<p>    if (openFileDialog1.FileName == &#8220;&#8221;)</p>
<p>        return;</p>
<p>    else</p>
<p>        txtFileName.Text = openFileDialog1.FileName; </p>
<p>}</p>
<p>The class wraps up with the button click event handler for the Upload button. This handler merely checks for text in the file name text box and, if something is there, it sends the value to the Upload method.</p>
<p>/// &lt;summary&gt;</p>
<p>/// If the user has selected a file, send it to the upload method,</p>
<p>/// the upload method will convert the file to a byte array and</p>
<p>/// send it through the web service</p>
<p>/// &lt;/summary&gt;</p>
<p>/// &lt;param&gt;&lt;/param&gt;</p>
<p>/// &lt;param&gt;&lt;/param&gt;</p>
<p>private void btnUpload_Click(object sender, EventArgs e)</p>
<p>{</p>
<p>    if (txtFileName.Text != string.Empty)</p>
<p>        UploadFile(txtFileName.Text);</p>
<p>    else</p>
<p>        MessageBox.Show(&#8220;You must select a file first.&#8221;, &#8220;No File Selected&#8221;);</p>
<p>}<br />
 </p>
<p>That wraps up all of the client and server side code necessary to upload any sort of file to a server from a Win Forms application.</p>
<p><strong>Summary</p>
<p></strong>This article was intended to demonstrate an easy approach to uploading any sort of a file to a web server from a Win Forms application. This example uses the default upload size of 4096 KB, if you need to upload larger files, you will need to alter this value by changing the httpRuntime maxRequestLength property to the desired value; at the same time you may need to increase the executionTimeout property to a greater value as well in order to support longer upload times. Take care when altering the values as Microsoft has established the default 4 MB limit to provide some safety against attempts to upload extremely large files that may hamper access to the server. </p>
<table cellspacing="0" cellpadding="4" width="100%">
<tbody>
<tr>
<td width="35" align="left" valign="top"> </td>
<td width="130" align="left">Download Files:</td>
<td align="left">
<table id="ctl00_ContentPlaceHolder1_ArticleFooter1_ucArticleButtons1_DataListDownloadFiles" border="0" cellspacing="0">
<tbody>
<tr>
<td align="center" valign="top"><a id="ctl00_ContentPlaceHolder1_ArticleFooter1_ucArticleButtons1_DataListDownloadFiles_ctl00_LinkButtonDownloadFiles" href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$ArticleFooter1$ucArticleButtons1$DataListDownloadFiles$ctl00$LinkButtonDownloadFiles','')">UploadAnyfilePack.zip</a></td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=185</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Top 10  (ASP.NET C#) CMS,FREE CMS System for ASP.NET</title>
		<link>http://wind-flowers.net/?p=183</link>
		<comments>http://wind-flowers.net/?p=183#comments</comments>
		<pubDate>Wed, 28 Apr 2010 14:41:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[CMS]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=183</guid>
		<description><![CDATA[ASP.NET C# CMS,FREE CMS System for ASP.NET ]]></description>
			<content:encoded><![CDATA[<p>1、Ludico<br />
URL：<a href="http://sourceforge.net/projects/ludico/">http://sourceforge.net/projects/ludico/</a><br />
2、umbraco　<br />
URL：<a href="http://umbraco.org/">http://umbraco.org/</a><br />
3、mojoPortal<br />
URL：<a href="http://www.mojoportal.com/">http://www.mojoportal.com/</a><br />
4、Kodai CMS<br />
URL：<a href="http://www.gotdotnet.com/workspaces/workspace.aspx?id=070f30c3-6089-4a75-b84c-fac654a7ec08">http://www.gotdotnet.com/workspaces/workspace.aspx?id=070f30c3-6089-4a75-b84c-fac654a7ec08</a><br />
5、nkCMS<br />
URL：<a href="http://nkcms.sourceforge.net/">http://nkcms.sourceforge.net/</a><br />
6、Go.Kryo<br />
URL：<a href="http://sourceforge.net/projects/gokryo/">http://sourceforge.net/projects/gokryo/</a><br />
7、Amplefile<br />
URL：<a href="http://sourceforge.net/projects/amplefile/">http://sourceforge.net/projects/amplefile/</a><br />
8、ndCMS<br />
URL：<a href="http://ndcms-net.sourceforge.net/">http://ndcms-net.sourceforge.net/</a><br />
9、Cuyahoga　　<br />
URL：<a href="http://www.cuyahoga-project.org/">http://www.cuyahoga-project.org/</a><br />
10、Rainbow<br />
<span style="font-size: x-small;">URL：</span><a style="text: _blank;" href="http://www.rainbowportal.net/Rainbow/Default.aspx" target="_blank"><span style="color: #0000ff;">http://www.rainbowportal.net/Rainbow/Default.aspx</span></a>　</p>
]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=183</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get mimetype Windows</title>
		<link>http://wind-flowers.net/?p=180</link>
		<comments>http://wind-flowers.net/?p=180#comments</comments>
		<pubDate>Wed, 28 Apr 2010 14:27:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=180</guid>
		<description><![CDATA[How to get mimetype windows]]></description>
			<content:encoded><![CDATA[<p><strong>What are MIME types?<br />
</strong>Similar to file extensions but more universally accepted, &#8220;MIME types&#8221; are used to identify the type of information that a file contains. While the file extension .html is informally understood to mean that the file is an HTML page, there is no requirement that it mean this, and many HTML pages have different file extensions.<br />
Here are some examples of common mime types seen on the web:<br />
<strong>Type Common                 File Extension              Purpose<br />
</strong>text/html             .html                Web Page<br />
image/png          .png                   PNG-format image<br />
image/jpeg         .jpeg                  JPEG-format image<br />
audio/mpeg       .mp3                 MPEG AudioFile</p>
<p><strong>How to get mimetypes?</strong><br />
private string MimeType(string Filename)<br />
{<br />
     string mime = &#8220;application/octetstream&#8221;;<br />
     string ext = System.IO.Path.GetExtension(Filename).ToLower();<br />
     Microsoft.Win32.RegistryKey rk = Microsoft.Win32.Registry.ClassesRoot.OpenSubKey(ext);<br />
     if (rk != null &amp;&amp; rk.GetValue(&#8220;Content Type&#8221;) != null)<br />
          mime = rk.GetValue(&#8220;Content Type&#8221;).ToString();<br />
     return mime;<br />
}</p>
<p><strong>Note:</strong><br />
This function needs permission to read from registry &#8211; so it might not be suited in a web scenario.</p>
]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=180</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Function to binary read the content from a file into a byte array</title>
		<link>http://wind-flowers.net/?p=177</link>
		<comments>http://wind-flowers.net/?p=177#comments</comments>
		<pubDate>Wed, 28 Apr 2010 14:13:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=177</guid>
		<description><![CDATA[convert any  file into byte array]]></description>
			<content:encoded><![CDATA[<p>How can I <strong>convert</strong> any  file into <strong>byte</strong> <strong>array</strong>?<br />
It is very easy to save your bytes to File, look at the example below, copy and paste it into your program:</p>
<p>public byte[] FileToArray(string sFilePath)<br />
{<br />
        System.IO.FileStream fs = new System.IO.FileStream(sFilePath,<br />
       System.IO.FileMode.Open, System.IO.FileAccess.Read);<br />
       System.IO.BinaryReader br = new System.IO.BinaryReader(fs);<br />
       Byte[] bytes = br.ReadBytes((Int32)fs.Length);<br />
       br.Close();<br />
       fs.Close();<br />
       return bytes;<br />
} </p>
<p>some time we require to convert file into byte to save into database or send to other system using remoting.<br />
We can use that function  to convert file into byte array.</p>
]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=177</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8216;Dancing With the Stars&#8217; Recap: Jake Takes to the Skies</title>
		<link>http://wind-flowers.net/?p=171</link>
		<comments>http://wind-flowers.net/?p=171#comments</comments>
		<pubDate>Wed, 28 Apr 2010 05:20:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Picture]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=171</guid>
		<description><![CDATA[We&#8217;re halfway through the season, and this is when it starts getting tough. People who are working hard and dancing well get sent packing. This week it was Jake&#8217;s turn to say goodbye. You have to be confident to pull off the samba, but technique matters too. Jake&#8217;s hip action, posture and timing have really [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_172" class="wp-caption alignnone" style="width: 460px"><a href="http://wind-flowers.net/wp-content/uploads/2010/04/dwts_jpavelka_500x270.jpg"><img class="size-full wp-image-172" title="dwts_jpavelka_" src="http://wind-flowers.net/wp-content/uploads/2010/04/dwts_jpavelka_500x270.jpg" alt="Jake Takes to the Skies" width="450" height="180" /></a><p class="wp-caption-text">Jake Takes to the Skies</p></div>
<p>We&#8217;re halfway through the season, and this is when it starts getting tough. People who are working hard and dancing well get sent packing. This week it was Jake&#8217;s turn to say goodbye. You have to be confident to pull off the samba, but technique matters too. Jake&#8217;s hip action, posture and timing have really improved over the last six weeks, but he stumbled coming out of a series of spins during this week&#8217;s routine. &#8220;The Bachelor&#8221; star talked about what a great experience the show was for him. Remember, it takes a brave man to cha-cha in his underwear. Jake was moved to tears as he told Chelsie that she was one of his best friends and thanked her for being so great to his fiancee Vienna.</p>
<p>Jake really upped his game the last two weeks, so it was hard to watch him go. It was a weird week for just about all of the show&#8217;s stars. Evan fell to fifth place on the leaderboard while Chad shot up to third and Erin to second. Hey, it&#8217;s live television and anything can happen.</p>
]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=171</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create a xml file with asp!</title>
		<link>http://wind-flowers.net/?p=169</link>
		<comments>http://wind-flowers.net/?p=169#comments</comments>
		<pubDate>Thu, 15 Apr 2010 02:18:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ASP]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=169</guid>
		<description><![CDATA[create a XML file with asp]]></description>
			<content:encoded><![CDATA[<p>The following example shows how to create a XML file with asp.<br />
First, we write a function named &#8220;CreateXml&#8221;</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p169code5'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p1695"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
</pre></td><td class="code" id="p169code5"><pre class="csharp" style="font-family:monospace;">	sub CreateXml<span style="color: #000000;">&#40;</span>FilePath<span style="color: #000000;">&#41;</span>
		startime<span style="color: #008000;">=</span>timer<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
		dim XmlDoc,Root
		Set XmlDoc <span style="color: #008000;">=</span> Server.<span style="color: #0000FF;">CreateObject</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;Microsoft.XMLDOM&quot;</span><span style="color: #000000;">&#41;</span>
			XmlDoc.<span style="color: #0000FF;">async</span> <span style="color: #008000;">=</span> <span style="color: #0600FF;">False</span>
			Set Root <span style="color: #008000;">=</span> XmlDoc.<span style="color: #0000FF;">createProcessingInstruction</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;xml&quot;</span>,<span style="color: #666666;">&quot;version='1.0' encoding='UTF-8'&quot;</span><span style="color: #000000;">&#41;</span>
			XmlDoc.<span style="color: #0000FF;">appendChild</span><span style="color: #000000;">&#40;</span>Root<span style="color: #000000;">&#41;</span>
			XmlDoc.<span style="color: #0000FF;">appendChild</span><span style="color: #000000;">&#40;</span>XmlDoc.<span style="color: #0000FF;">CreateElement</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;files&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
			XmlDoc.<span style="color: #0000FF;">Save</span><span style="color: #000000;">&#40;</span>Server.<span style="color: #0000FF;">MapPath</span><span style="color: #000000;">&#40;</span>FilePath<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
			Set Root <span style="color: #008000;">=</span> Nothing
		Set XmlDoc <span style="color: #008000;">=</span> Nothing
		LoadData<span style="color: #000000;">&#40;</span>ZipPathDir<span style="color: #000000;">&#41;</span>
		endtime<span style="color: #008000;">=</span>timer<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
		response.<span style="color: #0000FF;">Write</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;&lt;span style=' color:#ff0000;'&gt;time：&quot;</span> <span style="color: #008000;">&amp;</span> FormatNumber<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>endtime<span style="color: #008000;">-</span>startime<span style="color: #000000;">&#41;</span>,<span style="color: #FF0000;">3</span><span style="color: #000000;">&#41;</span> <span style="color: #008000;">&amp;</span> <span style="color: #666666;">&quot;s&lt;/span&gt;&quot;</span><span style="color: #000000;">&#41;</span>
&nbsp;
	End sub</pre></td></tr></table></div>

<p>then,we can use it to create xml file.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p169code6'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p1696"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p169code6"><pre class="csharp" style="font-family:monospace;">Dim ZipPathFile
ZipPathFile <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;update.xml&quot;</span>
CreateXml<span style="color: #000000;">&#40;</span>ZipPathFile<span style="color: #000000;">&#41;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=169</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to read text file in asp.net</title>
		<link>http://wind-flowers.net/?p=167</link>
		<comments>http://wind-flowers.net/?p=167#comments</comments>
		<pubDate>Thu, 15 Apr 2010 01:37:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asp.net]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=167</guid>
		<description><![CDATA[read text file in asp.net,first use a StreamReader that points to categorytlinks.txt, through a call to StreamReader.ReadLine returns each line as a string.]]></description>
			<content:encoded><![CDATA[<p>this is show how to read text from a text file(C#).</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p167code7'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p1677"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code" id="p167code7"><pre class="csharp" style="font-family:monospace;"><span style="color: #FF0000;">string</span> str <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;&quot;</span><span style="color: #008000;">;</span>
<span style="color: #0600FF;">using</span> <span style="color: #000000;">&#40;</span>StreamReader sr <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> StreamReader<span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;G:<span style="color: #008080; font-weight: bold;">\\</span>zencart<span style="color: #008080; font-weight: bold;">\\</span>categorytlinks.txt&quot;</span>, <span style="color: #000000;">System.<span style="color: #0000FF;">Text</span></span>.<span style="color: #0000FF;">Encoding</span>.<span style="color: #0600FF;">Default</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
     strline <span style="color: #008000;">=</span> sr.<span style="color: #0000FF;">ReadLine</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
     <span style="color: #0600FF;">while</span><span style="color: #000000;">&#40;</span>strline<span style="color: #008000;">!=</span><span style="color: #0600FF;">null</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
          str <span style="color: #008000;">+=</span> strline<span style="color: #008000;">+</span><span style="color: #666666;">&quot;<span style="color: #008080; font-weight: bold;">\r</span><span style="color: #008080; font-weight: bold;">\n</span>&quot;</span><span style="color: #008000;">;</span>
     <span style="color: #000000;">&#125;</span>
     sr.<span style="color: #0000FF;">Dispose</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
     sr.<span style="color: #0000FF;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
<span style="color: #000000;">&#125;</span>
Response.<span style="color: #0000FF;">Write</span><span style="color: #000000;">&#40;</span>str<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=167</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>20 amazing lightbox use JQUERY or MooTools</title>
		<link>http://wind-flowers.net/?p=163</link>
		<comments>http://wind-flowers.net/?p=163#comments</comments>
		<pubDate>Fri, 09 Apr 2010 05:30:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[JQUERY]]></category>
		<category><![CDATA[jQuery plug-ins]]></category>
		<category><![CDATA[lightbox]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=163</guid>
		<description><![CDATA[20 amazing lightbox use JQUERY or MooTools]]></description>
			<content:encoded><![CDATA[<h2>20 amazing lightbox use JQUERY or MooTools</h2>
<p><span id="result_box" class="short_text"><span style="background-color: #ebeff9;" title="为大家收集了这些，希望大家喜欢"><span style="font-size: large;">As we collected them, hope you like</p>
<p></span></span></span></p>
<p><span class="short_text"><span style="background-color: #ebeff9;" title="为大家收集了这些，希望大家喜欢"></span></span></p>
<h3><a href="http://gueschla.com/labs/smoothbox/">Smoothbox</a></h3>
<p><a href="http://gueschla.com/labs/smoothbox/"><br />
<img src="http://cssrainbow.cn/dw-content/demo10/mootools/Smoothbox.jpg" alt="Mootools lightbox script" /></a></p>
<p><strong> </strong></p>
<p><strong>Media:</strong> Images, Inline HTML, Ajax, iFrame</p>
<p><a href="http://gueschla.com/labs/smoothbox/">View Demo</a>    <a href="http://gueschla.com/labs/smoothbox/">Download</a></p>
<h3><a href="http://www.phatfusion.net/multibox/">Multibox</a></h3>
<p> </p>
<p><a href="http://www.phatfusion.net/multibox/"><img src="http://cssrainbow.cn/dw-content/demo10/mootools/Multibox.jpg" alt="Mootools lightbox script" /></a></p>
<p><strong> </strong></p>
<p><strong>Media:</strong> Images, Inline HTML, AJAX, iFrame, Flash, Video</p>
<p><a href="http://www.phatfusion.net/multibox/">View Demo</a>   <a href="http://www.phatfusion.net/multibox/">Download</a></p>
<h3><a href="http://www.roebox.com/">RoeBox</a></h3>
<p> </p>
<p><a href="http://www.roebox.com/"><img src="http://cssrainbow.cn/dw-content/demo10/mootools/RoeBox.jpg" alt="Mootools lightbox script" /></a></p>
<p><strong> </strong></p>
<p><strong>支持媒体:</strong> Images</p>
<p><a href="http://www.roebox.com/">View Demo</a>   <a href="http://www.roebox.com/">Download</a></p>
<h3><a href="http://www.doknowevil.net/litebox/">Litebox</a></h3>
<p> </p>
<p><a href="http://www.doknowevil.net/litebox/"><img src="http://cssrainbow.cn/dw-content/demo10/mootools/Litebox.jpg" alt="Mootools lightbox script" /></a></p>
<p><strong> </strong></p>
<p><strong>Media:</strong> Images</p>
<p><a href="http://www.doknowevil.net/litebox/">View Demo</a>   <a href="http://www.doknowevil.net/litebox/">Download</a></p>
<h3><a href="http://reghellin.com/milkbox/">Milkbox</a></h3>
<p> </p>
<p><a href="http://reghellin.com/milkbox/"><img src="http://cssrainbow.cn/dw-content/demo10/mootools/Milkbox.jpg" alt="Mootools lightbox script" /></a></p>
<p><strong> </strong></p>
<p><strong>Media:</strong> Images, Flash</p>
<p><a href="http://reghellin.com/milkbox/">View Demo</a>   <a href="http://reghellin.com/milkbox/">Download</a></p>
<h3><a href="http://www.digitalia.be/software/slimbox">Slimbox</a></h3>
<p> </p>
<p><a href="http://www.digitalia.be/software/slimbox"><img src="http://cssrainbow.cn/dw-content/demo10/mootools/Slimbox.jpg" alt="Mootools lightbox script" /></a></p>
<p><strong> </strong></p>
<p><strong>Media:</strong> Images</p>
<p><a href="http://www.digitalia.be/demo/slimbox/">View Demo</a>   <a href="http://www.digitalia.be/software/slimbox#download">Download</a></p>
<h3><a href="http://bertramakers.com/moolabs/imagezoom.php">ImageZoom</a></h3>
<p> </p>
<p><a href="http://bertramakers.com/moolabs/imagezoom.php"><img src="http://cssrainbow.cn/dw-content/demo10/mootools/ImageZoom.jpg" alt="Mootools lightbox script" /></a></p>
<p><strong> </strong></p>
<p><strong>Media:</strong> Images</p>
<p><a href="http://bertramakers.com/moolabs/imagezoom.php">View Demo</a>   <a href="http://bertramakers.com/moolabs/imagezoom.php">Download</a></p>
<h3><a href="http://iaian7.com/webcode/mediaboxAdvanced">mediaboxAdvanced</a></h3>
<p> </p>
<p><a href="http://iaian7.com/webcode/mediaboxAdvanced"><img src="http://cssrainbow.cn/dw-content/demo10/mootools/mediaboxAdvanced.jpg" alt="Mootools lightbox script" /></a></p>
<p><strong> </strong></p>
<p><strong>Media:</strong> Images, Inline HTML, AJAX, iFrame, Flash, Video</p>
<p><a href="http://iaian7.com/webcode/mediaboxAdvanced#examples">View Demo</a>   <a href="http://iaian7.com/webcode/mediaboxAdvanced#installation">Download</a></p>
<h3><a href="http://www.andrewplummer.com/code/quickbox/">QuickBox</a></h3>
<p> </p>
<p><a href="http://www.andrewplummer.com/code/quickbox/"><img src="http://cssrainbow.cn/dw-content/demo10/mootools/QuickBox.jpg" alt="Mootools lightbox script" /></a></p>
<p><strong> </strong></p>
<p><strong>Media:</strong> Images</p>
<p><a href="http://www.andrewplummer.com/code/quickbox/">View Demo</a>   <a href="http://www.andrewplummer.com/code/quickbox/">Download</a></p>
<h3><a href="http://digitarald.de/project/remooz/">ReMooz</a></h3>
<p> </p>
<p><a href="http://digitarald.de/project/remooz/"><img src="http://cssrainbow.cn/dw-content/demo10/mootools/ReMooz.jpg" alt="Mootools lightbox script" /></a></p>
<p><strong> </strong></p>
<p><strong>Media:</strong> Images, Inline HTML</p>
<p><a href="http://digitarald.de/project/remooz/1-0/showcase/flickr-big/">View Demo</a>   <a href="http://digitarald.de/project/remooz/">Download</a></p>
<h2>Top 10 jQuery Lightbox Scripts</h2>
<h3><a href="http://leandrovieira.com/projects/jquery/lightbox/">jQuery Lightbox Plugin</a></h3>
<p><a href="http://leandrovieira.com/projects/jquery/lightbox/"><img src="http://cssrainbow.cn/dw-content/demo10/jquery/lightbox.jpg" alt="Download Lightbox script" /></a></p>
<p><strong><br />
Supported Media:</strong> Images</p>
<p><a href="http://leandrovieira.com/projects/jquery/lightbox/">View Demo</a>   <a href="http://leandrovieira.com/projects/jquery/lightbox/">Download</a></p>
<h3><a href="http://fancy.klade.lv/">Fancybox</a></h3>
<p><a href="http://fancy.klade.lv/"><img src="http://cssrainbow.cn/dw-content/demo10/jquery/fancybox.jpg" alt="Download Lightbox script" /></a></p>
<p><strong><br />
Supported Media:</strong> Images, Inline HTML, iFrame</p>
<p><a href="http://fancy.klade.lv/example">View Demo</a>   <a href="http://fancy.klade.lv/">Download</a></p>
<h3><a href="http://www.shadowbox-js.com/index.html">Shadowbox</a></h3>
<p><a href="http://www.shadowbox-js.com/index.html"><img src="http://cssrainbow.cn/dw-content/demo10/jquery/shadowbox.jpg" alt="Download Lightbox script" /></a></p>
<p><strong><br />
Supported Media:</strong> Images, Inline HTML, iFrame, AJAX, Flash, Video</p>
<p><a href="http://www.shadowbox-js.com/index.html">View Demo</a>   <a href="http://www.shadowbox-js.com/index.html">Download</a></p>
<h3><a href="http://jquery.com/demo/thickbox/">ThickBox</a></h3>
<p><a href="http://jquery.com/demo/thickbox/"><img src="http://cssrainbow.cn/dw-content/demo10/jquery/thickbox.jpg" alt="Download Lightbox script" /></a></p>
<p><strong><br />
Supported Media:</strong> Images, Inline HTML, iFrame, AJAX</p>
<p><a href="http://jquery.com/demo/thickbox/">View Demo</a>   <a href="http://jquery.com/demo/thickbox/">Download</a></p>
<h3><a href="http://www.jasons-toolbox.com/SlightlyThickerbox/">Slightly Thickerbox</a></h3>
<p><a href="http://www.jasons-toolbox.com/SlightlyThickerbox/"><img src="http://cssrainbow.cn/dw-content/demo10/jquery/slightly.jpg" alt="Download Lightbox script" /></a></p>
<p><strong><br />
Supported Media:</strong> Images, AJAX, Video</p>
<p><a href="http://www.jasons-toolbox.com/SlightlyThickerbox/">View Demo</a>   <a href="http://www.jasons-toolbox.com/SlightlyThickerbox/">Download</a></p>
<h3><a href="http://orderedlist.com/articles/fancyzoom-meet-jquery">Fancy Zoom</a></h3>
<p><a href="http://orderedlist.com/articles/fancyzoom-meet-jquery"><img src="http://cssrainbow.cn/dw-content/demo10/jquery/fancyzoom.jpg" alt="Download Lightbox script" /></a></p>
<p><strong><br />
Supported Media:</strong> Images, Inline HTML, Flash</p>
<p><a href="http://orderedlist.com/demos/fancy-zoom-jquery/">View Demo</a>   <a href="http://orderedlist.com/articles/fancyzoom-meet-jquery">Download</a></p>
<h3><a href="http://famspam.com/facebox">Facebox</a></h3>
<p><a href="http://famspam.com/facebox"><img src="http://cssrainbow.cn/dw-content/demo10/jquery/facebox.jpg" alt="Download Lightbox script" /></a></p>
<p><strong><br />
Supported Media:</strong> Images, Inline HTML, AJAX</p>
<p><a href="http://famspam.com/facebox">View Demo</a>   <a href="http://famspam.com/facebox">Download</a></p>
<h3><a href="http://nyromodal.nyrodev.com/">nyroModal</a></h3>
<p><a href="http://nyromodal.nyrodev.com/"><img src="http://cssrainbow.cn/dw-content/demo10/jquery/nyromodal.jpg" alt="Download Lightbox script" /></a></p>
<p><strong><br />
Supported Media:</strong> Images, Inline HTML, iFrame, AJAX, Video</p>
<p><a href="http://nyromodal.nyrodev.com/">View Demo</a>   <a href="http://nyromodal.nyrodev.com/">Download</a></p>
<h3><a href="http://www.intelliance.fr/jquery/imagebox/">Interface Imagebox Demo</a></h3>
<p><a href="http://www.intelliance.fr/jquery/imagebox/"><img src="http://cssrainbow.cn/dw-content/demo10/jquery/imagebox.jpg" alt="Download Lightbox script" /></a></p>
<p><strong><br />
Supported Media:</strong> Images</p>
<p><a href="http://www.intelliance.fr/jquery/imagebox/">View Demo</a>   <a href="http://www.intelliance.fr/jquery/imagebox/">Download</a></p>
<h3><a href="http://www.pirolab.it/pirobox/">piroBox</a></h3>
<p><a href="http://www.pirolab.it/pirobox/"><img src="http://cssrainbow.cn/dw-content/demo10/jquery/piro.jpg" alt="Download Lightbox script" /></a></p>
<p><strong><br />
Supported Media:</strong> Images</p>
<p><a href="http://www.pirolab.it/pirobox/">View Demo</a>   <a href="http://www.pirolab.it/pirobox/">Download</a></p>
<h3><a href="http://jquery.com/demo/grey/">Greybox Redux</a></h3>
<p><a href="http://jquery.com/demo/grey/"><img src="http://cssrainbow.cn/dw-content/demo10/jquery/greybox.jpg" alt="Download Lightbox script" /></a></p>
<p><strong><br />
Supported Media:</strong> Images, iFrame</p>
<p><a href="http://jquery.com/demo/grey/">View Demo</a>   <a href="http://jquery.com/demo/grey/">Download</a></p>
<h3><a href="http://www.no-margin-for-errors.com/projects/prettyPhoto-jquery-lightbox-clone/">prettyPhoto</a></h3>
<p><a href="http://www.no-margin-for-errors.com/projects/prettyPhoto-jquery-lightbox-clone/"><img src="http://cssrainbow.cn/dw-content/demo10/jquery/piro.jpg" alt="Download Lightbox script" /></a></p>
<p><strong><br />
Supported Media:</strong> Images</p>
<p><a href="http://www.no-margin-for-errors.com/projects/prettyPhoto-jquery-lightbox-clone/">View Demo</a>   <a href="http://www.no-margin-for-errors.com/projects/prettyPhoto-jquery-lightbox-clone/">Download</a></p>
]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=163</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A good jQuery plug-ins &#8220;pop-up window&#8221; Facebox</title>
		<link>http://wind-flowers.net/?p=158</link>
		<comments>http://wind-flowers.net/?p=158#comments</comments>
		<pubDate>Fri, 09 Apr 2010 02:04:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[JQUERY]]></category>
		<category><![CDATA[jQuery plug-ins]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=158</guid>
		<description><![CDATA[facebox is a jquery plug-ins. we can show images or divs use it.
it very easy use.]]></description>
			<content:encoded><![CDATA[<p>facebox is a jquery plug-ins. we can show images or divs use it.<br />
it very easy use.</p>
<p>You&#8217;ll need a loading image, close label, four corners, and solid border images in addition to the javascript and css files. All are included in the tarball.</p>
<p>DEMO<br />
<a href="http://famspam.com/facebox/">click here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=158</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How Get Strong, Toned Legs ?</title>
		<link>http://wind-flowers.net/?p=156</link>
		<comments>http://wind-flowers.net/?p=156#comments</comments>
		<pubDate>Thu, 25 Mar 2010 00:59:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Health]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=156</guid>
		<description><![CDATA[Get Strong and Toned Legs.]]></description>
			<content:encoded><![CDATA[<p>This routine targets all of your leg muscles, from your butt down. In addition to making your lower half look fabulous, this workout will also help you walk faster. A recent study found that simply doing one move to strengthen your quads (the fronts of your thighs) could increase your walking speed by 15 percent. That&#8217;s equivalent to increasing your pace from 3.5 mph to 4 mph. Imagine what you could do if you shape up all of your lower-body muscles. These exercises also challenge your balance, giving your core muscles an extra workout, and improve your posture for a stronger, pain-free stride. (If the balance challenge is too hard, hold on to something sturdy.)</p>
<p>You&#8217;ll need a resistance band for at least two of the following moves. Position the band as described, and check that it&#8217;s secure before you begin the exercise. If you&#8217;re instructed to make a loop from the band, be aware that the larger the loop, the easier the resistance will be; the smaller the loop, the harder it will be. You can also increase the resistance by moving farther away from the anchor point.</p>
<p>If you need to tie the band in a loop around your lower legs for an exercise, you can wrap it around your legs twice for maximum resistance. Just remember, don&#8217;t sacrifice good form for increased challenge. Stretching and releasing the band&#8217;s resistance with control is key to maximizing toning and avoiding injury. Don&#8217;t let the band snap back once you&#8217;ve reached the top of the move; pause, then slowly release, resisting against the band&#8217;s pull as you do.</p>
<p>Practice this routine 2 days a week for 4 weeks. Start with 6 to 8 repetitions, working up to 12 to 15 reps by the fourth week.</p>
<p>Cross Leg Swing (targets inner thighs)</p>
<p>Main move: Attach the resistance band near the floor around a sturdy furniture leg, a railing, or under a heavy piece of furniture so that it forms a loop. Stand so that the band is on your left. Put the band around your left foot near your ankle. Step away from the anchor point until the band is taut when your left leg is extended out to the side, toes pointed.</p>
<p>Flex your left foot, contract your inner thigh, and swing your leg across the front of your body toward your right leg. Hold, then slowly return to start without letting your left foot touch the floor between reps.</p>
<p>Make it easier: Lower your foot to the floor between reps.</p>
<p>Make it harder: Hold your leg in the up position and pulse it twice, lifting and lowering an inch or so, before returning to start for your next rep.</p>
<p>Moving Squat (targets quads, and outer thighs)</p>
<p>Main move: Stand with your feet together and your arms at your sides. Step your right foot out to the side 2 to 3 feet, bend your hips and knees, and sit back as if you&#8217;re lowering into a chair. Simultaneously, swing your arms forward to about chest height. Keep your knees over your feet, not out past your toes or rolling in toward each other. Your upper body will lean forward about 45 degrees. Stand back up, bringing your left foot toward your right. Step to the right again. Continue moving to the right until you run out of space or you&#8217;ve completed all of the reps. Then repeat to the left. You may need to alternate going side to side, depending on how much space you have.</p>
<p>Make it easier: Do stationary squats with your feet about shoulder-width apart the entire time.</p>
<p>Make it harder: Tie a resistance band around your lower legs so that it&#8217;s taut, then step and squat.</p>
<p>One-Leg Squat (targets quads, glutes, and hamstrings)</p>
<p>Main move: Balance on your right leg with the toes of your left foot lightly touching the floor and your arms at your sides. Bend your hips and right knee and sit back as if you were lowering halfway into a chair. Let your arms swing forward to about chest height. Keep your right knee behind your toes. Press into your right foot and stand back up.</p>
<p>Make it easier: Hold onto a chair for balance and/or don&#8217;t sit back as far.</p>
<p>Make it harder: Balance on your right leg with your left foot completely off the floor.</p>
<p>Rear Kick (targets glutes and hamstrings)</p>
<p>Main move: Attach the resistance band near the floor around a sturdy furniture leg, a railing, or under a heavy piece of furniture so that it forms a loop. Stand facing the anchor point and put the band around your right foot near your ankle. Step backward if needed so the band is taut. Balancing on your left leg, with your left knee slightly bent, press your right leg back, with your foot flexed, and squeeze your butt. Hold and slowly lower without touching your foot to the floor between reps.</p>
<p>Make it easier: Lower your foot to the floor between reps.</p>
<p>Make it harder: Hold your leg in the up position and pulse it twice, lifting and lowering it an inch or so, before lowering it completely.</p>
<p>Reverse Lunge (targets quads, glutes, and calves)</p>
<p>Main move: Stand with your feet together and your arms at your sides. Step 2 to 3 feet behind you with your right foot, toes pointing forward, and bend your knees so that the right one is almost to the floor (your right heel will come off the floor). Simultaneously, swing your arms forward to about chest height. Keep your left knee directly over your left ankle; if it&#8217;s coming forward, shift your hips back or take a bigger step back. Press into your front foot and stand back up, bringing your feet together. Repeat, stepping back with the left leg. Continue alternating legs until you complete the recommended number of reps with each leg.</p>
<p>Make it easier: Do stationary lunges, with your right foot 2 to 3 feet in front of your left foot (heel will be up) the entire time.</p>
<p>Make it harder: Add a heel lift. As you stand back up and bring your feet together, rise up onto your toes. Hold for a second, then lower and step back into the next lunge.</p>
]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=156</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Upload multiple files in asp.net</title>
		<link>http://wind-flowers.net/?p=152</link>
		<comments>http://wind-flowers.net/?p=152#comments</comments>
		<pubDate>Tue, 23 Mar 2010 06:02:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asp.net]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=152</guid>
		<description><![CDATA[Upload multiple files in asp.net]]></description>
			<content:encoded><![CDATA[<p><strong>In asp.net 2.0, if you want to upload a file, you can use FileUpload server control in your in your applications.like this:<br />
ASPX code:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p152code8'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p1528"><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code" id="p152code8"><pre class="csharp" style="font-family:monospace;"><span style="color: #008000;">&lt;</span>div<span style="color: #008000;">&gt;</span>
        <span style="color: #008000;">&lt;</span>asp<span style="color: #008000;">:</span>FileUpload ID<span style="color: #008000;">=</span><span style="color: #666666;">&quot;FileUpload1&quot;</span> runat<span style="color: #008000;">=</span><span style="color: #666666;">&quot;server&quot;</span> <span style="color: #008000;">/&gt;</span>
        <span style="color: #008000;">&lt;</span>asp<span style="color: #008000;">:</span>Button ID<span style="color: #008000;">=</span><span style="color: #666666;">&quot;Button1&quot;</span> runat<span style="color: #008000;">=</span><span style="color: #666666;">&quot;server&quot;</span> OnClick<span style="color: #008000;">=</span><span style="color: #666666;">&quot;Button1_Click&quot;</span>  Text<span style="color: #008000;">=</span><span style="color: #666666;">&quot;Upload--File&quot;</span> <span style="color: #008000;">/&gt;</span>
        <span style="color: #008000;">&lt;</span>asp<span style="color: #008000;">:</span>Label ID<span style="color: #008000;">=</span><span style="color: #666666;">&quot;Label1&quot;</span> runat<span style="color: #008000;">=</span><span style="color: #666666;">&quot;server&quot;</span><span style="color: #008000;">&gt;&lt;/</span>asp<span style="color: #008000;">:</span>Label<span style="color: #008000;">&gt;&lt;/</span>div<span style="color: #008000;">&gt;</span></pre></td></tr></table></div>

<p>ASPX.CS code:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p152code9'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p1529"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
</pre></td><td class="code" id="p152code9"><pre class="csharp" style="font-family:monospace;">    <span style="color: #0600FF;">protected</span> <span style="color: #0600FF;">void</span> Button1_Click<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">object</span> sender, EventArgs e<span style="color: #000000;">&#41;</span>
    <span style="color: #000000;">&#123;</span>
        <span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>FileUpload1.<span style="color: #0000FF;">HasFile</span><span style="color: #000000;">&#41;</span>
            <span style="color: #0600FF;">try</span>
            <span style="color: #000000;">&#123;</span>
                FileUpload1.<span style="color: #0000FF;">SaveAs</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;G:<span style="color: #008080; font-weight: bold;">\\</span>Uploads<span style="color: #008080; font-weight: bold;">\\</span>&quot;</span> <span style="color: #008000;">+</span>  FileUpload1.<span style="color: #0000FF;">FileName</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
                Label1.<span style="color: #0000FF;">Text</span> <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;File name: &quot;</span> <span style="color: #008000;">+</span>
                     FileUpload1.<span style="color: #0000FF;">PostedFile</span>.<span style="color: #0000FF;">FileName</span> <span style="color: #008000;">+</span> <span style="color: #666666;">&quot;&lt;br&gt;&quot;</span> <span style="color: #008000;">+</span>
                     FileUpload1.<span style="color: #0000FF;">PostedFile</span>.<span style="color: #0000FF;">ContentLength</span> <span style="color: #008000;">+</span> <span style="color: #666666;">&quot; kb&lt;br&gt;&quot;</span> <span style="color: #008000;">+</span>
                     <span style="color: #666666;">&quot;Content type: &quot;</span> <span style="color: #008000;">+</span>
                     FileUpload1.<span style="color: #0000FF;">PostedFile</span>.<span style="color: #0000FF;">ContentType</span><span style="color: #008000;">;</span>
            <span style="color: #000000;">&#125;</span>
            <span style="color: #0600FF;">catch</span> <span style="color: #000000;">&#40;</span>Exception ex<span style="color: #000000;">&#41;</span>
            <span style="color: #000000;">&#123;</span>
                Label1.<span style="color: #0000FF;">Text</span> <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;ERROR: &quot;</span> <span style="color: #008000;">+</span> ex.<span style="color: #0000FF;">Message</span>.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #000000;">&#125;</span>
        <span style="color: #0600FF;">else</span>
        <span style="color: #000000;">&#123;</span>
            Label1.<span style="color: #0000FF;">Text</span> <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;You have not specified a file.&quot;</span><span style="color: #008000;">;</span>
        <span style="color: #000000;">&#125;</span>
    <span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p>But, if we want to Upload multiple files, how can we do ?<br />
aspx:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p152code10'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p15210"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
</pre></td><td class="code" id="p152code10"><pre class="csharp" style="font-family:monospace;"><span style="color: #008000;">&lt;</span>html xmlns<span style="color: #008000;">=</span><span style="color: #666666;">&quot;http://www.w3.org/1999/xhtml&quot;</span><span style="color: #008000;">&gt;</span>
<span style="color: #008000;">&lt;</span>head runat<span style="color: #008000;">=</span><span style="color: #666666;">&quot;server&quot;</span><span style="color: #008000;">&gt;</span>
  <span style="color: #008000;">&lt;</span>title<span style="color: #008000;">&gt;</span>Upload multiple files<span style="color: #008000;">&lt;/</span>title<span style="color: #008000;">&gt;</span>
&nbsp;
  <span style="color: #008000;">&lt;</span>script type<span style="color: #008000;">=</span><span style="color: #666666;">&quot;text/javascript&quot;</span><span style="color: #008000;">&gt;</span>
    function addFiles<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
      var div <span style="color: #008000;">=</span> document.<span style="color: #0000FF;">createElement</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;div&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
      var f <span style="color: #008000;">=</span> document.<span style="color: #0000FF;">createElement</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;input&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
      f.<span style="color: #0000FF;">setAttribute</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;type&quot;</span>, <span style="color: #666666;">&quot;file&quot;</span><span style="color: #000000;">&#41;</span>
      f.<span style="color: #0000FF;">setAttribute</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;name&quot;</span>, <span style="color: #666666;">&quot;File&quot;</span><span style="color: #000000;">&#41;</span>
      f.<span style="color: #0000FF;">setAttribute</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;size&quot;</span>, <span style="color: #666666;">&quot;40&quot;</span><span style="color: #000000;">&#41;</span>
      div.<span style="color: #0000FF;">appendChild</span><span style="color: #000000;">&#40;</span>f<span style="color: #000000;">&#41;</span>
      var d <span style="color: #008000;">=</span> document.<span style="color: #0000FF;">createElement</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;input&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
      d.<span style="color: #0000FF;">setAttribute</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;type&quot;</span>, <span style="color: #666666;">&quot;button&quot;</span><span style="color: #000000;">&#41;</span>
      d.<span style="color: #0000FF;">setAttribute</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;onclick&quot;</span>, <span style="color: #666666;">&quot;deteFile(this)&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
      d.<span style="color: #0000FF;">setAttribute</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;value&quot;</span>, <span style="color: #666666;">&quot;remove&quot;</span><span style="color: #000000;">&#41;</span>
      div.<span style="color: #0000FF;">appendChild</span><span style="color: #000000;">&#40;</span>d<span style="color: #000000;">&#41;</span>
      document.<span style="color: #0000FF;">getElementById</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;_container&quot;</span><span style="color: #000000;">&#41;</span>.<span style="color: #0000FF;">appendChild</span><span style="color: #000000;">&#40;</span>div<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
    <span style="color: #000000;">&#125;</span>
&nbsp;
    function deteFile<span style="color: #000000;">&#40;</span>o<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
      <span style="color: #0600FF;">while</span> <span style="color: #000000;">&#40;</span>o.<span style="color: #0000FF;">tagName</span> <span style="color: #008000;">!=</span> <span style="color: #666666;">&quot;DIV&quot;</span><span style="color: #000000;">&#41;</span> o <span style="color: #008000;">=</span> o.<span style="color: #0000FF;">parentNode</span><span style="color: #008000;">;</span>
      o.<span style="color: #0000FF;">parentNode</span>.<span style="color: #0000FF;">removeChild</span><span style="color: #000000;">&#40;</span>o<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
    <span style="color: #000000;">&#125;</span>
  <span style="color: #008000;">&lt;/</span>script<span style="color: #008000;">&gt;</span>
<span style="color: #008000;">&lt;/</span>head<span style="color: #008000;">&gt;</span>
<span style="color: #008000;">&lt;</span>body<span style="color: #008000;">&gt;</span>
  <span style="color: #008000;">&lt;</span>form id<span style="color: #008000;">=</span><span style="color: #666666;">&quot;form1&quot;</span> runat<span style="color: #008000;">=</span><span style="color: #666666;">&quot;server&quot;</span> method<span style="color: #008000;">=</span><span style="color: #666666;">&quot;post&quot;</span> enctype<span style="color: #008000;">=</span><span style="color: #666666;">&quot;multipart/form-data&quot;</span><span style="color: #008000;">&gt;</span>
  <span style="color: #008000;">&lt;</span>h3<span style="color: #008000;">&gt;</span>Upload multiple files<span style="color: #008000;">&lt;/</span>h3<span style="color: #008000;">&gt;</span>
   <span style="color: #008000;">&lt;</span>div id<span style="color: #008000;">=</span><span style="color: #666666;">&quot;_container&quot;</span><span style="color: #008000;">&gt;</span>
    <span style="color: #008000;">&lt;</span>input type<span style="color: #008000;">=</span><span style="color: #666666;">&quot;file&quot;</span> size<span style="color: #008000;">=</span><span style="color: #666666;">&quot;50&quot;</span> name<span style="color: #008000;">=</span><span style="color: #666666;">&quot;File&quot;</span> <span style="color: #008000;">/&gt;</span>
  <span style="color: #008000;">&lt;/</span>div<span style="color: #008000;">&gt;</span>
  <span style="color: #008000;">&lt;</span>div<span style="color: #008000;">&gt;</span>
    <span style="color: #008000;">&lt;</span>input type<span style="color: #008000;">=</span><span style="color: #666666;">&quot;button&quot;</span> value<span style="color: #008000;">=</span><span style="color: #666666;">&quot;Add&quot;</span> onclick<span style="color: #008000;">=</span><span style="color: #666666;">&quot;addFiles()&quot;</span> <span style="color: #008000;">/&gt;</span>
  <span style="color: #008000;">&lt;/</span>div<span style="color: #008000;">&gt;</span>
  <span style="color: #008000;">&lt;</span>div style<span style="color: #008000;">=</span><span style="color: #666666;">&quot;padding:10px 0&quot;</span><span style="color: #008000;">&gt;</span>
    <span style="color: #008000;">&lt;</span>asp<span style="color: #008000;">:</span>Button runat<span style="color: #008000;">=</span><span style="color: #666666;">&quot;server&quot;</span> Text<span style="color: #008000;">=</span><span style="color: #666666;">&quot;Upload files&quot;</span> ID<span style="color: #008000;">=</span><span style="color: #666666;">&quot;UploadButton&quot;</span> onclick<span style="color: #008000;">=</span><span style="color: #666666;">&quot;UploadButton_Click&quot;</span><span style="color: #008000;">&gt;&lt;/</span>asp<span style="color: #008000;">:</span>Button<span style="color: #008000;">&gt;</span>
  <span style="color: #008000;">&lt;/</span>div<span style="color: #008000;">&gt;</span>
  <span style="color: #008000;">&lt;</span>div<span style="color: #008000;">&gt;</span>
    <span style="color: #008000;">&lt;</span>asp<span style="color: #008000;">:</span>Label ID<span style="color: #008000;">=</span><span style="color: #666666;">&quot;Label1&quot;</span> runat<span style="color: #008000;">=</span><span style="color: #666666;">&quot;server&quot;</span>  Width<span style="color: #008000;">=</span><span style="color: #666666;">&quot;500px&quot;</span> BorderStyle<span style="color: #008000;">=</span><span style="color: #666666;">&quot;None&quot;</span> BorderColor<span style="color: #008000;">=</span><span style="color: #666666;">&quot;White&quot;</span><span style="color: #008000;">&gt;&lt;/</span>asp<span style="color: #008000;">:</span>Label<span style="color: #008000;">&gt;</span>
  <span style="color: #008000;">&lt;/</span>div<span style="color: #008000;">&gt;</span>
  <span style="color: #008000;">&lt;/</span>form<span style="color: #008000;">&gt;</span>
<span style="color: #008000;">&lt;/</span>body<span style="color: #008000;">&gt;</span>
<span style="color: #008000;">&lt;/</span>html<span style="color: #008000;">&gt;</span></pre></td></tr></table></div>

<p>aspx.cs:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p152code11'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p15211"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
</pre></td><td class="code" id="p152code11"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF;">protected</span> <span style="color: #0600FF;">void</span> UploadButton_Click<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">object</span> sender, EventArgs e<span style="color: #000000;">&#41;</span>
    <span style="color: #000000;">&#123;</span>
      <span style="color: #008080; font-style: italic;">///foreach File form</span>
      HttpFileCollection files <span style="color: #008000;">=</span> HttpContext.<span style="color: #0000FF;">Current</span>.<span style="color: #0000FF;">Request</span>.<span style="color: #0000FF;">Files</span><span style="color: #008000;">;</span>
      strMsg.<span style="color: #0000FF;">Append</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;file list is：&lt;hr color='red'/&gt;&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
      <span style="color: #0600FF;">try</span>
      <span style="color: #000000;">&#123;</span>
        <span style="color: #0600FF;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #FF0000;">int</span> iFile <span style="color: #008000;">=</span> <span style="color: #FF0000;">0</span><span style="color: #008000;">;</span> iFile <span style="color: #008000;">&lt;</span> files.<span style="color: #0000FF;">Count</span><span style="color: #008000;">;</span> iFile<span style="color: #008000;">++</span><span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#123;</span>
          HttpPostedFile postedFile <span style="color: #008000;">=</span> files<span style="color: #000000;">&#91;</span>iFile<span style="color: #000000;">&#93;</span><span style="color: #008000;">;</span>
          <span style="color: #FF0000;">string</span> fileName, fileExtension<span style="color: #008000;">;</span>
          fileName <span style="color: #008000;">=</span> <span style="color: #000000;">System.<span style="color: #0000FF;">IO</span></span>.<span style="color: #0000FF;">Path</span>.<span style="color: #0000FF;">GetFileName</span><span style="color: #000000;">&#40;</span>postedFile.<span style="color: #0000FF;">FileName</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
          <span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>fileName <span style="color: #008000;">!=</span> <span style="color: #666666;">&quot;&quot;</span><span style="color: #000000;">&#41;</span>
          <span style="color: #000000;">&#123;</span>
            fileExtension <span style="color: #008000;">=</span> <span style="color: #000000;">System.<span style="color: #0000FF;">IO</span></span>.<span style="color: #0000FF;">Path</span>.<span style="color: #0000FF;">GetExtension</span><span style="color: #000000;">&#40;</span>fileName<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            strMsg.<span style="color: #0000FF;">Append</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;type：&quot;</span> <span style="color: #008000;">+</span> postedFile.<span style="color: #0000FF;">ContentType</span>.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #008000;">+</span> <span style="color: #666666;">&quot;&lt;br&gt;&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            strMsg.<span style="color: #0000FF;">Append</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;client dress：&quot;</span> <span style="color: #008000;">+</span> postedFile.<span style="color: #0000FF;">FileName</span> <span style="color: #008000;">+</span> <span style="color: #666666;">&quot;&lt;br&gt;&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            strMsg.<span style="color: #0000FF;">Append</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;file name：&quot;</span> <span style="color: #008000;">+</span> fileName <span style="color: #008000;">+</span> <span style="color: #666666;">&quot;&lt;br&gt;&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            strMsg.<span style="color: #0000FF;">Append</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;fileExtension ：&quot;</span> <span style="color: #008000;">+</span> fileExtension <span style="color: #008000;">+</span> <span style="color: #666666;">&quot;&lt;br&gt;&lt;hr&gt;&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            postedFile.<span style="color: #0000FF;">SaveAs</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">System.<span style="color: #0000FF;">Web</span></span>.<span style="color: #0000FF;">HttpContext</span>.<span style="color: #0000FF;">Current</span>.<span style="color: #0000FF;">Request</span>.<span style="color: #0000FF;">MapPath</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;photoshops/&quot;</span><span style="color: #000000;">&#41;</span> <span style="color: #008000;">+</span> fileName<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
          <span style="color: #000000;">&#125;</span>
        <span style="color: #000000;">&#125;</span>
        Label1.<span style="color: #0000FF;">Text</span> <span style="color: #008000;">=</span> strMsg.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
      <span style="color: #000000;">&#125;</span>
      <span style="color: #0600FF;">catch</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">System</span>.<span style="color: #0000FF;">Exception</span> Ex<span style="color: #000000;">&#41;</span>
      <span style="color: #000000;">&#123;</span>
        Label1.<span style="color: #0000FF;">Text</span> <span style="color: #008000;">=</span> Ex.<span style="color: #0000FF;">Message</span><span style="color: #008000;">;</span>
      <span style="color: #000000;">&#125;</span>
    <span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p>Note: the form must set <strong>enctype=&#8221;multipart/form-data&#8221;</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=152</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Execute a query then return SqlDataReader from mssql database</title>
		<link>http://wind-flowers.net/?p=150</link>
		<comments>http://wind-flowers.net/?p=150#comments</comments>
		<pubDate>Tue, 23 Mar 2010 05:38:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[SqlDataReader]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=150</guid>
		<description><![CDATA[Execute a query then return SqlDataReader]]></description>
			<content:encoded><![CDATA[<p>Note: After calling this method, be sure to SqlDataReader to Close.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p150code12'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p15012"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
</pre></td><td class="code" id="p150code12"><pre class="csharp" style="font-family:monospace;">	<span style="color: #0600FF;">public</span> <span style="color: #0600FF;">static</span> <span style="color: #FF0000;">string</span> connectionString <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;server=192.168.1.1;database=TestDB;uid=sa;pwd=sa&quot;</span><span style="color: #008000;">;</span>
	<span style="color: #0600FF;">public</span> <span style="color: #0600FF;">static</span> SqlDataReader ExecuteReader<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">string</span> strSQL<span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#123;</span>
            SqlConnection connection <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> SqlConnection<span style="color: #000000;">&#40;</span>connectionString<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            SqlCommand cmd <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> SqlCommand<span style="color: #000000;">&#40;</span>strSQL, connection<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #0600FF;">try</span>
            <span style="color: #000000;">&#123;</span>
                connection.<span style="color: #0000FF;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
                SqlDataReader myReader <span style="color: #008000;">=</span> cmd.<span style="color: #0000FF;">ExecuteReader</span><span style="color: #000000;">&#40;</span>CommandBehavior.<span style="color: #0000FF;">CloseConnection</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
                <span style="color: #0600FF;">return</span> myReader<span style="color: #008000;">;</span>
            <span style="color: #000000;">&#125;</span>
            <span style="color: #0600FF;">catch</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">System.<span style="color: #0000FF;">Data</span></span>.<span style="color: #0000FF;">SqlClient</span>.<span style="color: #0000FF;">SqlException</span> e<span style="color: #000000;">&#41;</span>
            <span style="color: #000000;">&#123;</span>
                <span style="color: #0600FF;">throw</span> e<span style="color: #008000;">;</span>
            <span style="color: #000000;">&#125;</span>   
&nbsp;
        <span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=150</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convert Enum to List</title>
		<link>http://wind-flowers.net/?p=148</link>
		<comments>http://wind-flowers.net/?p=148#comments</comments>
		<pubDate>Tue, 23 Mar 2010 04:55:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[enum]]></category>
		<category><![CDATA[List]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=148</guid>
		<description><![CDATA[introduce enum and return a generic list populated with each enum item.]]></description>
			<content:encoded><![CDATA[<p>An enumeration is a named constant whose underlying type is any integral type except Char. If no underlying type is explicitly declared, Int32 is used. Programming languages typically provide syntax to declare an enumeration that consists of a set of named constants and their values.<br />
example1:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p148code13'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p14813"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code" id="p148code13"><pre class="csharp" style="font-family:monospace;"><span style="color: #FF0000;">enum</span> <span style="color: #FF0000;">class</span> Colors
<span style="color: #000000;">&#123;</span>
   <span style="color: #0600FF;">public</span> <span style="color: #FF0000;">enum</span> SetType <span style="color: #000000;">&#123;</span>
   	Red <span style="color: #008000;">=</span> <span style="color: #FF0000;">1</span>,
   	Green <span style="color: #008000;">=</span> <span style="color: #FF0000;">2</span>,
   	Blue <span style="color: #008000;">=</span> <span style="color: #FF0000;">4</span>,
   	Yellow <span style="color: #008000;">=</span> <span style="color: #FF0000;">8</span>
   <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span><span style="color: #008000;">;</span></pre></td></tr></table></div>

<p>We can get value from this enum:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p148code14'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p14814"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p148code14"><pre class="csharp" style="font-family:monospace;">Console.<span style="color: #0000FF;">WriteLine</span><span style="color: #000000;">&#40;</span>Colors.<span style="color: #0000FF;">Green</span>.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span></pre></td></tr></table></div>

<p>We can takes an enum type and returns a generic list populated with each enum item.<br />
first,we write a class name</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p148code15'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p14815"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
</pre></td><td class="code" id="p148code15"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF;">namespace</span> wind<span style="color: #008000;">-</span>flowers.<span style="color: #0000FF;">Core</span> <span style="color: #000000;">&#123;</span>
    <span style="color: #000000;">&#91;</span>Serializable<span style="color: #000000;">&#93;</span>
    <span style="color: #0600FF;">public</span> <span style="color: #FF0000;">class</span> SetCollections <span style="color: #000000;">&#123;</span>
        <span style="color: #0600FF;">public</span> SetCollections<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#125;</span>
        <span style="color: #0600FF;">public</span> SetCollections<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">string</span> id<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
            <span style="color: #0600FF;">this</span>._id <span style="color: #008000;">=</span> id<span style="color: #008000;">;</span>
        <span style="color: #000000;">&#125;</span>
        <span style="color: #0600FF;">public</span> SetCollections<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">string</span> id, <span style="color: #FF0000;">string</span> title<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
            <span style="color: #0600FF;">this</span>._id <span style="color: #008000;">=</span> id<span style="color: #008000;">;</span>
            <span style="color: #0600FF;">this</span>._title <span style="color: #008000;">=</span> title<span style="color: #008000;">;</span>
        <span style="color: #000000;">&#125;</span>
&nbsp;
        <span style="color: #0600FF;">private</span> <span style="color: #FF0000;">string</span> _id<span style="color: #008000;">;</span>
        <span style="color: #0600FF;">public</span> <span style="color: #FF0000;">string</span> Id <span style="color: #000000;">&#123;</span>
            get <span style="color: #000000;">&#123;</span> <span style="color: #0600FF;">return</span> _id<span style="color: #008000;">;</span> <span style="color: #000000;">&#125;</span>
            set <span style="color: #000000;">&#123;</span> _id <span style="color: #008000;">=</span> value<span style="color: #008000;">;</span> <span style="color: #000000;">&#125;</span>
        <span style="color: #000000;">&#125;</span>
        <span style="color: #0600FF;">private</span> <span style="color: #FF0000;">string</span> _title<span style="color: #008000;">;</span>
        <span style="color: #0600FF;">public</span> <span style="color: #FF0000;">string</span> Title <span style="color: #000000;">&#123;</span>
            get <span style="color: #000000;">&#123;</span> <span style="color: #0600FF;">return</span> _title<span style="color: #008000;">;</span> <span style="color: #000000;">&#125;</span>
            set <span style="color: #000000;">&#123;</span> _title <span style="color: #008000;">=</span> value<span style="color: #008000;">;</span> <span style="color: #000000;">&#125;</span>
        <span style="color: #000000;">&#125;</span>
    <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p>then , we can get a List<SetCollections> from enum Colors:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p148code16'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p14816"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
</pre></td><td class="code" id="p148code16"><pre class="csharp" style="font-family:monospace;">	<span style="color: #0600FF;">public</span>  List<span style="color: #008000;">&lt;</span>SetCollections<span style="color: #008000;">&gt;</span> SetList<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
            List<span style="color: #008000;">&lt;</span>SetCollections<span style="color: #008000;">&gt;</span> List <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> List<span style="color: #008000;">&lt;</span>SetCollections<span style="color: #008000;">&gt;</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #FF0000;">String</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> EnumTypes <span style="color: #008000;">=</span> <span style="color: #FF0000;">Enum</span>.<span style="color: #0000FF;">GetNames</span><span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?q=typeof+msdn.microsoft.com"><span style="color: #008000;">typeof</span></a><span style="color: #000000;">&#40;</span>Colors.<span style="color: #0000FF;">SetType</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #0600FF;">foreach</span> <span style="color: #000000;">&#40;</span><span style="color: #FF0000;">int</span> i <span style="color: #0600FF;">in</span> <span style="color: #FF0000;">Enum</span>.<span style="color: #0000FF;">GetValues</span><span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?q=typeof+msdn.microsoft.com"><span style="color: #008000;">typeof</span></a><span style="color: #000000;">&#40;</span>Colors.<span style="color: #0000FF;">SetType</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
                SetCollections collecte <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> SetCollections<span style="color: #000000;">&#40;</span>
                        i.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, 
                        <span style="color: #FF0000;">Enum</span>.<span style="color: #0000FF;">GetName</span><span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?q=typeof+msdn.microsoft.com"><span style="color: #008000;">typeof</span></a><span style="color: #000000;">&#40;</span>Colors.<span style="color: #0000FF;">SetType</span><span style="color: #000000;">&#41;</span>, i<span style="color: #000000;">&#41;</span>,
                        getItems<span style="color: #000000;">&#40;</span>i.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
                    <span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
                List.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span>collecte<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #000000;">&#125;</span>
            <span style="color: #0600FF;">return</span> List<span style="color: #008000;">;</span>
        <span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=148</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Cool jQuery Gallery Plugin</title>
		<link>http://wind-flowers.net/?p=146</link>
		<comments>http://wind-flowers.net/?p=146#comments</comments>
		<pubDate>Tue, 23 Mar 2010 03:40:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[JQUERY]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=146</guid>
		<description><![CDATA[Use a Cool jQuery Gallery Plugin build a custom gallery that scans a folder of images and outputs a slick gallery.]]></description>
			<content:encoded><![CDATA[<p>We will build a custom gallery that scans a folder of images and outputs a cool image gallery, utilizing asp.net, CSS, jQuery and the lightBox plug-in.</p>
<p>Demo: <a href="http://demo.tutorialzine.com/2009/09/cool-jquery-gallery/demo.php">A Cool jQuery Gallery</a></p>
<p>Download: <a href="http://demo.tutorialzine.com/2009/09/cool-jquery-gallery/demo.zip">down</a></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p146code17'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p14617"><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code" id="p146code17"><pre class="csharp" style="font-family:monospace;"><span style="color: #008000;">&lt;</span>link rel<span style="color: #008000;">=</span><span style="color: #666666;">&quot;stylesheet&quot;</span> type<span style="color: #008000;">=</span><span style="color: #666666;">&quot;text/css&quot;</span> href<span style="color: #008000;">=</span><span style="color: #666666;">&quot;lightbox/css/jquery.lightbox-0.5.css&quot;</span> <span style="color: #008000;">/&gt;</span> 
<span style="color: #008000;">&lt;</span>link rel<span style="color: #008000;">=</span><span style="color: #666666;">&quot;stylesheet&quot;</span> type<span style="color: #008000;">=</span><span style="color: #666666;">&quot;text/css&quot;</span> href<span style="color: #008000;">=</span><span style="color: #666666;">&quot;demo.css&quot;</span> <span style="color: #008000;">/&gt;</span> 
<span style="color: #008000;">&lt;</span>script type<span style="color: #008000;">=</span><span style="color: #666666;">&quot;text/javascript&quot;</span> src<span style="color: #008000;">=</span><span style="color: #666666;">&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&quot;</span><span style="color: #008000;">&gt;&lt;/</span>script<span style="color: #008000;">&gt;</span> 
<span style="color: #008000;">&lt;</span>script type<span style="color: #008000;">=</span><span style="color: #666666;">&quot;text/javascript&quot;</span> src<span style="color: #008000;">=</span><span style="color: #666666;">&quot;lightbox/js/jquery.lightbox-0.5.pack.js&quot;</span><span style="color: #008000;">&gt;&lt;/</span>script<span style="color: #008000;">&gt;</span> 
<span style="color: #008000;">&lt;</span>script type<span style="color: #008000;">=</span><span style="color: #666666;">&quot;text/javascript&quot;</span> src<span style="color: #008000;">=</span><span style="color: #666666;">&quot;script.js&quot;</span><span style="color: #008000;">&gt;&lt;/</span>script<span style="color: #008000;">&gt;</span></pre></td></tr></table></div>

<p>The demo.css is:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p146code18'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p14618"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
</pre></td><td class="code" id="p146code18"><pre class="csharp" style="font-family:monospace;"> .<span style="color: #0000FF;">clear</span><span style="color: #000000;">&#123;</span>
	clear<span style="color: #008000;">:</span>both<span style="color: #008000;">;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
a, a<span style="color: #008000;">:</span>visited <span style="color: #000000;">&#123;</span>
	color<span style="color: #008000;">:</span><span style="color: #008080;">#00BBFF;</span>
	text<span style="color: #008000;">-</span>decoration<span style="color: #008000;">:</span>none<span style="color: #008000;">;</span>
	outline<span style="color: #008000;">:</span>none<span style="color: #008000;">;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
a<span style="color: #008000;">:</span>hover<span style="color: #000000;">&#123;</span>
	text<span style="color: #008000;">-</span>decoration<span style="color: #008000;">:</span>underline<span style="color: #008000;">;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #008080;">#container{</span>
	width<span style="color: #008000;">:</span>890px<span style="color: #008000;">;</span>
	margin<span style="color: #008000;">:</span>20px auto<span style="color: #008000;">;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
&nbsp;
div.<span style="color: #0000FF;">nomargin</span><span style="color: #000000;">&#123;</span>
	margin<span style="color: #008000;">-</span>right<span style="color: #008000;">:</span>0px<span style="color: #008000;">;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
.<span style="color: #0000FF;">pic</span><span style="color: #000000;">&#123;</span>
	<span style="color: #FF0000;">float</span><span style="color: #008000;">:</span>left<span style="color: #008000;">;</span>
	margin<span style="color: #008000;">:</span><span style="color: #FF0000;">0</span> 15px 15px <span style="color: #FF0000;">0</span><span style="color: #008000;">;</span>
	border<span style="color: #008000;">:</span>5px solid white<span style="color: #008000;">;</span>
	width<span style="color: #008000;">:</span>200px<span style="color: #008000;">;</span>
	height<span style="color: #008000;">:</span>250px<span style="color: #008000;">;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
.<span style="color: #0000FF;">pic</span> a<span style="color: #000000;">&#123;</span>
	width<span style="color: #008000;">:</span>200px<span style="color: #008000;">;</span>
	height<span style="color: #008000;">:</span>250px<span style="color: #008000;">;</span>
	text<span style="color: #008000;">-</span>indent<span style="color: #008000;">:-</span>99999px<span style="color: #008000;">;</span>
	display<span style="color: #008000;">:</span>block<span style="color: #008000;">;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
h1<span style="color: #000000;">&#123;</span>
	font<span style="color: #008000;">-</span>size<span style="color: #008000;">:</span>28px<span style="color: #008000;">;</span>
	font<span style="color: #008000;">-</span>weight<span style="color: #008000;">:</span>bold<span style="color: #008000;">;</span>
	font<span style="color: #008000;">-</span>family<span style="color: #008000;">:</span><span style="color: #666666;">&quot;Trebuchet MS&quot;</span>,Arial, Helvetica, sans<span style="color: #008000;">-</span>serif<span style="color: #008000;">;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
h2<span style="color: #000000;">&#123;</span>
	font<span style="color: #008000;">-</span>weight<span style="color: #008000;">:</span>normal<span style="color: #008000;">;</span>
	font<span style="color: #008000;">-</span>size<span style="color: #008000;">:</span>14px<span style="color: #008000;">;</span>
&nbsp;
	color<span style="color: #008000;">:</span>white<span style="color: #008000;">;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p>the html is:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p146code19'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p14619"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
</pre></td><td class="code" id="p146code19"><pre class="csharp" style="font-family:monospace;">	<span style="color: #008000;">&lt;</span>div id<span style="color: #008000;">=</span><span style="color: #666666;">&quot;gallery&quot;</span><span style="color: #008000;">&gt;</span> 
		<span style="color: #008000;">&lt;</span>div <span style="color: #FF0000;">class</span><span style="color: #008000;">=</span><span style="color: #666666;">&quot;pic &quot;</span> style<span style="color: #008000;">=</span><span style="color: #666666;">&quot;background:url(gallery/ladybug.jpg) no-repeat 50% 50%;&quot;</span><span style="color: #008000;">&gt;</span> 
		<span style="color: #008000;">&lt;</span>a href<span style="color: #008000;">=</span><span style="color: #666666;">&quot;gallery/ladybug.jpg&quot;</span> title<span style="color: #008000;">=</span><span style="color: #666666;">&quot;ladybug&quot;</span> target<span style="color: #008000;">=</span><span style="color: #666666;">&quot;_blank&quot;</span><span style="color: #008000;">&gt;</span>ladybug<span style="color: #008000;">&lt;/</span>a<span style="color: #008000;">&gt;</span> 
		<span style="color: #008000;">&lt;/</span>div<span style="color: #008000;">&gt;</span> 
		<span style="color: #008000;">&lt;</span>div <span style="color: #FF0000;">class</span><span style="color: #008000;">=</span><span style="color: #666666;">&quot;pic &quot;</span> style<span style="color: #008000;">=</span><span style="color: #666666;">&quot;background:url(gallery/bw.jpg) no-repeat 50% 50%;&quot;</span><span style="color: #008000;">&gt;</span> 
		<span style="color: #008000;">&lt;</span>a href<span style="color: #008000;">=</span><span style="color: #666666;">&quot;gallery/bw.jpg&quot;</span> title<span style="color: #008000;">=</span><span style="color: #666666;">&quot;bw&quot;</span> target<span style="color: #008000;">=</span><span style="color: #666666;">&quot;_blank&quot;</span><span style="color: #008000;">&gt;</span>bw<span style="color: #008000;">&lt;/</span>a<span style="color: #008000;">&gt;</span> 
		<span style="color: #008000;">&lt;/</span>div<span style="color: #008000;">&gt;</span> 
		<span style="color: #008000;">&lt;</span>div <span style="color: #FF0000;">class</span><span style="color: #008000;">=</span><span style="color: #666666;">&quot;pic &quot;</span> style<span style="color: #008000;">=</span><span style="color: #666666;">&quot;background:url(gallery/bw-lingere.jpg) no-repeat 50% 50%;&quot;</span><span style="color: #008000;">&gt;</span> 
		<span style="color: #008000;">&lt;</span>a href<span style="color: #008000;">=</span><span style="color: #666666;">&quot;gallery/bw-lingere.jpg&quot;</span> title<span style="color: #008000;">=</span><span style="color: #666666;">&quot;bw-lingere&quot;</span> target<span style="color: #008000;">=</span><span style="color: #666666;">&quot;_blank&quot;</span><span style="color: #008000;">&gt;</span>bw<span style="color: #008000;">-</span>lingere<span style="color: #008000;">&lt;/</span>a<span style="color: #008000;">&gt;</span> 
		<span style="color: #008000;">&lt;/</span>div<span style="color: #008000;">&gt;</span> 
		<span style="color: #008000;">&lt;</span>div <span style="color: #FF0000;">class</span><span style="color: #008000;">=</span><span style="color: #666666;">&quot;pic nomargin&quot;</span> style<span style="color: #008000;">=</span><span style="color: #666666;">&quot;background:url(gallery/red-head.jpg) no-repeat 50% 50%;&quot;</span><span style="color: #008000;">&gt;</span> 
		<span style="color: #008000;">&lt;</span>a href<span style="color: #008000;">=</span><span style="color: #666666;">&quot;gallery/red-head.jpg&quot;</span> title<span style="color: #008000;">=</span><span style="color: #666666;">&quot;red-head&quot;</span> target<span style="color: #008000;">=</span><span style="color: #666666;">&quot;_blank&quot;</span><span style="color: #008000;">&gt;</span>red<span style="color: #008000;">-</span>head<span style="color: #008000;">&lt;/</span>a<span style="color: #008000;">&gt;</span> 
		<span style="color: #008000;">&lt;/</span>div<span style="color: #008000;">&gt;</span> 
		<span style="color: #008000;">&lt;</span>div <span style="color: #FF0000;">class</span><span style="color: #008000;">=</span><span style="color: #666666;">&quot;pic &quot;</span> style<span style="color: #008000;">=</span><span style="color: #666666;">&quot;background:url(gallery/wedding_catwalk.jpg) no-repeat 50% 50%;&quot;</span><span style="color: #008000;">&gt;</span> 
		<span style="color: #008000;">&lt;</span>a href<span style="color: #008000;">=</span><span style="color: #666666;">&quot;gallery/wedding_catwalk.jpg&quot;</span> title<span style="color: #008000;">=</span><span style="color: #666666;">&quot;wedding_catwalk&quot;</span> target<span style="color: #008000;">=</span><span style="color: #666666;">&quot;_blank&quot;</span><span style="color: #008000;">&gt;</span>wedding_catwalk<span style="color: #008000;">&lt;/</span>a<span style="color: #008000;">&gt;</span> 
		<span style="color: #008000;">&lt;/</span>div<span style="color: #008000;">&gt;</span> 
		<span style="color: #008000;">&lt;</span>div <span style="color: #FF0000;">class</span><span style="color: #008000;">=</span><span style="color: #666666;">&quot;pic &quot;</span> style<span style="color: #008000;">=</span><span style="color: #666666;">&quot;background:url(gallery/tiger.jpg) no-repeat 50% 50%;&quot;</span><span style="color: #008000;">&gt;</span> 
		<span style="color: #008000;">&lt;</span>a href<span style="color: #008000;">=</span><span style="color: #666666;">&quot;gallery/tiger.jpg&quot;</span> title<span style="color: #008000;">=</span><span style="color: #666666;">&quot;tiger&quot;</span> target<span style="color: #008000;">=</span><span style="color: #666666;">&quot;_blank&quot;</span><span style="color: #008000;">&gt;</span>tiger<span style="color: #008000;">&lt;/</span>a<span style="color: #008000;">&gt;</span> 
		<span style="color: #008000;">&lt;/</span>div<span style="color: #008000;">&gt;</span> 
		<span style="color: #008000;">&lt;</span>div <span style="color: #FF0000;">class</span><span style="color: #008000;">=</span><span style="color: #666666;">&quot;pic &quot;</span> style<span style="color: #008000;">=</span><span style="color: #666666;">&quot;background:url(gallery/lonely-anguish.jpg) no-repeat 50% 50%;&quot;</span><span style="color: #008000;">&gt;</span> 
		<span style="color: #008000;">&lt;</span>a href<span style="color: #008000;">=</span><span style="color: #666666;">&quot;gallery/lonely-anguish.jpg&quot;</span> title<span style="color: #008000;">=</span><span style="color: #666666;">&quot;lonely-anguish&quot;</span> target<span style="color: #008000;">=</span><span style="color: #666666;">&quot;_blank&quot;</span><span style="color: #008000;">&gt;</span>lonely<span style="color: #008000;">-</span>anguish<span style="color: #008000;">&lt;/</span>a<span style="color: #008000;">&gt;</span> 
		<span style="color: #008000;">&lt;/</span>div<span style="color: #008000;">&gt;</span> 
		<span style="color: #008000;">&lt;</span>div <span style="color: #FF0000;">class</span><span style="color: #008000;">=</span><span style="color: #666666;">&quot;pic nomargin&quot;</span> style<span style="color: #008000;">=</span><span style="color: #666666;">&quot;background:url(gallery/promotion.jpg) no-repeat 50% 50%;&quot;</span><span style="color: #008000;">&gt;</span> 
		<span style="color: #008000;">&lt;</span>a href<span style="color: #008000;">=</span><span style="color: #666666;">&quot;gallery/promotion.jpg&quot;</span> title<span style="color: #008000;">=</span><span style="color: #666666;">&quot;promotion&quot;</span> target<span style="color: #008000;">=</span><span style="color: #666666;">&quot;_blank&quot;</span><span style="color: #008000;">&gt;</span>promotion<span style="color: #008000;">&lt;/</span>a<span style="color: #008000;">&gt;</span> 
		<span style="color: #008000;">&lt;/</span>div<span style="color: #008000;">&gt;</span> 
		<span style="color: #008000;">&lt;</span>div <span style="color: #FF0000;">class</span><span style="color: #008000;">=</span><span style="color: #666666;">&quot;pic &quot;</span> style<span style="color: #008000;">=</span><span style="color: #666666;">&quot;background:url(gallery/pristine-lake.jpg) no-repeat 50% 50%;&quot;</span><span style="color: #008000;">&gt;</span> 
		<span style="color: #008000;">&lt;</span>a href<span style="color: #008000;">=</span><span style="color: #666666;">&quot;gallery/pristine-lake.jpg&quot;</span> title<span style="color: #008000;">=</span><span style="color: #666666;">&quot;pristine-lake&quot;</span> target<span style="color: #008000;">=</span><span style="color: #666666;">&quot;_blank&quot;</span><span style="color: #008000;">&gt;</span>pristine<span style="color: #008000;">-</span>lake<span style="color: #008000;">&lt;/</span>a<span style="color: #008000;">&gt;</span> 
		<span style="color: #008000;">&lt;/</span>div<span style="color: #008000;">&gt;</span> 
		<span style="color: #008000;">&lt;</span>div <span style="color: #FF0000;">class</span><span style="color: #008000;">=</span><span style="color: #666666;">&quot;pic &quot;</span> style<span style="color: #008000;">=</span><span style="color: #666666;">&quot;background:url(gallery/tattoo.jpg) no-repeat 50% 50%;&quot;</span><span style="color: #008000;">&gt;</span> 
		<span style="color: #008000;">&lt;</span>a href<span style="color: #008000;">=</span><span style="color: #666666;">&quot;gallery/tattoo.jpg&quot;</span> title<span style="color: #008000;">=</span><span style="color: #666666;">&quot;tattoo&quot;</span> target<span style="color: #008000;">=</span><span style="color: #666666;">&quot;_blank&quot;</span><span style="color: #008000;">&gt;</span>tattoo<span style="color: #008000;">&lt;/</span>a<span style="color: #008000;">&gt;</span> 
		<span style="color: #008000;">&lt;/</span>div<span style="color: #008000;">&gt;</span> 
		<span style="color: #008000;">&lt;</span>div <span style="color: #FF0000;">class</span><span style="color: #008000;">=</span><span style="color: #666666;">&quot;pic &quot;</span> style<span style="color: #008000;">=</span><span style="color: #666666;">&quot;background:url(gallery/white-stallion.jpg) no-repeat 50% 50%;&quot;</span><span style="color: #008000;">&gt;</span> 
		<span style="color: #008000;">&lt;</span>a href<span style="color: #008000;">=</span><span style="color: #666666;">&quot;gallery/white-stallion.jpg&quot;</span> title<span style="color: #008000;">=</span><span style="color: #666666;">&quot;white-stallion&quot;</span> target<span style="color: #008000;">=</span><span style="color: #666666;">&quot;_blank&quot;</span><span style="color: #008000;">&gt;</span>white<span style="color: #008000;">-</span>stallion<span style="color: #008000;">&lt;/</span>a<span style="color: #008000;">&gt;</span> 
		<span style="color: #008000;">&lt;/</span>div<span style="color: #008000;">&gt;</span> 
		<span style="color: #008000;">&lt;</span>div <span style="color: #FF0000;">class</span><span style="color: #008000;">=</span><span style="color: #666666;">&quot;pic nomargin&quot;</span> style<span style="color: #008000;">=</span><span style="color: #666666;">&quot;background:url(gallery/furry-feline.jpg) no-repeat 50% 50%;&quot;</span><span style="color: #008000;">&gt;</span> 
		<span style="color: #008000;">&lt;</span>a href<span style="color: #008000;">=</span><span style="color: #666666;">&quot;gallery/furry-feline.jpg&quot;</span> title<span style="color: #008000;">=</span><span style="color: #666666;">&quot;furry-feline&quot;</span> target<span style="color: #008000;">=</span><span style="color: #666666;">&quot;_blank&quot;</span><span style="color: #008000;">&gt;</span>furry<span style="color: #008000;">-</span>feline<span style="color: #008000;">&lt;/</span>a<span style="color: #008000;">&gt;</span> 
		<span style="color: #008000;">&lt;/</span>div<span style="color: #008000;">&gt;&lt;</span>div <span style="color: #FF0000;">class</span><span style="color: #008000;">=</span><span style="color: #666666;">&quot;clear&quot;</span><span style="color: #008000;">&gt;&lt;/</span>div<span style="color: #008000;">&gt;</span> 
	<span style="color: #008000;">&lt;/</span>div<span style="color: #008000;">&gt;</span></pre></td></tr></table></div>

<p>the script.js is:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p146code20'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p14620"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code" id="p146code20"><pre class="csharp" style="font-family:monospace;">$<span style="color: #000000;">&#40;</span>document<span style="color: #000000;">&#41;</span>.<span style="color: #0000FF;">ready</span><span style="color: #000000;">&#40;</span>function<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
&nbsp;
	$<span style="color: #000000;">&#40;</span><span style="color: #666666;">'.pic a'</span><span style="color: #000000;">&#41;</span>.<span style="color: #0000FF;">lightBox</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#123;</span>
&nbsp;
		imageLoading<span style="color: #008000;">:</span> <span style="color: #666666;">'lightbox/images/loading.gif'</span>,
		imageBtnClose<span style="color: #008000;">:</span> <span style="color: #666666;">'lightbox/images/close.gif'</span>,
		imageBtnPrev<span style="color: #008000;">:</span> <span style="color: #666666;">'lightbox/images/prev.gif'</span>,
		imageBtnNext<span style="color: #008000;">:</span> <span style="color: #666666;">'lightbox/images/next.gif'</span>
&nbsp;
	<span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
<span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=146</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is List and How to bind List to GridView?</title>
		<link>http://wind-flowers.net/?p=144</link>
		<comments>http://wind-flowers.net/?p=144#comments</comments>
		<pubDate>Fri, 12 Mar 2010 06:09:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[gridview]]></category>
		<category><![CDATA[List]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=144</guid>
		<description><![CDATA[Lists are dynamic arrays in the C# language. They can grow as needed when you add elements. They are called generic collections and constructed types.You need to use < and > in the List declaration. 
Represents a strongly typed list of objects that can be accessed by index. Provides methods to search, sort, and manipulate lists.]]></description>
			<content:encoded><![CDATA[<p><strong>C# List Examples</strong><br />
Lists are dynamic arrays in the C# language. They can grow as needed when you add elements. They are called generic collections and constructed types.You need to use < and > in the List declaration.<br />
Represents a strongly typed list of objects that can be accessed by index. Provides methods to search, sort, and manipulate lists.</p>
<p><strong>Examples 1</strong></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p144code21'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p14421"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code" id="p144code21"><pre class="csharp" style="font-family:monospace;">        List<span style="color: #008000;">&lt;</span><span style="color: #FF0000;">string</span><span style="color: #008000;">&gt;</span> dinosaurs <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> List<span style="color: #008000;">&lt;</span><span style="color: #FF0000;">string</span><span style="color: #008000;">&gt;</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
        dinosaurs.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;one&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
        dinosaurs.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;two&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
        dinosaurs.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;three&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
        dinosaurs.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;four&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
        dinosaurs.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;five&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #0600FF;">foreach</span><span style="color: #000000;">&#40;</span><span style="color: #FF0000;">string</span> din <span style="color: #0600FF;">in</span> dinosaurs<span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#123;</span>
            Console.<span style="color: #0000FF;">WriteLine</span><span style="color: #000000;">&#40;</span>dinosaur<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p><strong>Examples 2</strong><br />
This example shows how you can create a new List  of unspecified size, and add object to it.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p144code22'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p14422"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
</pre></td><td class="code" id="p144code22"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF;">public</span> <span style="color: #FF0000;">class</span> Client
<span style="color: #000000;">&#123;</span>
    <span style="color: #0600FF;">public</span> Client<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">string</span> Name, <span style="color: #FF0000;">int</span> Age<span style="color: #000000;">&#41;</span>
    <span style="color: #000000;">&#123;</span>
        _Name <span style="color: #008000;">=</span> Name<span style="color: #008000;">;</span>
        _Age <span style="color: #008000;">=</span> Age<span style="color: #008000;">;</span>
    <span style="color: #000000;">&#125;</span>
    <span style="color: #0600FF;">private</span> <span style="color: #FF0000;">int</span> _Age<span style="color: #008000;">;</span>
    <span style="color: #0600FF;">public</span> <span style="color: #FF0000;">int</span> Age
    <span style="color: #000000;">&#123;</span>
        get <span style="color: #000000;">&#123;</span> <span style="color: #0600FF;">return</span> _Age<span style="color: #008000;">;</span> <span style="color: #000000;">&#125;</span>
        set <span style="color: #000000;">&#123;</span> _Age <span style="color: #008000;">=</span> value<span style="color: #008000;">;</span> <span style="color: #000000;">&#125;</span>
    <span style="color: #000000;">&#125;</span>
    <span style="color: #0600FF;">private</span> <span style="color: #FF0000;">string</span> _Name<span style="color: #008000;">;</span>
    <span style="color: #0600FF;">public</span> <span style="color: #FF0000;">string</span> Name
    <span style="color: #000000;">&#123;</span>
        get <span style="color: #000000;">&#123;</span> <span style="color: #0600FF;">return</span> _Name<span style="color: #008000;">;</span> <span style="color: #000000;">&#125;</span>
        set <span style="color: #000000;">&#123;</span> _Name <span style="color: #008000;">=</span> value<span style="color: #008000;">;</span> <span style="color: #000000;">&#125;</span>
    <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>


<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p144code23'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p14423"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code" id="p144code23"><pre class="csharp" style="font-family:monospace;">List<span style="color: #008000;">&lt;</span>Client<span style="color: #008000;">&gt;</span> lst <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> List<span style="color: #008000;">&lt;</span>Client<span style="color: #008000;">&gt;</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
lst.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> Client<span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;Mike&quot;</span>, <span style="color: #FF0000;">20</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
lst.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> Client<span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;Tom&quot;</span>, <span style="color: #FF0000;">22</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
<span style="color: #0600FF;">foreach</span><span style="color: #000000;">&#40;</span>Client cit <span style="color: #0600FF;">in</span> lst<span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#123;</span>
     Console.<span style="color: #0000FF;">WriteLine</span><span style="color: #000000;">&#40;</span>cit.<span style="color: #0000FF;">Name</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
     Console.<span style="color: #0000FF;">WriteLine</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;------------&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
     Console.<span style="color: #0000FF;">WriteLine</span><span style="color: #000000;">&#40;</span>cit.<span style="color: #0000FF;">Age</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
     Console.<span style="color: #0000FF;">WriteLine</span><span style="color: #000000;">&#40;</span>cit.<span style="color: #0000FF;">Name</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p><strong>How to bind List<> to GridView?</strong></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p144code24'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p14424"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p144code24"><pre class="csharp" style="font-family:monospace;">GridView1.<span style="color: #0000FF;">DataSource</span> <span style="color: #008000;">=</span> lst<span style="color: #008000;">;</span>
GridView1.<span style="color: #0000FF;">DataBind</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=144</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Life Cycle of ASP.NET Page</title>
		<link>http://wind-flowers.net/?p=142</link>
		<comments>http://wind-flowers.net/?p=142#comments</comments>
		<pubDate>Thu, 11 Mar 2010 09:13:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[Life Cycle]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=142</guid>
		<description><![CDATA[When a page request is sent to the Web server, whether through a submission or location change, the page is run through a series of events during its creation and disposal. When we try to build ASP.NET pages and this execution cycle is not taken into account, we can cause a lot of headaches for ourselves. However, when used and manipulated correctly, a page's execution cycle can be an effective and powerful tool. Many developers are realizing that understanding what happens and when it happens is crucial to effectively writing ASP.NET pages or user controls. So let's examine in detail the ten events of an ASP.NET page, from creation to disposal. We will also see how to tap into these events to implant our own custom code. ]]></description>
			<content:encoded><![CDATA[<p>When a page request is sent to the Web server, whether through a submission or location change, the page is run through a series of events during its creation and disposal. When we try to build ASP.NET pages and this execution cycle is not taken into account, we can cause a lot of headaches for ourselves. However, when used and manipulated correctly, a page&#8217;s execution cycle can be an effective and powerful tool. Many developers are realizing that understanding what happens and when it happens is crucial to effectively writing ASP.NET pages or user controls. So let&#8217;s examine in detail the ten events of an ASP.NET page, from creation to disposal. We will also see how to tap into these events to implant our own custom code. </p>
<p>1.Web page request comes from browser.<br />
2.IIS maps the ASP.NET file extensions to ASPNET_ISAPI.DLL, an ISAPI extension provided with ASP.NET.<br />
3.ASPNET_ISAPI.DLL forwards the request to the ASP.NET worker process (ASPNET_WP.EXE or W3P.EXE).<br />
4.ISAPI loads HTTPRuntime and passes the request to it. Thus, HTTP Pipelining has begun.<br />
5.HTTPRuntime uses HttpApplicationFactory to either create or reuse the HTTPApplication object.<br />
6.HTTPRuntime creates HTTPContext for the current request. HTTPContext internally maintains HTTPRequest and HTTPResponse.<br />
7.HTTPRuntime also maps the HTTPContext to the HTTPApplication which handles the application level events.<br />
8.HTTPApplication runs the HTTPModules for the page requests.<br />
9.HTTPApplication creates HTTPHandler for the page request. This is the last stage of HTTPipelining.<br />
10.HTTPHandlers are responsible to process request and generate corresponding response messages.<br />
11.Once the request leaves the HTTPPipeline, page level events begin.<br />
12.Page Events are as follows: PreInit, Init, InitComplete, PreLoad, Load, Control events (Postback events), Load Complete, PreRender, SaveStateComplete, Render and Unload.<br />
13.HTTPHandler generates the response with the above events and sends back to the IIS which in turn sends the response to the client browser.<br />
<img src="http://www.codeproject.com/KB/aspnet/PageLifeCycle/HTTP_Pipeline.gif" alt="null" /></p>
]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=142</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to use Log4net in ASP.NET</title>
		<link>http://wind-flowers.net/?p=137</link>
		<comments>http://wind-flowers.net/?p=137#comments</comments>
		<pubDate>Thu, 11 Mar 2010 07:48:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[log4net]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=137</guid>
		<description><![CDATA[This article describes the basic steps to be followed for using Log4net in a web application. Log4net is an open source library that allows .NET applications to log statements to a variety of targets. ]]></description>
			<content:encoded><![CDATA[<p>This article describes the basic steps to be followed for using Log4net in a web application. Log4net is an open source library that allows .NET applications to log statements to a variety of targets.</p>
<p><strong>Download</strong> <a href="http://logging.apache.org/log4net/download.html">Log4net</a>.</p>
<p><strong>extract the downloaded folder and look for /bin/net/2.0/Log4net.dll</strong></p>
<p><strong>Right-Click the project name and Add a Reference to Log4net.dll</strong></p>
<p><strong>Copy paste the following log4net configuration settings to log4net.config file.</strong></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p137code25'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p13725"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
</pre></td><td class="code" id="p137code25"><pre class="csharp" style="font-family:monospace;"><span style="color: #008000;">&lt;?</span>xml version<span style="color: #008000;">=</span><span style="color: #666666;">&quot;1.0&quot;</span> encoding<span style="color: #008000;">=</span><span style="color: #666666;">&quot;utf-8&quot;</span> <span style="color: #008000;">?&gt;</span>
<span style="color: #008000;">&lt;</span>log4net<span style="color: #008000;">&gt;</span>
	<span style="color: #008000;">&lt;</span>root<span style="color: #008000;">&gt;</span>
		<span style="color: #008000;">&lt;</span>level value<span style="color: #008000;">=</span><span style="color: #666666;">&quot;DEBUG&quot;</span> <span style="color: #008000;">/&gt;</span>
		<span style="color: #008000;">&lt;</span>appender<span style="color: #008000;">-</span><span style="color: #0600FF;">ref</span> <span style="color: #0600FF;">ref</span><span style="color: #008000;">=</span><span style="color: #666666;">&quot;RollingLogFileAppender&quot;</span><span style="color: #008000;">/&gt;</span>
	<span style="color: #008000;">&lt;/</span>root<span style="color: #008000;">&gt;</span>
	<span style="color: #008000;">&lt;</span>appender name<span style="color: #008000;">=</span><span style="color: #666666;">&quot;RollingFileAppender&quot;</span> type<span style="color: #008000;">=</span><span style="color: #666666;">&quot;log4net.Appender.RollingFileAppender&quot;</span><span style="color: #008000;">&gt;</span>
		<span style="color: #008000;">&lt;</span>file value<span style="color: #008000;">=</span><span style="color: #666666;">&quot;logsapp.log&quot;</span> <span style="color: #008000;">/&gt;</span>
		<span style="color: #008000;">&lt;</span>appendToFile value<span style="color: #008000;">=</span><span style="color: #666666;">&quot;true&quot;</span> <span style="color: #008000;">/&gt;</span>
		<span style="color: #008000;">&lt;</span>rollingStyle value<span style="color: #008000;">=</span><span style="color: #666666;">&quot;Size&quot;</span> <span style="color: #008000;">/&gt;</span>
		<span style="color: #008000;">&lt;</span>maxSizeRollBackups value<span style="color: #008000;">=</span><span style="color: #666666;">&quot;10&quot;</span> <span style="color: #008000;">/&gt;</span>
		<span style="color: #008000;">&lt;</span>maximumFileSize value<span style="color: #008000;">=</span><span style="color: #666666;">&quot;100KB&quot;</span> <span style="color: #008000;">/&gt;</span>
		<span style="color: #008000;">&lt;</span>staticLogFileName value<span style="color: #008000;">=</span><span style="color: #666666;">&quot;true&quot;</span> <span style="color: #008000;">/&gt;</span>
		<span style="color: #008000;">&lt;</span>layout type<span style="color: #008000;">=</span><span style="color: #666666;">&quot;log4net.Layout.PatternLayout&quot;</span><span style="color: #008000;">&gt;</span>
			<span style="color: #008000;">&lt;</span>conversionPattern value<span style="color: #008000;">=</span><span style="color: #666666;">&quot;%d [%t]%-5p %c [%x] - %m%n&quot;</span> <span style="color: #008000;">/&gt;</span>
		<span style="color: #008000;">&lt;/</span>layout<span style="color: #008000;">&gt;</span>
	<span style="color: #008000;">&lt;/</span>appender<span style="color: #008000;">&gt;</span>
	<span style="color: #008000;">&lt;</span>appender name<span style="color: #008000;">=</span><span style="color: #666666;">&quot;RollingLogFileAppender&quot;</span> type<span style="color: #008000;">=</span><span style="color: #666666;">&quot;log4net.Appender.RollingFileAppender&quot;</span><span style="color: #008000;">&gt;</span>
		<span style="color: #008000;">&lt;</span>file value<span style="color: #008000;">=</span><span style="color: #666666;">&quot;logsapp.log&quot;</span> <span style="color: #008000;">/&gt;</span>
		<span style="color: #008000;">&lt;</span>appendToFile value<span style="color: #008000;">=</span><span style="color: #666666;">&quot;false&quot;</span> <span style="color: #008000;">/&gt;</span>
		<span style="color: #008000;">&lt;</span>datePattern value<span style="color: #008000;">=</span><span style="color: #666666;">&quot;-dddd&quot;</span> <span style="color: #008000;">/&gt;</span>
		<span style="color: #008000;">&lt;</span>rollingStyle value<span style="color: #008000;">=</span><span style="color: #666666;">&quot;Date&quot;</span> <span style="color: #008000;">/&gt;</span>
		<span style="color: #008000;">&lt;</span>layout type<span style="color: #008000;">=</span><span style="color: #666666;">&quot;log4net.Layout.PatternLayout&quot;</span><span style="color: #008000;">&gt;</span>
			<span style="color: #008000;">&lt;</span>conversionPattern value<span style="color: #008000;">=</span><span style="color: #666666;">&quot;%d [%t]%-5p %c [%x] - %m%n&quot;</span> <span style="color: #008000;">/&gt;</span>
		<span style="color: #008000;">&lt;/</span>layout<span style="color: #008000;">&gt;</span>
	<span style="color: #008000;">&lt;/</span>appender<span style="color: #008000;">&gt;</span>
<span style="color: #008000;">&lt;/</span>log4net<span style="color: #008000;">&gt;</span></pre></td></tr></table></div>

<p><strong>Create a logs file in your project directory.</strong></p>
<p><strong>Add Global.asax to your project and then add the following function to it.</strong></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p137code26'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p13726"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
</pre></td><td class="code" id="p137code26"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF;">void</span> Application_Start<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">object</span> sender, EventArgs e<span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#123;</span>
	<span style="color: #008080; font-style: italic;">// Code that runs on application startup</span>
	ConfigureLogging<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
<span style="color: #000000;">&#125;</span>
<span style="color: #0600FF;">protected</span> <span style="color: #0600FF;">void</span> ConfigureLogging<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#123;</span>
	<span style="color: #FF0000;">string</span> logFile <span style="color: #008000;">=</span> HttpContext.<span style="color: #0000FF;">Current</span>.<span style="color: #0000FF;">Request</span>.<span style="color: #0000FF;">PhysicalApplicationPath</span> <span style="color: #008000;">+</span> <span style="color: #666666;">&quot;log4net.config&quot;</span><span style="color: #008000;">;</span>
	<span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">System.<span style="color: #0000FF;">IO</span></span>.<span style="color: #0000FF;">File</span>.<span style="color: #0000FF;">Exists</span><span style="color: #000000;">&#40;</span>logFile<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
	<span style="color: #000000;">&#123;</span>
		log4net.<span style="color: #0000FF;">Config</span>.<span style="color: #0000FF;">XmlConfigurator</span>.<span style="color: #0000FF;">ConfigureAndWatch</span><span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> <span style="color: #000000;">System.<span style="color: #0000FF;">IO</span></span>.<span style="color: #0000FF;">FileInfo</span><span style="color: #000000;">&#40;</span>logFile<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p><strong>Copy follow code in your Page_Load demonstrates how to log Debug Information and Errors.</strong></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p137code27'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p13727"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
</pre></td><td class="code" id="p137code27"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF;">protected</span> <span style="color: #0600FF;">static</span> <span style="color: #0600FF;">readonly</span> log4net.<span style="color: #0000FF;">ILog</span> log <span style="color: #008000;">=</span> log4net.<span style="color: #0000FF;">LogManager</span>.<span style="color: #0000FF;">GetLogger</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">System.<span style="color: #0000FF;">Reflection</span></span>.<span style="color: #0000FF;">MethodBase</span>.<span style="color: #0000FF;">GetCurrentMethod</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>.<span style="color: #0000FF;">DeclaringType</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
<span style="color: #0600FF;">protected</span> <span style="color: #0600FF;">void</span> Page_Load<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">object</span> sender, EventArgs e<span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#123;</span>
	<span style="color: #0600FF;">try</span>
	<span style="color: #000000;">&#123;</span>
		log.<span style="color: #0000FF;">Debug</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;In Page Load Function&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
		log.<span style="color: #0000FF;">Debug</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;Going to generate divide by zero&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
		<span style="color: #FF0000;">int</span> a <span style="color: #008000;">=</span> <span style="color: #FF0000;">0</span><span style="color: #008000;">;</span>
		<span style="color: #FF0000;">int</span> b <span style="color: #008000;">=</span> <span style="color: #FF0000;">10</span> <span style="color: #008000;">/</span> a<span style="color: #008000;">;</span>
	<span style="color: #000000;">&#125;</span>
	<span style="color: #0600FF;">catch</span> <span style="color: #000000;">&#40;</span>Exception ex<span style="color: #000000;">&#41;</span>
	<span style="color: #000000;">&#123;</span>
		log.<span style="color: #0000FF;">Error</span><span style="color: #000000;">&#40;</span>ex.<span style="color: #0000FF;">Message</span>, ex<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p><strong>Compile and run the application, and you’ll see output to the console.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=137</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Understanding DataItem</title>
		<link>http://wind-flowers.net/?p=133</link>
		<comments>http://wind-flowers.net/?p=133#comments</comments>
		<pubDate>Thu, 11 Mar 2010 04:45:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[the DataBinding syntax]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=133</guid>
		<description><![CDATA[have undoubtedly made frequent use of the DataItem property, namely when using the DataBinding syntax.]]></description>
			<content:encoded><![CDATA[<p>You&#8217;ve undoubtedly made frequent use of the DataItem property, namely when using the DataBinding syntax, to output a value:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p133code28'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p13328"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p133code28"><pre class="csharp" style="font-family:monospace;"><span style="color: #008000;">&lt;%</span><span style="color: #008080;"># DataBinder.Eval(Container.DataItem, &quot;customerId&quot;) %&gt;</span></pre></td></tr></table></div>

<p>It&#8217;s important to understand that DataItem is actually an object, and that when you use the DataBinder.Eval function, it basically needs to figure out what type of object it is and how to get &#8220;customerId&#8221; from it. That&#8217;s because your data source can be different things, such as a DataSet or DataView, an ArrayList or HashTable, a custom collection, and more. Binding happens on a row-by-row basis, and DataItem actually represents the current row being bound. For a DataSet, DataTable, or DataView, DataItem is actually an instance of DataRowView.When you are binding to a collection, DataItem is an instance of the item within the collection. We can observe this more clearly with the following code:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p133code29'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p13329"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
</pre></td><td class="code" id="p133code29"><pre class="csharp" style="font-family:monospace;"><span style="color: #008000;">&lt;%</span>@ Import <span style="color: #0600FF;">namespace</span><span style="color: #008000;">=</span><span style="color: #666666;">&quot;System.Data&quot;</span> <span style="color: #008000;">%&gt;</span>
<span style="color: #008000;">&lt;%</span>@ Import <span style="color: #0600FF;">namespace</span><span style="color: #008000;">=</span><span style="color: #666666;">&quot;BindingSample&quot;</span> <span style="color: #008000;">%&gt;</span>
<span style="color: #008000;">&lt;</span>asp<span style="color: #008000;">:</span>Repeater id<span style="color: #008000;">=</span><span style="color: #666666;">&quot;dataSetRepeater&quot;</span> Runat<span style="color: #008000;">=</span><span style="color: #666666;">&quot;server&quot;</span><span style="color: #008000;">&gt;</span>
<span style="color: #008000;">&lt;</span>ItemTemplate<span style="color: #008000;">&gt;</span>
<span style="color: #008000;">&lt;%</span><span style="color: #008080;"># ((DataRowView)Container.DataItem)[&quot;customerId&quot;] %&gt; -  </span>
<span style="color: #008000;">&lt;%</span><span style="color: #008080;"># ((DataRowView)Container.DataItem)[&quot;Name&quot;] %&gt; &lt;br /&gt;</span>
<span style="color: #008000;">&lt;/</span>ItemTemplate<span style="color: #008000;">&gt;</span>   
<span style="color: #008000;">&lt;</span>AlternatingItemTemplate<span style="color: #008000;">&gt;</span>
<span style="color: #008000;">&lt;%</span><span style="color: #008080;"># DataBinder.Eval(Container.DataItem, &quot;customerId&quot;) %&gt; -  </span>
<span style="color: #008000;">&lt;%</span><span style="color: #008080;"># DataBinder.Eval(Container.DataItem, &quot;Name&quot;) %&gt; &lt;br /&gt;</span>
<span style="color: #008000;">&lt;/</span>AlternatingItemTemplate<span style="color: #008000;">&gt;</span>                    
<span style="color: #008000;">&lt;/</span>asp<span style="color: #008000;">:</span>Repeater<span style="color: #008000;">&gt;</span> 
<span style="color: #008000;">&lt;</span>br<span style="color: #008000;">&gt;&lt;</span>br<span style="color: #008000;">&gt;</span>
<span style="color: #008000;">&lt;</span>asp<span style="color: #008000;">:</span>Repeater id<span style="color: #008000;">=</span><span style="color: #666666;">&quot;collectionRepeater&quot;</span> Runat<span style="color: #008000;">=</span><span style="color: #666666;">&quot;server&quot;</span><span style="color: #008000;">&gt;</span>
<span style="color: #008000;">&lt;</span>ItemTemplate<span style="color: #008000;">&gt;</span>
<span style="color: #008000;">&lt;%</span><span style="color: #008080;"># ((Owner)Container.DataItem).OwnerId %&gt; -  </span>
<span style="color: #008000;">&lt;%</span><span style="color: #008080;"># ((Owner)Container.DataItem).FirstName %&gt; &lt;br /&gt;</span>
<span style="color: #008000;">&lt;/</span>ItemTemplate<span style="color: #008000;">&gt;</span>    
<span style="color: #008000;">&lt;</span>AlternatingItemTemplate<span style="color: #008000;">&gt;</span>
<span style="color: #008000;">&lt;%</span><span style="color: #008080;"># DataBinder.Eval(Container.DataItem, &quot;OwnerId&quot;) %&gt; - </span>
<span style="color: #008000;">&lt;%</span><span style="color: #008080;"># DataBinder.Eval(Container.DataItem, &quot;FirstName&quot;) %&gt; &lt;br /&gt;</span>
<span style="color: #008000;">&lt;/</span>AlternatingItemTemplate<span style="color: #008000;">&gt;</span>        
<span style="color: #008000;">&lt;/</span>asp<span style="color: #008000;">:</span>Repeater<span style="color: #008000;">&gt;</span></pre></td></tr></table></div>

<p>In the first Repeater, we are binding to a DataSet, the ItemTemplate shows how to access values by casting DataItem to a DataRowView [5, 6], the AlternateItemTemplate will output the same information but through DataBinder.Eval [9, 10].</p>
<p>In the second Repeater, we bind to a custom collection. Again, the ItemTemplate shows how to cast DataItem to the right type and access the fields directly [18, 19] while the AlternateItemTemplate shows how the same is accomplished with DataBinder.Eval [22, 23].</p>
<p>In both cases, the ItemTemplate and AlternateItemTemplate will output the exact same information. The only difference is how the information is retrieved. DataBinder.Eval is far less performing, but has the benefit of being ignorant of the underlying structure, making it both quicker to develop and more likely to resist future changes. The goal here isn&#8217;t to discuss the merits of these approaches, but simply show what DataItem truly is in order to build a proper foundation of understanding.</p>
]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=133</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Katrina Kaif The New Face of Lux</title>
		<link>http://wind-flowers.net/?p=131</link>
		<comments>http://wind-flowers.net/?p=131#comments</comments>
		<pubDate>Wed, 10 Mar 2010 14:52:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Picture]]></category>
		<category><![CDATA[girls]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=131</guid>
		<description><![CDATA[Bolywood actresses Katrina Kaif has joined hands with celebrities Aishwarya Rai and Priyanka Chopra as the new brand ambassador for Lux and she thinks it is only a selected lot to have had the “honour”.]]></description>
			<content:encoded><![CDATA[<p><img alt="" src="http://eindiangirls.com/wp-content/uploads/2010/03/katrina-kaif-lux.jpg" title="Katrina Kaif  Lux" class="alignnone" width="520" height="263" />Bolywood actresses Katrina Kaif has joined hands with celebrities Aishwarya Rai and Priyanka Chopra as the new brand ambassador for Lux and she thinks it is only a selected lot to have had the “honour”.</p>
<p>Katrina has been roped in as the face of the Lux Purple Lotus &#038; Cream, a soap infused with anti-ageing properties.</p>
<p>“I don’t think every actress in Bollywood has been associated with Lux. A select few actresses, who they felt suited the brand right (have been associated with it) and they all have been actresses of great stature with wonderful careers and some wonderful work,” Katrina told IANS on Sunday (Feb 28).</p>
<p>“I am very honoured to join the group of people who have been with Lux over the years,” she added.</p>
<p>The new commercial has been shot in Bangkok and directed by Marco. While Katrina has been styled by fashion designer Rocky S for the ad, the music has been composed by trio Shankar Ehsaan Loy.</p>
<p>Actor Abhishek Bachchan also endorses Lux with wife Aishwarya.</p>
]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=131</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Datagrid Script</title>
		<link>http://wind-flowers.net/?p=123</link>
		<comments>http://wind-flowers.net/?p=123#comments</comments>
		<pubDate>Wed, 10 Mar 2010 14:06:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[JQUERY]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=123</guid>
		<description><![CDATA[At end 3.0 (rc) version of jqGrid is out. This version is a major release, because I have totally rewrite the code for the methods without affecting the behavior of the plugin.
The grid is now compatible with jQuery 1.2.1, but in the example page I use 1.1.4 version of jQuery. The problem is that with [...]]]></description>
			<content:encoded><![CDATA[<p>At end 3.0 (rc) version of jqGrid is out. This version is a major release, because I have totally rewrite the code for the methods without affecting the behavior of the plugin.<br />
The grid is now compatible with jQuery 1.2.1, but in the example page I use 1.1.4 version of jQuery. The problem is that with 1.2.1 jqGrid has a little slowly behavior. I do not know why?<br />
The example page is totally rewritten. Every example has a separate code for html and javascript. You can view this here.</p>
<p>This version fixes a lot of bugs relating to json data, formating, xml manipulation and add following features.</p>
<p>* The user can now manipulate the number of requested pages. This is done with adding a input box in the pager.<br />
* I have added 4 methods – add, update, delete get row data. With these method we can manipulate the data at client side and of course a possibility to add local array data. See documentation for more information.<br />
* Added is a method to load data only once from the server – loadonce flag in settings. After loading data we do all the manipulation at client side – sorting, scrolling ant etc. Note that in this case pager is disabled.<br />
* Added is a new data type – local (against with xml and json). When this flag is set the grid expect data to be loaded locally via array.<br />
* Now we can multi select rows. This can be done with only one flag multiselect. This feature can be used with server and local array data.<br />
* For first time I introduce a sub grid. This feature can work only with xml data for now. The code and style for sub grid must be optimized and should be used with json too. See example page for more details.<br />
* It is possible now to export the grid data to xml and json format. This is done with two new methods.<br />
* A few new methods are added according to the new features – see documentation page for this.<br />
* New theme of course<br />
jqGrid is an Ajax-enabled JavaScript control that provides solutions for representing and manipulating tabular data on the web. Since the grid is a client-side solution loading data dynamically through Ajax callbacks, it can be integrated with any server-side technology, including PHP, ASP, Java Servlets, JSP, ColdFusion, and Perl.</p>
<p>jqGrid uses a jQuery Java Script Library and is written as plugin for that package. For more information on jQuery, please refer to the jQuery web site.<br />
Demo: <a href="http://trirand.com/jqgrid/jqgrid.html">http://trirand.com/jqgrid/jqgrid.html</a><br />
Download: <a href="http://www.trirand.com/jqgrid/jqGrid-3.4.4.zip">http://www.trirand.com/jqgrid/jqGrid-3.4.4.zip</a><br />
Source: <a href="http://www.trirand.com/blog/?p=13">http://www.trirand.com/blog/?p=13</a></p>
]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=123</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creat basic-sleek-button with photoshop</title>
		<link>http://wind-flowers.net/?p=118</link>
		<comments>http://wind-flowers.net/?p=118#comments</comments>
		<pubDate>Wed, 22 Jul 2009 08:42:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=118</guid>
		<description><![CDATA[In this tutorial I am going to be teaching you how to make a sleek button using photoshop! I’ll be going through in very small steps so even the most novice user can follow along.
Step 1
First up create a new document &#8211; I’ve made sure that I have lots of room to work with so [...]]]></description>
			<content:encoded><![CDATA[<p>In this tutorial I am going to be teaching you how to make a sleek button using photoshop! I’ll be going through in very small steps so even the most novice user can follow along.</p>
<h5>Step 1</h5>
<p>First up create a new document &#8211; I’ve made sure that I have lots of room to work with so I chose 540 by 440 as my size.</p>
<p>Fill the background with a dark gradient or just a solid colour (Edit &gt; Fill and use a colour like #262626) if you don’t know how.</p>
<p><img src="http://psfreak.com/images/tutorials/basic-sleek-button/step1.jpg" alt="" /></p>
<h5>Step 2</h5>
<p>Create a new layer (Layer &gt; New &gt; Layer). Select the rounded rectangle tool and use the settings below.</p>
<p><img src="http://psfreak.com/images/tutorials/basic-sleek-button/step2a.jpg" alt="" /></p>
<p>Left click somewhere in the middle of your document.</p>
<p><img src="http://psfreak.com/images/tutorials/basic-sleek-button/step2b.jpg" alt="" /></p>
<p>Right click and left click “make selection”.</p>
<p><img src="http://psfreak.com/images/tutorials/basic-sleek-button/step2c.jpg" alt="" /></p>
<p>Now you should have a selection like this:</p>
<p><img src="http://psfreak.com/images/tutorials/basic-sleek-button/step2d.jpg" alt="" /></p>
<h5>Step 3</h5>
<p>Next up we are going to be filling our selection with a gradient. Select the gradient tool anduse these settings. You can get the green gradient by clicking that area and changing the left colour to #7ebe3e and the right to #a8da77 or by setting your foreground colour to #7ebe3e and your background colour to #a8da77 whatever suits you <img src="http://psfreak.com/wp-includes/images/smilies/icon_smile.gif" alt=":)" /></p>
<p><img src="http://psfreak.com/images/tutorials/basic-sleek-button/step3a.jpg" alt="" /></p>
<p>Left click in the middle of the selection and drag to the bottom while holding the shift key (which keeps it straight) and release. Now you can deselect your selection (Ctrl + D).</p>
<p><img src="http://psfreak.com/images/tutorials/basic-sleek-button/step3b.jpg" alt="" /></p>
<h5>Step 4</h5>
<p>Now we are going to be adding an outside stroke to our button. The easiest way to do this is to go Layer &gt; Layer Style &gt; Stroke.</p>
<p><img src="http://psfreak.com/images/tutorials/basic-sleek-button/step4a.jpg" alt="" /></p>
<p><img src="http://psfreak.com/images/tutorials/basic-sleek-button/step4b.jpg" alt="" /></p>
<h5>Step 5</h5>
<p>On a new layer (Layer &gt; New &gt; Layer) make a selection of 3 by 40 pixels in the position shown below. The easiest way to do this is to select the rectangular marquee tool and use the fixed size setting with width set to 3 pixels and the height set to 40 pixels.</p>
<p><img src="http://psfreak.com/images/tutorials/basic-sleek-button/step5a.jpg" alt="" /></p>
<p>Fill (Edit &gt; Fill) with white (#ffffff). And deselect (Ctrl + D if you’ve forgotten already). And with any luck your button should now be looking like this…</p>
<p><img src="http://psfreak.com/images/tutorials/basic-sleek-button/step5b.jpg" alt="" /></p>
<h5>Step 6</h5>
<p>Add a double arrow “»” (copy and paste it if you want) on a new text layer.</p>
<p><img src="http://psfreak.com/images/tutorials/basic-sleek-button/step6a.jpg" alt="" /></p>
<p><img src="http://psfreak.com/images/tutorials/basic-sleek-button/step6b.jpg" alt="" /></p>
<h5>Step 7</h5>
<p>Go Layer &gt; Layer Style &gt; Drop Shadow.</p>
<p><img src="http://psfreak.com/images/tutorials/basic-sleek-button/step7a.jpg" alt="" /></p>
<p>This should make it a little easier to read and stand out from the background a little bit &#8211; some depth.</p>
<p><img src="http://psfreak.com/images/tutorials/basic-sleek-button/step7b.jpg" alt="" /></p>
<h5>Step 8</h5>
<p>Add some text for your button like your website’s name or something like “Home” if it is going to be a link to the home page and you are complete.</p>
<p><img src="http://psfreak.com/images/tutorials/basic-sleek-button/step8a.jpg" alt="" /></p>
<p>Here is an orange version of the button. You can change the colour of the button by adding a different coloured gradient to the base layer (the first layer we created).</p>
<p><img src="http://psfreak.com/images/tutorials/basic-sleek-button/step8b.jpg" alt="" /></p>
]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=118</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Prevent SQL Injection Attacks &#8211;part 1.</title>
		<link>http://wind-flowers.net/?p=117</link>
		<comments>http://wind-flowers.net/?p=117#comments</comments>
		<pubDate>Wed, 08 Jul 2009 06:05:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Injection Attacks]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=117</guid>
		<description><![CDATA[What is a SQL Injection Attacks?   A SQL Injection attack is a form of attack that comes from user input that has not been checked to see that it is valid.There are two main types of attacks. First-order attacks are when the attacker receives the desired result immediately, either by direct response from [...]]]></description>
			<content:encoded><![CDATA[<p>What is a SQL Injection Attacks?   <br />A SQL Injection attack is a form of attack that comes from user input that has not been checked to see that it is valid.There are two main types of attacks. First-order attacks are when the attacker receives the desired result immediately, either by direct response from the application they are interacting with or some other response mechanism, such as email. Second-order attacks are when the attacker injects some data that will reside in the database, but the payload will not be immediately activated. I will discuss each in more detail later in this article.</p>
<p>There is an example,here we have two form element,a textbox for user name and a password box for password.   <br /><strong>&lt;form action=&quot;myscript.aspx&quot;&gt;     <br />&lt;input type=&quot;textbox&quot; name=&quot;username&quot;&gt;      <br />&lt;input type=&quot;password&quot; name=&quot;password&quot;&gt;&lt;br/&gt;      <br />&lt;input type=&quot;submit&quot;&gt;      <br />&lt;/form&gt;      </p>
<p></strong>Then in the myscript.aspx.cs :    <br /><strong>string sql = &quot;SELECT * FROM Users WHERE UserName = &#8216;&quot; +username.text +&quot;&#8217; AND Password = &#8216;&quot; + password.text + &quot;&#8217;&quot;;</strong></p>
<p>In the previous code block it executes the built SQL script directly, if count is greater than one, then you know the values entered in for the user name and password were the ones matching the database.   </p>
<p>Now with that code in the previous example, suppose someone entered the following string into your username text box:     <br /><strong>&#8216; or 0=0 &#8212;     <br />Then the sql like this:      <br />string sql = &quot;SELECT * FROM Users WHERE UserName = &#8216;nike&#8217; </strong><strong>or 0=0 <font color="#00ffff">&#8211;</font></strong><strong><font color="#00ffff">&#8216; AND Password = &#8216;12345678&#8242;</font>&quot;;      <br /></strong>The apostrophe will close the username value being sent to the SQL query, then pass another argument to the SQL query, after the last argument it then comments out the rest of the query using the &quot;&#8211;&quot;. Since the second argument they entered into your texbox is an &quot;or&quot; statement, the first check on the user name doesn&#8217;t matter, and since 0 is always going to equal 0 the script will execute successfully and return a positive logon. Guess what? Your intruder now has access to your application.    </p>
<p>Let&#8217;s take another example of SQL injection,lets do this:    <br /><strong>&#8216;; drop table users &#8212;     <br /></strong>Definitely something that can ruin your day. Of course this type of an attack you&#8217;ll probably notice pretty quick.</p>
<p><font color="#ff0000">How to preventing SQL Injection Attacks?     <br />first: Parameterised Queries      <br />secend:Using Stored Procedures</font></p>
<p>(to be continued)</p>
]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=117</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gossip Bombs Away</title>
		<link>http://wind-flowers.net/?p=116</link>
		<comments>http://wind-flowers.net/?p=116#comments</comments>
		<pubDate>Tue, 07 Jul 2009 06:05:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Movies]]></category>
		<category><![CDATA[Gossip Bombs Away]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=116</guid>
		<description><![CDATA[May 19th, 2009

I can barely keep my eyes open after what was an extremely busy and strenuous week. You’re welcome for all the juicy gossip I gave you. You know I had to reward my faithful readers with something for these past four loyal years. Hope I didn’t disappoint…
Graduation day was here and all our [...]]]></description>
			<content:encoded><![CDATA[<h4><small>May 19th, 2009</small></h4>
<p><img alt="225blair-serena.jpg" src="http://gossipgirl-blog.cwtv.com/wp-content/uploads/2009/05/225blair-serena.jpg" /></p>
<p>I can barely keep my eyes open after what was an extremely busy and strenuous week. You’re welcome for all the juicy gossip I gave you. You know I had to reward my faithful readers with something for these past four loyal years. Hope I didn’t disappoint…</p>
<p>Graduation day was here and all our favorites were ready to pomp and circumstance and do whatever it was that graduating seniors do. It seemed like our kids were leaving Constance and St. Jude’s unlike how they arrived: quietly. That was until I decided to go out with a bang. Sorry. But I just had to do something to liven up graduation. So I came up with labels for my favorites. Don’t hate. Chuck Bass: coward. Blair Waldorf: weak. Nate Archibald: whore. Dan Humphrey: ultimate insider. Serena van der Woodsen: soon to be has been.</p>
<p>Serena was beyond pissed. She didn’t like the way I tagged everyone and ruined graduation. Well, sorry Miss Judgmental. She decided to take matters into her own hands and find out who was behind this amazing site. With the help of her friends, everyone came together to unmask my identity. Chuck believed I was at Serena’s post-graduation luncheon so he sent me a blast. And whose phone just happened to buzz at that exact moment? Why Jonathan’s, Eric’s beloved boyfriend. This meant Jonathan was Gossip Girl??</p>
<p>Nope. He wasn’t (you think <em>I</em> would go to Montreal for winter break? Yeah freaking right). The reason Jonathan’s phone went off was because he had hacked into my system and was receiving all my emails (not to self: change password ASAP!). Because of this, Jonathan had a whole lot of dirt on everyone. This was good for no one. Except Jenny Humphrey. The Mean Girls were set on finding a new Queen Bee to take over. If Jenny wanted the job then she had to bring them the most gossipworthy piece of unknown information. Jenny didn’t even want the gig but she also didn’t want to be the lowest on the Constance food chain. Plus, Emma Boardman (remember the girl who was like obsessed with losing her V-card last fall?) had recently moved to the city and was enrolling in Constance in September. That girl was like Penelope/Hazel/Isabel 2.0. Yuck. But thanks to Jonathan, Jenny had some really juicy info. Although, this gossip would totally destroy Blair/Chuck. What was Jenny to do?</p>
<p><img alt="225serenadan.jpg" src="http://gossipgirl-blog.cwtv.com/wp-content/uploads/2009/05/225serenadan.jpg" /></p>
<p>Meanwhile, Blair was obsessed with the information Serena had given her re: Chuck saying he loved her. Was it an “I LOVE HER!” or an “I love her?” Blair was dying to know how Chuck enunciated it as well as see if she could make him say it again. Obviously, this was not easy. Chuck would just not do it. UGH! What the eff, Chuck? Man up!</p>
<p>However, it seemed like the idea of Chuck ever saying he loved Blair changed when I decided to do an air raid. Of gossip. I sent out tons of confidential info that no one had known about: Dan and Ms. Carr having sex in the costume closet. Jenny’s semi nude photoshoot. Chuck sleeping with Vanessa. Blair shoplifting. Nate turning his dad into the FBI. And most importantly, Blair and Jack Bass hooking up on New Year’s. You didn’t think I’d let you all leave for college without a huge scandal, now did you?</p>
<p>Everyone was livid at each other. This was not the way to find out about your BFF’s most inner and darkest secrets. Wah wah. Maybe if you all weren’t so wicked this wouldn’t have happened (but then our lives would be way boring so thank you for being so salacious!). Chuck was beyond angry at Blair. How could she do that to him? And with his uncle? Blair tried to explain. Chuck had skipped town. She was lonely. Jack was there. But anyway that was beside the point. Blair didn’t want to be weak anymore. She demanded to hear those three words from Chuck once and for all. She knew he meant it. All he had to do was repeat it. Just say it! And of course, Chuck just couldn’t do it. Maybe he was a coward. Blair was crushed. Guess she and Chuck were just destined to never be together. Worst. News. Ever.</p>
<p>Now that all the juicy gossip was out, Jenny didn’t have a one up on the Mean Girls. This meant she was going to have to live under the dictatorship of Emma next year. Sucks. But luckily, Blair came to her defense. In Blair’s eyes, Jenny was her queen. And this meant in the fall Jenny would rule the school. Eat it, Emma. You’re under Jenny’s reign now.</p>
<p>My attack only made everyone more interested in finding out my true identity. So Serena texted me to meet her at The Oak Room. Did I show my face? Of course not. But I did send out a blast to everyone to meet there. Come on, people. You all make me who I am. I couldn’t do it without you. In one way or another, you’re all Gossip Girl. But I am <em>the</em> Gossip Girl. Don’t ever forget that. You know you love me. And you’ll be happy to know I’m coming to college with you. See ya in fall, bitches!</p>
<p><img alt="natessa.jpg" src="http://gossipgirl-blog.cwtv.com/wp-content/uploads/2009/05/natessa.jpg" /></p>
<p>One week later, Dan and Vanessa were hanging out downtown by their new school, NYU. This was how it was going to be next year (um, in a coffee shop in a less than stellar zip code? Seems like some things never change). Nate showed up in his intern clothes (sexy!). The mayor’s office was not exactly what he had in mind. He begged Vanessa to take him with her to Europe. Maybe they could still have that backpacking trip they had planned earlier in the year? And seriously, how could Vanessa say no? Nate and Vanessa’s European Adventures? So jealous! Oh, and guess who the crew bumped into at the coffee shop? A random kid named Scott who had just transferred to NYU from BU. He seemed kind of cool. And familiar. I have a feeling he might be…possibly…could be, um, Lily and Rufus’ lovechild?!? Not dead, living in NYC and going to NYU? All I can say is WOW.</p>
<p>Serena was getting ready to spend her summer in Europe too. Looked like she was going to have a nice summer traveling around and being free-spirited Serena. Or was she? Serena was greeted by Carter Baizen (um, yes, not a misprint). He told her he finally found what they had been looking for in Santorini a couple years ago: her father. And now it seemed that her dad was in Fiji. Whaaaat? Serena had been looking for daddy van der Woodsen? Who would have known? Serena went off to Fiji to find him. With Carter. Interesting. Very interesting.</p>
<p>Blair was still upset over the whole Chuck thing. And to make matters worse, it didn’t help when I reported Chuck being spotted all around Europe. Summer 2008 flashback, what? However, Blair was being strong and moving on. New school, new people, new life. But then Chuck came back to the city and found Blair walking on the street. He told her why he was really in Europe: he was in Paris to get her favorite macaroons, Berlin for her favorite stockings. And then Chuck finally said it: I love you. AHHHHHHHHHHHHHHHHHHH. What we have been waiting for all this time! TOOK YOU LONG ENOUGH, C! Blair was ecstatic. OMG Chuck loves Blair. Blair loves Chuck. We can all die happy now. Woo hoo!</p>
<p>But sorry to rain on your parade, Blair. What goes around comes around. You know how you were all mean and stuff to Georgina? Well, that girl doesn’t take it lying down. Stealing the wheel from Jesus, Georgina decided to take control of her life and enrolled at NYU. And guess who she requested to live with? Yep, Blair Waldorf. Meet your new roomie, B. Who’s gonna bring the mini-fridge?</p>
<p>Oh and BTW in old people news: Rufus and Lily made up. They are madly in love, blah blah blah and Rufus proposed! OMFG they’re getting married. Serena and Dan will finally be step-brother and sister and Jenny will soon be moving into the VDW/Bass apartment. This is a game changer, people. Can’t wait to see what happens.</p>
<p>What a way to end the school year. This year was bananas on bananas. I would recap it all but I am just so tired. Go back and read my old blogs to refresh your memory on what an eventful 2008-2009 it has been. Because I’ve had such a crazy year I am going to take some time off this summer to reflect. As well as get ready for next year. You know I’ll miss you. Xoxo Gossip Girl.</p>
<p>xo xo Gossip Girl <strong>|</strong> <a href="http://gossipgirl-blog.cwtv.com/?p=2391#comments">171 Comments »</a></p>
<h4>The End is Near</h4>
<p> <small>May 15th, 2009</small>
<p>OMG!&#160; Can you believe we’re graduating?&#160; After four long years it’s finally coming to an end.&#160; No more pencils.&#160; No more books.&#160; No more teachers–Well, until college at least.&#160; Goodbye, Constance.&#160; Goodbye, St. Jude’s.&#160; It’s been real…or rather, really drama filled.&#160; And I know what you’re all thinking.&#160; You’re welcome.&#160; High school wouldn’t have been the same without yours truly.&#160; I may not have been the nicest but I was definitely the most fun.&#160; What would high school have been without me?&#160; Oh wait.&#160; I know: B-O-R-I-N-G.&#160; But have no fear.&#160; It ain’t over just yet.&#160;&#160; We still have a few more days of HS left.&#160;&#160; I can’t promise anything but I will say that I might have some salacious ammo up my sleeve.&#160; Gotta go out with a bang, right?</p>
<p>xo xo Gossip Girl <strong>|</strong> <a href="http://gossipgirl-blog.cwtv.com/?p=2381#comments">70 Comments »</a></p>
<h4>Prom Dramz</h4>
<p> <small>May 12th, 2009</small>
<p><img alt="124prom.jpg" src="http://gossipgirl-blog.cwtv.com/wp-content/uploads/2009/05/124prom.jpg" /></p>
<p>Oh prom. The night we’d been waiting for since we first stepped out of our limos and town cars and into our prestigious private schools. Some of us (ahem, Blair Waldorf) had been expecting the most perfect event of our entire academic career. So was prom 2009 perfect? Not even close. But it was monumental and oh so gossip worthy.While prom was only hours away, Serena was still locked up after getting arrested for the “stolen” bracelet. Thanks, Lily. After Lily realized Serena learned her lesson, she finally came to drop the charges and let her daughter flee the coop. Serena could not believe her mother would do this to her. What kind of mother was Lily? To not only have the police arrest her only daughter but then to have her actually locked up over night, what the hell, mom? Lily was just trying to teach her daughter some respect. Serena didn’t care. She wanted nothing to do with her mother. Serena wasn’t going anywhere. She was staying in jail and giving Lily a dose of her own medicine. Oh Serena. Looks like you were ditching a prom dress for an orange jumpsuit.</p>
<p>Meanwhile, Blair’s prom preparations weren’t going as planned. For a girl who had made a “prom scrapbook” before she could barely read, everything was turning disastrous. The florist lost Blair’s corsage, the limo had been already booked, the hotel room was canceled and Blair’s dress was ruined at the dry cleaners. The horror! Blair was panicking. She and Nate were supposed to have a perfect night celebrating their perfect relationship as well as the end of a perfect four years. Nate had his suspicions as to what was going on. Chuck was obviously sabotaging them! But when Nate confronted him, he denied it. How many times did Chuck have to tell him? Blair was all Nate’s. Hmm…</p>
<p><img alt="124chuck.jpg" src="http://gossipgirl-blog.cwtv.com/wp-content/uploads/2009/05/124chuck.jpg" /></p>
<p>Over in Brooklyn, Dan was getting ready to not go to prom. He, his sister and Vanessa were going to watch scary movies (how depressing and cliché). Their prom night sounded like it was going to be just like every other sad night in their lives. But when Dan found out Serena was still in jail he knew what he had to do. He sprung her. Dan couldn’t let Serena miss her prom. I hate to say this but: Dan Humphrey, what you did was a pretty stand up thing and I half salute you (only half bc as far as I’m concerned you’re still a narc from DUMBO).</p>
<p>At the prom, Blair was dealing with the Mean Girls once again (btw, Blair received a dress from Paris, presumably from her father. And this new dress was AMAZING!). The Mean Girls were trying to ruin Blair’s chance of being prom queen. They were going to stuff the box with ballots that had Nelly Yuki’s name on it. Seriously, Nelly Yuki as prom queen? No thanks. As much as I love Nelly Yuki, this is prom queen not nerd queen. When Penelope went up to announce the winner she was surprised. Nelly Yuki was not the winner. It was Blair! Oh, and Nate was prom king, duh. And who was behind it all? Chuck Bass. Yep, seemed like he knew all about Blair’s prom scrapbook and was determined to make all her dreams come true. OHMYGOD!</p>
<p><img alt="124blate.jpg" src="http://gossipgirl-blog.cwtv.com/wp-content/uploads/2009/05/124blate.jpg" /></p>
<p>Even though Blair got everything she wanted she was still feeling kind of bad about something. That’s when she realized that maybe this was the end of her and Nate. Nate was her high school boyfriend. And perhaps that was all he’d ever be. But it was possible that what the two of them had was something that could never go beyond the hallways of Constance and St. Jude’s. So Blair and Nate broke up. And you know what? I kind of respect them for their mature decision.</p>
<p>Serena and Blair met each other outside the prom. They regaled over how they had been though so much together. They were practically sisters. Aww. Like I’ve said before no one does Besties better than Serena and Blair! They make my heart melt. Of course, Serena had to fill in Blair about what Chuck had said to her that night at the Russian Tea Room. Ahhh. Blair was finally going to know how Chuck actually felt about her!!</p>
<p>All the while, Rufus was still upset with Lily over having Serena arrested. But he realized that it wasn’t Serena who needed to change. It was Lily. And even after twenty years, Rufus believed she was still trying to figure out she was. This hit Lily hard. Maybe Rufus was right. Lily realized the only way to make things right was to be on better terms with her own mother. She made mistakes just like Cece had made (even though she never in a million years thought she’d be that kind of mother). Now, Lily kind of understand Cece better and she was finally able to forgive her mother for all the things that had happened in the past (ie giving baby away for adoption, paying off Rufus, etc). Sweet. And luckily, Serena was wiling to forgive Lily too. Let’s give it up for mothers and daughters uniting (what? Even Gossip Girl has a mother :p ).</p>
<p>Okay so now that prom’s out of the way, we have graduation coming up next. The end of senior year is way tiring. Also, I have a feeling I am going to be very busy in the upcoming week. I might be dropping some explosive info. Gossip bombs away. Xoxo Gossip Girl</p>
<p>xo xo Gossip Girl <strong>|</strong> <a href="http://gossipgirl-blog.cwtv.com/?p=2341#comments">53 Comments »</a></p>
<h4>Save the Last Dance</h4>
<p> <small>May 8th, 2009</small>
<p>I feel like such a slacker.&#160; Prom is only days away and yet I’ve done absolutely zero reporting on it.&#160; I guess that’s what happens when there’s so much other drama going on (not that I’m complaining, obvi).&#160; Is anyone else extremely excited for what should be a night we will never forget?&#160; You know I am.&#160; I hear this year Constance and St. Jude’s will announce a Prom Queen and King.&#160; Hmm…Who do you think should win?&#160; Who do you think will win?&#160; I know who I’m voting for.&#160; But I’m not gonna say.&#160; Don’t want to sway any votes.&#160; You know how persuasive I can be.&#160; See ya at the dance!&#160; I’ll be the one having a ball…</p>
<p>xo xo Gossip Girl <strong>|</strong> <a href="http://gossipgirl-blog.cwtv.com/?p=2332#comments">59 Comments »</a></p>
<h4>Shock. Total and utter shock.</h4>
<p> <small>May 5th, 2009</small>
<p><img alt="223blairserena.jpg" src="http://gossipgirl-blog.cwtv.com/wp-content/uploads/2009/05/223blairserena.jpg" /></p>
<p>Shock. Total and utter shock. Serena van der Woodsen in jail? And because her own mother had her arrested? OMFG! Could it get any crazier than that? Of course it can. This is the Upper East Side, people! Okay, okay, let’s go back to how this all started so we can totally understand what exactly went down…</p>
<p>Gabriel had vanished with all the money Lily, her Coop and Rufus had given him to invest. Serena could not believe this was happening. She brought that loser into everyone’s lives and because of her people had just lost serious $$. Serena decided to take it into her own hands to get the money back from Gabriel. So she did what any girl would do in order to get a guy to talk to her ASAP: Serena told Gabriel she was pregnant. And it worked. Dude called back in literally seconds. Serena met Gabriel at The Palace and told him she wasn’t knocked up. Instead, she wanted all the money he was stealing back. Gabriel told her he didn’t have it. Poppy did. It was all her scheme. Turned out, Poppy was actually a faux-calite. She snuck her way into high society and was just lucky to make friends with rich people. This meant it was Poppy they were after. Bitch was going down.</p>
<p>By trying to clean up thw huge mess herself, Serena was hoping to not have to tell her mom about this unfortunate incident. Lily had been treating Serena so well lately. Seemed like she was truly proud of the woman Serena was becoming. Lily even gave her a diamond bracelet that was a family heirloom (it was like way, way nice). This made Serena even more uncomfortable about having to explain the money issue. She was set on working this out all on her own. If she could just get the money back and return to everyone then all would be good. Right? Unfortunately, Dan Humphrey ruined all that. Dan overheard Serena et al. talking about Gabriel taking the money and fleeing. He was stunned. Rufus had given Gabriel Dan’s college dough. Without that money there was no way Dan was gonna go to college. So <em>he</em> did what any dorky and neurotic kid would do: he went straight to Lily. Ugh (go back to Brooklyn). Lily wanted to keep this totally under wraps. If word got out about them being involved, Serena’s life could be ruined. Do you know what kind of bad press this would be? Lily decided to pay back all the investors herself (it’s good to be a Bass). For Rufus, though, she was making an exception. Lily was going to pay him $5,000 a month. Seemed not only a little preferential but also a bit like charity.</p>
<p>And while Lily was doing that, Rufus was preparing to pop the question. Yep, he wanted to be her fifth husband. Rufus went to Eric to ask for Lily’s hand in marriage (adorable!!). Eric, of course, gave his blessing but was a little apprehensive about the way Rufus was going to propose. Lily was used to elaborate proposals (like on top of pyramids or in blimps). This was not something Rufus could give to her. But he made due and decided to do it the Humphrey way. Rufus cooked up a dinner of Lily’s favorite foods and brought her lilies. Looked like the van der Woodsens (+Chuck) and the Humphreys were officially going to be united for good.</p>
<p><img alt="223georgina.jpg" src="http://gossipgirl-blog.cwtv.com/wp-content/uploads/2009/05/223georgina.jpg" /></p>
<p>In order to get Poppy the crew needed to whip up the most badass plan they could think of. Luckily, Georgina was there. While she was still in love with Jesus, she was easily convinced to play the part of Sherilyn Phillips, a rich Canadian who was new to New York. The first person “Sherilyn” was to meet in the Big Apple? Why none other than Poppy Lifton (and obviously Poppy agreed to meet since she only associates with rich people). The group bugged Georgina and waited around the Russian Tea Room until Poppy started talking money. It was only a matter of time until they had Poppy right where they wanted her. And I can’t believe I’m about to say this, but: Thanks for your help, Georgina.</p>
<p>While everyone was waiting, some major drama went down. First off, Blair was still deciding if she wanted to move into Nate’s apartment with him. This was a huge step and one she couldn’t make properly until a major question was answered: what the hell was Chuck’s deal? If Chuck wanted her then he had to tell her that. If he didn’t then she could be free. But she couldn’t make up her mind until she knew exactly how Chuck felt. So she made him tell her. And sadly, he said it was all just a game. NOOOOO! Blair was heartbroken but at least now she could move on with her life. Serena heard the whole thing and could not believe Chuck did that. What the eff? And then he finally admitted it. The reason he told Blair that it was a game was because he actually did love her (and he really said “I LOVE HER!” AHH). Chuck just couldn’t give her what she needed. OMFG! Chuck Bass just admitted he loved Blair Waldorf! But he didn’t tell her that. GAH!</p>
<p><img alt="223chuck.jpg" src="http://gossipgirl-blog.cwtv.com/wp-content/uploads/2009/05/223chuck.jpg" /></p>
<p>Blair informed Nate she wasn’t going to move in with him. Not because of Chuck but just because it wasn’t right. Nate agreed. They still had issues they had to work out. Blair told him maybe their next step should be prom. Omg! Prom. I almost totally forgot about it with all this crazy action happening. But yes, Nate and Blair going to prom together is like icing on the cake to four years of high school.</p>
<p>Georgina had Poppy right under her thumb. Or rather, “Sherilyn” did. She offered to give money for the investment and, of course, Poppy happily accepted. Yes! It was time for the bitch to get what she deserved. Unfortunately, when the cops got to the Russian Tea Room they weren’t there for Poppy. Rather, they were there for Serena! Turned out, in order to stop Serena from turning this mess into a big deal, Lily called in the police. She said her bracelet was stolen and Serena had taken it. OMG! So while Serena was being handcuffed, Poppy was able to get out scott free. With Georgina’s bible money. Yep, Georgina had given Poppy money for bibles for the church camp (with the thought she would get it right back). OMJC!</p>
<p>But we all know Georgina Sparks. And while she has changed a bit no one effing crosses her. With Jesus on her side or not, Georgina was now out for Poppy’s blood. It was going to be the war of the Upper East Side bitches. This was gonna get ugly.</p>
<p><img alt="223nateblair.jpg" src="http://gossipgirl-blog.cwtv.com/wp-content/uploads/2009/05/223nateblair.jpg" /></p>
<p>Meanwhile, over at the van der Woodsens Rufus was about to get on his knee. However, he found the paperwork re: Lily paying him $5,000 a month. What the hell was that? When he confronted Lily she told him she had to take care of it herself. He was humiliated. Lily tried to explain but he didn’t care. When Serena got arrested it only made matters worse. How could Lily lock her daughter away like that? Lily argued it was for the best. She couldn’t let this scandal get out. It would totally embarrass her. Rufus was shocked. This didn’t sound like Lily. It sounded like Cece. Was Lily becoming her? Rufus wasn’t going to be proposing to Lily. Their families weren’t going to blend. Looked like it was over. Sadness.</p>
<p>ACK! This was insane. Serena’s in jail! Chuck admitted he loved Blair! Nate and Blair are going to prom together! Rufus and Lily are over?! Georgina is back to her old self! This is all amazing! Just what I like to see. And prom is only a week away. Save a dance for me? Xoxo Gossip Girl</p>
]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=116</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>open pdf files in new window with javascript</title>
		<link>http://wind-flowers.net/?p=115</link>
		<comments>http://wind-flowers.net/?p=115#comments</comments>
		<pubDate>Tue, 07 Jul 2009 06:02:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[pdf]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=115</guid>
		<description><![CDATA[Opening documents such as PDFs in a new window should be automated using JavaScript for the following reasons:

Users will often close the web browser when a PDF is opened, mistakenly believing the document has been opened in Adobe Reader
The attribute historically used to open a new window, target, has been removed from the HTML 4.01 [...]]]></description>
			<content:encoded><![CDATA[<p>Opening documents such as <acronym>PDF</acronym>s in a new window should be <strong>automated using JavaScript</strong> for the following reasons:</p>
<ul>
<li>Users will often close the web browser when a <acronym>PDF</acronym> is opened, mistakenly believing the document has been opened in Adobe Reader</li>
<li>The attribute historically used to open a new window, <code>target</code>, has been removed from the <acronym>HTML</acronym> 4.01 Strict specification (it&#8217;s now deprecated)</li>
<li>Opening a new window is a behaviour and should be moved to <a href="http://www.webcredible.co.uk/user-friendly-resources/dom-scripting/progressive-enhancement.shtml">the behavioural layer</a><sup>11</sup>.</li>
</ul>
<p>Using JavaScript can also be particularly useful when a website is content managed. Rather than having to rely on site editors to remember to open a link to a <acronym>PDF</acronym> in a new window the process is handled by a simple JavaScript function.</p>
<h4>Registering an event</h4>
<p>The first task is to create an event that occurs when the page has loaded. Rather than trying to execute a function call using <code>&lt;body onload="callfunction()"&gt;</code> within the <acronym>HTML</acronym> page we&#8217;re going to use Simon Willison&#8217;s <code>addLoadEvent(func)</code>. This will allow us to add function calls once the page has loaded.</p>
<p>Type the following JavaScript into the .js file (all subsequent code should be entered before this function so the addLoadEvent is last):</p>
<p><code>function addLoadEvent(func)<br />
{<br />
    var oldonload = window.onload;<br />
    if (typeof window.onload != 'function') { window.onload = func; }<br />
    else { window.onload = function() { oldonload(); func(); } }<br />
}<br />
addLoadEvent(fNewPDFWindows);</code></p>
<h4>The function <code>fNewPDFWindows()</code></h4>
<p>Create an empty function in your JavaScript file called <code>fNewPDFWindows</code>. To avoid any JavaScript errors with the script, check to see if the command <code>getElementsByTagName</code> is available:</p>
<p><code>function fNewPDFWindows ()<br />
{<br />
    if (!document.getElementsByTagName) return false;<br />
} </code></p>
<p>The second task is to create an <acronym>HTML</acronym> object collection of any links within the page. The following line gets all links within the page:</p>
<p><code>var links = document.getElementsByTagName("a"); </code></p>
<p>Insert this line after the check to see if <code>getElementsByTagName</code> object method exists as follows:</p>
<p><code>function fNewPDFWindows ()<br />
{<br />
    if (!document.getElementsByTagName) return false;<br />
<strong>    var links = document.getElementsByTagName("a");</strong><br />
} </code></p>
<p>The next task is to loop through all of the links and check to see if we want to open any of the links in a new window. If the link is to a <acronym>PDF</acronym> document then we&#8217;ll open it in a new window.</p>
<h4>Looping through the links</h4>
<p>First create the loop that goes through all the links in the page, as follows:</p>
<p><code>function fNewPDFWindows ()<br />
{<br />
    if (!document.getElementsByTagName) return false;<br />
    var links = document.getElementsByTagName("a");<br />
<strong>    for (var eleLink=0; eleLink &lt; links.length; eleLink ++)<br />
    {</strong> <strong>}</strong><br />
}<br />
</code></p>
<h4>The <code>indexOf</code> method</h4>
<p>Next we need to determine as we loop through the links whether the link is to a <acronym>PDF</acronym> document or not. The <code>indexOf</code> method is ideal for this by returning the index of the search value (the position of the search value in the string). The <code>indexOf</code> method requires a search value but you can also specify where to start the search from within the string (in this example we don&#8217;t need to pass the method this parameter):</p>
<p>So pass the <code>indexOf</code> method the string &#8220;.pdf&#8221; to find out if the file being linked to is a <acronym>PDF</acronym> document. The indexOf method returns either -1 if the string isn&#8217;t found or the index of the matching text.</p>
<p><code>function fNewPDFWindows ()<br />
{<br />
  if (!document.getElementsByTagName) return false;<br />
  var links = document.getElementsByTagName("a");<br />
  for (var eleLink=0; eleLink &lt; links.length; eleLink ++) {<br />
<strong>    if (links[eleLink].href.indexOf('.pdf') !== -1) {</strong> <strong>}</strong><br />
  }<br />
}<br />
</code></p>
<h4><code>onclick</code> function</h4>
<p>Next we need to apply an <code>onclick</code> event to each of the links to <acronym>PDF</acronym> documents, so when they&#8217;re clicked the new window is opened:</p>
<p><code>links[eleLink].onclick = function() { } </code></p>
<p>First, let&#8217;s open the new window, and give the window some parameters. The parameters we&#8217;re going to pass are as follows.</p>
<ul>
<li><acronym>URL</acronym> &#8211; the document we want to display in the new window</li>
<li>Specs &#8211; a comma separated list of window properties such as scrollbars etc</li>
</ul>
<p>For a comprehensive list of windows properties take a look <a href="http://www.w3schools.com/htmldom/met_win_open.asp">W3C schools <acronym>DOM</acronym> open method page</a><sup>14</sup>.</p>
<p>The completed function in this example is as follows. This opens the link address in a new, re sizable window with scrollbars:</p>
<p><code>links[eleLink].onclick = function() { <strong>window.open(this.href,'resizable,scrollbars');</strong> <strong>return false;</strong> } </code></p>
<p>Insert the onclick event within the <code>if</code> statement that detects whether a <acronym>PDF</acronym> document has been found:</p>
<p><code>function fNewPDFWindows ()<br />
{<br />
  if (!document.getElementsByTagName) return false;<br />
  var links = document.getElementsByTagName("a");<br />
  for (var eleLink=0; eleLink &lt; links.length; eleLink ++) {<br />
  if (links[eleLink].href.indexOf('.pdf') !== -1)<br />
  { <strong>links[eleLink].onclick =</strong> <strong>function()<br />
  {</strong> <strong>window.open(this.href,'resizable,scrollbars');</strong><br />
<strong>  return false;</strong><br />
<strong>  }</strong><br />
  }<br />
  }<br />
}<br />
</code></p>
<h4>Warning users the document opens in a a new window</h4>
<p>The final task is to ensure users are aware that the link will open in a new window. We need to be as clear as we can with this to minimise confusion.</p>
<p>We&#8217;re going to do this by firstly amending the title text of the link and secondly inserting an image with alternate text of &#8220;(opens in a new window)&#8221;. The link title can be set as follows:</p>
<p><code>links[eleLink].title += "\n(opens in a new window)"; </code></p>
<p>Next we will create an image element and set it&#8217;s <code>src</code> and <code>alt</code> attributes. Finally we&#8217;ll append the image to the hyperlink using the <code>appendChild</code> method.</p>
<p><code>var img = document.createElement("img"); img.setAttribute("src", "i/new-win-icon.gif"); img.setAttribute("alt", "(opens in a new window)"); links[eleLink].appendChild(img); </code></p>
<p>The final function is as follows:</p>
<p><code>function fNewPDFWindows ()<br />
{<br />
  if (!document.getElementsByTagName) return false;<br />
  var links = document.getElementsByTagName("a");<br />
  for (var eleLink=0; eleLink &lt; links.length; eleLink ++) {<br />
  if (links[eleLink].href.indexOf('.pdf') !== -1)<br />
  { links[eleLink].onclick = function()<br />
  { window.open(this.href,'resizable,scrollbars');<br />
  return false;<br />
  }<br />
  <strong>var img = document.createElement("img");</strong><br />
  <strong>img.setAttribute("src", "i/new-win-icon.gif");</strong><br />
  <strong>img.setAttribute("alt", "(opens in a new window)");</strong><br />
  <strong>links[eleLink].appendChild(img);</strong><br />
  }<br />
  }<br />
}</code></p>
<h4>Conclusion</h4>
<p>This very short function demonstrates how easy it is to open links in new windows automatically. This means your site will be more likely to validate, more likely to work correctly in future browsers and will be more usable for its users.</p>
<h4>Resources for the new window tutorial</h4>
<p><a href="http://www.webcredible.co.uk/user-friendly-resources/dom-scripting/pdf-new-window.zip">Download the required resources</a> before beginning this tutorial.</p>
<p>Start by opening the file &#8216;pdf-new-window.htm&#8217;. This is the content we&#8217;re going to apply our JavaScript new window function to.</p>
]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=115</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Learn how to create stored procedures in SQL Server 2000 and make use of them in ASP.NET pages</title>
		<link>http://wind-flowers.net/?p=113</link>
		<comments>http://wind-flowers.net/?p=113#comments</comments>
		<pubDate>Thu, 02 Jul 2009 02:20:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asp.net]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=113</guid>
		<description><![CDATA[Introduction    Stored procedures are T-SQL statements that are stored in the SQL Server. They are executed by calling their names, as in our case, from ASP.NET pages. They add more efficiency and compactness to the code. Imagine what it&#8217;d cost in terms of server performance if we were to send with every [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.stardeveloper.com/images/jug.gif" width="24" height="28" />Introduction    <br />Stored procedures are T-SQL statements that are stored in the SQL Server. They are executed by calling their names, as in our case, from ASP.NET pages. They add more efficiency and compactness to the code. Imagine what it&#8217;d cost in terms of server performance if we were to send with every request to the SQL Server, a set of 5-10 T-SQL statements, which the SQL Server would have to parse and compile and then execute. This will be performance heavy. Now, compare this with the performance of a pre-compiled set of high performance code that is kept on the SQL Server and executed by just calling its name. This gives tremendous performance advantages, plus also allows one to keep lengthy bits of code compactly and in a more organized way, on the SQL Server.</p>
<p>In this tutorial, we will learn how to create stored procedures for four of the most common SQL tasks that every ASP.NET and database developer has to go through. And that is creating, retrieving (displaying), updating and deleting records in a table in the database. For the purpose of demonstration, we&#8217;ll first create a table, and then add four stored procedures to the database, one for each of the SQL tasks we talked of above. Let us now proceed to the code.</p>
<p><img src="http://www.stardeveloper.com/images/jug.gif" width="24" height="28" />Creating the Table    <br />We&#8217;ll create a table with the name of &#8216;Names&#8217; in our SQL Server database. Open SQL Server Query Analyzer and copy/paste following code in it. Then press F5 key to execute/create the table.</p>
<pre>CREATE TABLE [dbo].[Names] (
	[ID] [int] IDENTITY (1, 1) NOT NULL ,
	[FirstName] [varchar] (50) NOT NULL ,
	[LastName] [varchar] (50) NOT NULL
) ON [PRIMARY]
GO</pre>
<p>Executing the above SQL code will create a table &#8216;Names&#8217; with following structure in your SQL Server database:</p>
<p><img border="0" alt="Structure of Names Table" src="http://www.stardeveloper.com/images/articles/2007122701_01.gif" width="323" height="69" /></p>
<p>Explanation<br />
  <br />We basically create a very simple table with just 3 columns. The first column with the name of &#8216;ID&#8217; is an identity column, meaning it will increment automatically. It is also our primary key. The second and third columns with the names of &#8216;FirstName&#8217; and &#8216;LastName&#8217; are for storing first and last names that we&#8217;ll add later on, using ASP.NET pages.</p>
<p><img src="http://www.stardeveloper.com/images/jug.gif" width="24" height="28" />Creating the Stored Procedures</p>
<p>Let us now create the four stored procedures to create, retrieve, update and delete records in the &#8216;Names&#8217; table.</p>
<p>i. Stored Procedure for Creating a New Name<br />
  <br />This stored procedure encapsulates the <code>INSERT</code> SQL statement to add a new record to the &#8216;Names&#8217; table. Copy following code and paste in it your SQL Server Query Analyzer window and then press the F5 key to execute/create this stored procedure:</p>
<pre>CREATE PROC dbo.AddName
	@FirstName	varchar(50),
	@LastName	varchar(50),
	@ID		int	OUT
AS
	INSERT INTO Names(FirstName, LastName) VALUES (@FirstName, @LastName)

	SET @ID = @@IDENTITY
GO</pre>
<p>Explanation<br />
  <br />After the <code>CREATE PROC</code> statement, comes the name of our stored procedure. We append <code>dbo.</code> before it to tell SQL Server that this stored procedure belongs to &#8216;dbo&#8217; user account. We then tell SQL Server that this stored procedure will be accepting three arguments of the type given above. The third argument has the keyword <code>OUT</code> appended to it, which tells SQL Server that we&#8217;ll be using this argument to send data back to the calling ASP.NET page. Finally, after the <code>INSERT</code> statement, we retrieve the primary key of the newly added record using SQL Server&#8217;s <code>@@IDENTITY</code> variable. We assign it&#8217;s value to the out-going &#8216;ID&#8217; parameter and we are done.</p>
<p><b>Tip:</b> Unless you really know what you are doing, always append &#8216;dbo.&#8217; before the name of all the objects (tables, stored procedures) you create in SQL Server.</p>
<p>In a nutshell, this stored procedure will accept first and last names. It will insert them in the &#8216;Names&#8217; table and return the newly generated identity back to the ASP.NET page.</p>
<p>ii. Stored Procedure for Retrieving All Names from the &#8216;Names&#8217; Table<br />
  <br />This stored procedure will return all the records from the &#8216;Names&#8217; table. Copy following code and paste in it your SQL Server Query Analyzer window and then press the F5 key to execute/create this stored procedure:</p>
<pre>CREATE PROC dbo.GetAllNames
AS
	SELECT [ID], FirstName, LastName FROM Names ORDER BY [ID] ASC

GO</pre>
<p>Explanation<br />
  <br />This stored procedure simply runs a <code>SELECT</code> statement to return the ID, first name and last name of all the names added to the &#8216;Names&#8217; table. Executing this stored procedure, which does not accept any argument, will display a list of all names in the &#8216;Names&#8217; table.</p>
<p>iii. Stored Procedure for Updating a Given Name<br />
  <br />This stored procedure will update the first and last names of a name in the &#8216;Names&#8217; table using its &#8216;ID&#8217;. Copy following code and paste in it your SQL Server Query Analyzer window and then press the F5 key to execute/create this stored procedure:</p>
<pre>CREATE PROC dbo.UpdateName
	@ID	int,
	@FirstName	varchar(50),
	@LastName	varchar(50)
AS
	UPDATE Names SET FirstName = @FirstName,
	LastName = @LastName WHERE [ID] = @ID

GO</pre>
<p>Explanation<br />
  <br />It takes three arguments to update the record using an <code>UPDATE</code> SQL statement. The code is straightforward.</p>
<p>iv. Stored Procedure for Removing a Name From &#8216;Names&#8217; Table<br />
  <br />This stored procedure will remove a given name using its &#8216;ID&#8217; from the &#8216;Names&#8217; table. Copy following code and paste in it your SQL Server Query Analyzer window and then press the F5 key to execute/create this stored procedure:</p>
<pre>CREATE PROC dbo.RemoveName
	@ID	int
AS
	DELETE Names WHERE [ID] = @ID
GO</pre>
<p>Explanation<br />
  <br />Another very simple stored procedure. Here we use a single-line <code>DELETE</code> SQL statement to remove a record from the &#8216;Names&#8217; table using the argument.</p>
<p>Assuming that you were successful in creating the &#8216;Names&#8217; table and four stored procedures in your SQL Server database, we&#8217;ll move forward to create 4 ASP.NET pages similar to the 4 stored procedures.</p>
<p><img src="http://www.stardeveloper.com/images/jug.gif" width="24" height="28" />Creating the ASP.NET front-end</p>
<p>Guys, let us now create the ASP.NET front-end.</p>
<p>i. Web.config<br />
  <br />Since our ASP.NET will be connecting to the database, add the following connection string in your web.config file between the &lt;connectionStrings&gt;&lt;/connectionStrings&gt; tags:</p>
<pre>&lt;add name=&quot;NamesDB&quot; connectionString=&quot;server=.;database=;user id=;password=&quot;
		  providerName=&quot;System.Data.SqlClient&quot;/&gt;</pre>
<p>Add the correct server, database, username and password to be able to connect to your SQL Server database.</p>
<p>ii. Create.aspx<br />
  <br />Create a new ASP.NET page and copy/paste following code in it:</p>
<pre>&lt;%@ Page Language=&quot;C#&quot; %&gt;
&lt;%@ Import Namespace=&quot;System.Data&quot; %&gt;
&lt;%@ Import Namespace=&quot;System.Data.SqlClient&quot; %&gt;

&lt;script runat=&quot;server&quot;&gt;
public void AddName(object obj, EventArgs args)
{
	string connStr = ConfigurationManager.ConnectionStrings[&quot;NamesDB&quot;]
		.ConnectionString;

	using (SqlConnection con = new SqlConnection(connStr))
	using (SqlCommand cmd = new SqlCommand(&quot;AddName&quot;, con))
	{
		cmd.CommandType = CommandType.StoredProcedure;
		cmd.Parameters.Add(&quot;FirstName&quot;, SqlDbType.VarChar, 50).Value =
			FirstName.Text;
		cmd.Parameters.Add(&quot;LastName&quot;, SqlDbType.VarChar, 50).Value =
			LastName.Text;
		cmd.Parameters.Add(&quot;ID&quot;, SqlDbType.Int);

		cmd.Parameters[&quot;ID&quot;].Direction = ParameterDirection.Output;

		con.Open();
		cmd.ExecuteNonQuery();

		Result.Text = &quot;New record created. (&quot; +
			cmd.Parameters[&quot;ID&quot;].Value + &quot;)&quot;;
		}
	}
&lt;/script&gt;

&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
	&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;

&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; &gt;
&lt;head&gt;
    &lt;title&gt;Add a New Name&lt;/title&gt;
    &lt;style&gt;
		body { font-family: Verdana; }
    &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;form id=&quot;form1&quot; runat=&quot;server&quot;&gt;
    &lt;div&gt;
	&lt;span style=&quot;font-size: larger&quot;&gt;Add a New Name&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;

	First Name: &lt;asp:TextBox ID=&quot;FirstName&quot; runat=&quot;server&quot; /&gt;&lt;br /&gt;
	Last Name: &lt;asp:TextBox ID=&quot;LastName&quot; runat=&quot;server&quot; /&gt;&lt;br /&gt;&lt;br /&gt;
	&lt;asp:Button ID=&quot;SubmitButton&quot; Text=&quot;Add Name&quot;
		OnClick=&quot;AddName&quot; runat=&quot;server&quot; /&gt;
	&lt;/div&gt;

	&lt;br /&gt;
	&lt;asp:Label ID=&quot;Result&quot; runat=&quot;server&quot; /&gt;
    &lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p><img border="0" alt="Create.aspx" src="http://www.stardeveloper.com/images/articles/2007122701_02.gif" width="354" height="226" /></p>
<p>Explanation<br />
  <br />This ASP.NET displays a form to the user. The user then enters the desired first and last names, and presses the submit button, the ASP.NET pages connects to the SQL Server and executes the &#8216;AddName&#8217; stored procedure we create above to add a new record in the &#8216;Names&#8217; table.</p>
<pre>string connStr = ConfigurationManager.ConnectionStrings[&quot;NamesDB&quot;]
	.ConnectionString;</pre>
<p>We first retrieve the connection string in a local variable.</p>
<pre>	using (SqlConnection con = new SqlConnection(connStr))
	using (SqlCommand cmd = new SqlCommand(&quot;AddName&quot;, con))
	{
		...
	}</pre>
<p>Then we create connection and command objects for this connection. The command object contains the name of the stored procedure we want to execute.</p>
<pre>	cmd.CommandType = CommandType.StoredProcedure;</pre>
<p>We set the <code>CommandType</code> property of command object to be of type <code>CommandType.StoredProcedure</code>.</p>
<pre>	cmd.Parameters.Add(&quot;FirstName&quot;, SqlDbType.VarChar, 50).Value =
		FirstName.Text;
	cmd.Parameters.Add(&quot;LastName&quot;, SqlDbType.VarChar, 50).Value =
		LastName.Text;
	cmd.Parameters.Add(&quot;ID&quot;, SqlDbType.Int);

	cmd.Parameters[&quot;ID&quot;].Direction = ParameterDirection.Output;</pre>
<p>Add three parameters to this stored procedure and setting the last parameter to receive the data set by the stored procedure, which in our case will be the &#8216;ID&#8217; of the newly created record.</p>
<pre>	con.Open();
	cmd.ExecuteNonQuery();</pre>
<p>We then open the connection and execute the stored procedure.</p>
<pre>	Result.Text = &quot;New record created. (&quot; +
		cmd.Parameters[&quot;ID&quot;].Value + &quot;)&quot;;</pre>
<p>Finally, we display the retrieved id to the user. Pretty simple stuff.</p>
<p>iii. Retrieve.aspx<br />
  <br />Create a new ASP.NET page and copy/paste following code in it:</p>
<pre>&lt;%@ Page Language=&quot;C#&quot; %&gt;

&lt;script runat=&quot;server&quot;&gt;
	public void Page_Load(object obj, EventArgs args)
	{
		GridView1.DataSource = SqlDataSource1;
		GridView1.DataBind();
	}
&lt;/script&gt;

&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
	&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;

&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; &gt;
&lt;head&gt;
    &lt;title&gt;Retrieve All Names&lt;/title&gt;
    &lt;style&gt;
		body { font-family: Verdana; }
    &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;form id=&quot;form1&quot; runat=&quot;server&quot;&gt;
    &lt;div&gt;
	&lt;asp:SqlDataSource ID=&quot;SqlDataSource1&quot; SelectCommand=&quot;GetAllNames&quot;
	SelectCommandType=&quot;StoredProcedure&quot; ProviderName=&quot;System.Data.SqlClient&quot;
	ConnectionString=&quot;&lt;%$ ConnectionStrings:NamesDB %&gt;&quot;
		runat=&quot;server&quot;&gt;&lt;/asp:SqlDataSource&gt;

	&lt;asp:GridView ID=&quot;GridView1&quot; runat=&quot;server&quot;&gt;
	&lt;/asp:GridView&gt;
	&lt;/div&gt;
    &lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p><img border="0" alt="Retrieve.aspx" src="http://www.stardeveloper.com/images/articles/2007122701_03.gif" width="324" height="141" /></p>
<p>Explanation<br />
  <br />We use &lt;asp:SqlDataSource&gt; and &lt;asp:GridView&gt; server tags to display the result of executing the &#8216;GetAllNames&#8217; stored procedure to the user.</p>
<p>iv. Update.aspx<br />
  <br />Create a new ASP.NET page and copy/paste following code in it:</p>
<pre>&lt;%@ Page Language=&quot;C#&quot; %&gt;
&lt;%@ Import Namespace=&quot;System.Data&quot; %&gt;
&lt;%@ Import Namespace=&quot;System.Data.SqlClient&quot; %&gt;

&lt;script runat=&quot;server&quot;&gt;
public void UpdateName(object obj, EventArgs args)
{
	string connStr = ConfigurationManager.ConnectionStrings[&quot;NamesDB&quot;]
		.ConnectionString;

	using (SqlConnection con = new SqlConnection(connStr))
	using (SqlCommand cmd = new SqlCommand(&quot;UpdateName&quot;, con))
	{
		cmd.CommandType = CommandType.StoredProcedure;
		cmd.Parameters.Add(&quot;ID&quot;, SqlDbType.Int).Value = ID.Text;
		cmd.Parameters.Add(&quot;FirstName&quot;, SqlDbType.VarChar, 50).Value =
			FirstName.Text;
		cmd.Parameters.Add(&quot;LastName&quot;, SqlDbType.VarChar, 50).Value =
			LastName.Text;

		con.Open();
		cmd.ExecuteNonQuery();

		Result.Text = &quot;Record updated&quot;;
	}
}
&lt;/script&gt;

&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
	&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;

&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; &gt;
&lt;head&gt;
    &lt;title&gt;Update a Name&lt;/title&gt;
    &lt;style&gt;
		body { font-family: Verdana; }
    &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;form id=&quot;form1&quot; runat=&quot;server&quot;&gt;
    &lt;div&gt;
	&lt;span style=&quot;font-size: larger&quot;&gt;Update an Existing Name&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;

	ID: &lt;asp:TextBox ID=&quot;ID&quot; runat=&quot;server&quot; /&gt;&lt;br /&gt;
	First Name: &lt;asp:TextBox ID=&quot;FirstName&quot; runat=&quot;server&quot; /&gt;&lt;br /&gt;
	Last Name: &lt;asp:TextBox ID=&quot;LastName&quot; runat=&quot;server&quot; /&gt;&lt;br /&gt;&lt;br /&gt;
	&lt;asp:Button ID=&quot;SubmitButton&quot; Text=&quot;Update Name&quot;
		OnClick=&quot;UpdateName&quot; runat=&quot;server&quot; /&gt;
	&lt;/div&gt;

	&lt;br /&gt;
	&lt;asp:Label ID=&quot;Result&quot; runat=&quot;server&quot; /&gt;
    &lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p><img border="0" alt="Update.aspx" src="http://www.stardeveloper.com/images/articles/2007122701_04.gif" width="323" height="248" /></p>
<p>Explanation<br />
  <br />Presents a form, asking for a given record&#8217;s &#8216;ID&#8217; whose first and last names you want to change. You supply all the arguments and click the submit button, this will execute the &#8216;UpdateName&#8217; stored procedure and the first and last names corresponding to that &#8216;ID&#8217; will be updated.</p>
<p>iv. Delete.aspx<br />
  <br />Create a new ASP.NET page and copy/paste following code in it:</p>
<pre>&lt;%@ Page Language=&quot;C#&quot; %&gt;
&lt;%@ Import Namespace=&quot;System.Data&quot; %&gt;
&lt;%@ Import Namespace=&quot;System.Data.SqlClient&quot; %&gt;

&lt;script runat=&quot;server&quot;&gt;
public void DeleteName(object obj, EventArgs args)
{
	string connStr = ConfigurationManager.ConnectionStrings[&quot;NamesDB&quot;]
		.ConnectionString;

	using (SqlConnection con = new SqlConnection(connStr))
	using (SqlCommand cmd = new SqlCommand(&quot;RemoveName&quot;, con))
	{
		cmd.CommandType = CommandType.StoredProcedure;
		cmd.Parameters.Add(&quot;ID&quot;, SqlDbType.Int).Value = ID.Text;

		con.Open();
		cmd.ExecuteNonQuery();

		Result.Text = &quot;Record deleted&quot;;
	}
}
&lt;/script&gt;

&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
	&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;

&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; &gt;
&lt;head&gt;
    &lt;title&gt;Delete a Name&lt;/title&gt;
    &lt;style&gt;
		body { font-family: Verdana; }
    &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;form id=&quot;form1&quot; runat=&quot;server&quot;&gt;
    &lt;div&gt;
	&lt;span style=&quot;font-size: larger&quot;&gt;Delete an Existing Name&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;

	ID: &lt;asp:TextBox ID=&quot;ID&quot; runat=&quot;server&quot; /&gt;&lt;br /&gt;&lt;br /&gt;
	&lt;asp:Button ID=&quot;SubmitButton&quot; Text=&quot;Delete Name&quot;
		OnClick=&quot;DeleteName&quot; runat=&quot;server&quot; /&gt;
	&lt;/div&gt;

	&lt;br /&gt;
	&lt;asp:Label ID=&quot;Result&quot; runat=&quot;server&quot; /&gt;
    &lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p><img border="0" alt="Delete.aspx" src="http://www.stardeveloper.com/images/articles/2007122701_05.gif" width="324" height="204" /></p>
<p>Explanation<br />
  <br />Presents a form with a single input field. You enter the value of the &#8216;ID&#8217; of the record you want deleted. Pressing the submit button executes the &#8216;RemoveName&#8217; stored procedure which deletes the given record.</p>
<p>v. index.html<br />
  <br />This page will allow you to link to all four ASP.NET pages from a single page. This way you can go to one ASP.NET page to add a new record, and come back to go to another ASP.NET page to view it. Create a new HTML page and copy/paste following code in it:</p>
<pre>&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
	&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; &gt;
&lt;head&gt;
    &lt;title&gt;Index&lt;/title&gt;
    &lt;style&gt;
    body { font-family: Verdana; }
    &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;div&gt;Basic Stored Procedure Operations&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;create.aspx&quot;&gt;Create&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;retrieve.aspx&quot;&gt;Retrieve&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;update.aspx&quot;&gt;Update&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;delete.aspx&quot;&gt;Delete&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;/body&gt;
&lt;/html&gt;</pre>
<p>Conclusion<br />
  <br />In this tutorial we learned about stored procedures. We learned how to create 4 basic types of stored procedures, and viewed their operations on a sample table. We also created 4 ASP.NET pages and learned how to assign parameters to stored procedures from ASP.NET pages, receive data (via OUT statement) from the stored procedure, and execute stored procedures from ASP.NET pages.</p>
<p>Guys, this is it. Go play with the code. Create the drop stored procedures as many times as you want. You can download all the code discussed in this tutorial from a link below. Have fun!</p>
]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=113</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to read XML file with asp?</title>
		<link>http://wind-flowers.net/?p=108</link>
		<comments>http://wind-flowers.net/?p=108#comments</comments>
		<pubDate>Thu, 02 Jul 2009 01:58:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ASP]]></category>
		<category><![CDATA[reading xml]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=108</guid>
		<description><![CDATA[in this article,we will study how to reading xml file with asp.
first: what is xml file ?
XML is tag based just like HTML. there is a example:
&#60;?xml version=&#8221;1.0&#8243;?&#62;
&#60;boot&#62;
&#60;name&#62;Faisal Khan&#60;/name&#62;
&#60;name&#62;&#60;/name&#62;
&#60;name/&#62;
&#60;name language=&#8221;US-EN&#8221;&#62;Faisal Khan&#60;/name&#62;
&#60;/boot&#62;
second: we save the xml file named &#8220;aspreadxml.xml&#8221;, and we will reading this xml with asp. we can get the xml document elements and attributes.
the [...]]]></description>
			<content:encoded><![CDATA[<p>in this article,we will study how to reading xml file with asp.</p>
<p>first: what is xml file ?</p>
<p>XML is tag based just like HTML. there is a example:<br />
&lt;?xml version=&#8221;1.0&#8243;?&gt;<br />
&lt;boot&gt;<br />
&lt;name&gt;Faisal Khan&lt;/name&gt;<br />
&lt;name&gt;&lt;/name&gt;<br />
&lt;name/&gt;<br />
&lt;name language=&#8221;US-EN&#8221;&gt;Faisal Khan&lt;/name&gt;<br />
&lt;/boot&gt;</p>
<p>second: we save the xml file named &#8220;aspreadxml.xml&#8221;, and we will reading this xml with asp. we can get the xml document elements and attributes.<br />
the code like this:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p108code31'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p10831"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
</pre></td><td class="code" id="p108code31"><pre class="csharp" style="font-family:monospace;"><span style="color: #008000;">&lt;?</span>xml version<span style="color: #008000;">=</span><span style="color: #666666;">&quot;1.0&quot;</span><span style="color: #008000;">?&gt;</span>
<span style="color: #008000;">&lt;%</span>
dim xml,objNode,objAtr,nCntChd,nCntAtr
Set xml<span style="color: #008000;">=</span>Server.<span style="color: #0000FF;">CreateObject</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;Microsoft.XMLDOM&quot;</span><span style="color: #000000;">&#41;</span>
xml.<span style="color: #0000FF;">Async</span><span style="color: #008000;">=</span><span style="color: #0600FF;">False</span>
xml.<span style="color: #0000FF;">Load</span><span style="color: #000000;">&#40;</span>Server.<span style="color: #0000FF;">MapPath</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;aspreadxml.xml&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
Set objNode<span style="color: #008000;">=</span>xml.<span style="color: #0000FF;">documentElement</span>
nCntChd<span style="color: #008000;">=</span>objNode.<span style="color: #0000FF;">ChildNodes</span>.<span style="color: #0000FF;">length</span><span style="color: #008000;">-</span><span style="color: #FF0000;">1</span>
<span style="color: #0600FF;">for</span> i<span style="color: #008000;">=</span><span style="color: #FF0000;">0</span> to nCntChd
set objAtr<span style="color: #008000;">=</span>objNode.<span style="color: #0000FF;">ChildNodes</span>.<span style="color: #0000FF;">item</span><span style="color: #000000;">&#40;</span>i<span style="color: #000000;">&#41;</span>
nCntAtr<span style="color: #008000;">=</span>objAtr.<span style="color: #0000FF;">Attributes</span>.<span style="color: #0000FF;">length</span><span style="color: #008000;">-</span><span style="color: #FF0000;">1</span>
<span style="color: #0600FF;">for</span> j<span style="color: #008000;">=</span><span style="color: #FF0000;">0</span> to nCntAtr
response.<span style="color: #0000FF;">write</span> objAtr.<span style="color: #0000FF;">Attributes</span>.<span style="color: #0000FF;">item</span><span style="color: #000000;">&#40;</span>j<span style="color: #000000;">&#41;</span>.<span style="color: #0000FF;">Text</span><span style="color: #008000;">&amp;</span><span style="color: #666666;">&quot;&lt;br&gt;&quot;</span>
next
response.<span style="color: #0000FF;">write</span> <span style="color: #666666;">&quot;&lt;br&gt;&quot;</span>
next
Set objAtr<span style="color: #008000;">=</span>Nothing
Set objNode<span style="color: #008000;">=</span>Nothing
Set xml<span style="color: #008000;">=</span>Nothing
<span style="color: #008000;">%&gt;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=108</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is Your Liver Working Like It Should?</title>
		<link>http://wind-flowers.net/?p=104</link>
		<comments>http://wind-flowers.net/?p=104#comments</comments>
		<pubDate>Mon, 29 Jun 2009 12:51:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Health]]></category>
		<category><![CDATA[Working]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=104</guid>
		<description><![CDATA[So many people that are concerned with improving their health over look the health of their liver. The liver is called LIVE -R for a reason. The reason is the liver is involved with digestion and assimilation. It processes nutrients to give life to your body, to repair diseased and damaged tissue. It removes toxins [...]]]></description>
			<content:encoded><![CDATA[<p>So many people that are concerned with improving their health over look the health of their liver. The liver is called LIVE -R for a reason. The reason is the liver is involved with digestion and assimilation. It processes nutrients to give life to your body, to repair diseased and damaged tissue. It removes toxins and eliminates pathogen from getting into the blood that flow to all of your body cells.</p>
<p>Over 27,000 people every year die from chronic liver diseases and Cirrhosis. People with diabetes have a high number of deaths from liver deterioration. Over 60,000 people die from liver failure. It is estimated that 9,000 die from Chronic Hepatitis C and over 12,000 from liver cancer. Over 25 million people create some form of liver and gallbladder disease every year.</p>
<p>Liver disease is the Seventh killer of American people.</p>
<p>Don&#8217;t dismiss the health of your liver as you layout your plans to improve your health. Most people have some from of liver weakness and don&#8217;t even know it until it too late. Why not learn what you can do to treat your liver right so it can give you good LIFE.</p>
<p>Here is a list of symptoms that you will have when your liver is not working like it should.</p>
<p>*  Frequent headache not related to stress, eyestrain, or shoulder muscle tension</p>
<p>*  Frequent menstrual problems</p>
<p>*  Blurry vision or red eyes</p>
<p>*  Constant bitter taste in mouth</p>
<p>*  Excessive anger, depression or moodiness</p>
<p>*  Tenderness in the liver area &#8211; just under your right rib cage</p>
<p>*  Acne, psoriasis, eczema, rashes, and other skin problems</p>
<p>*  Weakness in your muscles and joint areas</p>
<p>Any one of these symptoms can be an indication that you have liver weakness. If you have two &#8211; three of them for sure you have some liver weakness.</p>
<p>So what can you do if you feel that you have some liver weakness?</p>
<p>The first area to work on is to examine the types of fats and oils you eat and make the changes that will give you better liver health.</p>
<p>Saturated fats, such as found in butter, meat, lard, and other oils are highly susceptible to oxygen damage through the process called oxidation. When these fats are oxidized they become rancid and form free radicals.</p>
<p>But Saturated fats are not the only fats that can be oxidized. Even unsaturated fats, the good oils, can be oxidized. Still it is better to eat most of our fats unsaturated since saturated fats are associated with heart conditions.</p>
<p>All fats can become oxidized outside the body by using them to fry your food or inside your body though the natural oxidation processes.</p>
<p>Liver cells are highly susceptible to free radicals. These free radicals are destructive to liver cell walls and weaken the health of the liver over time.</p>
<p>Also, Scientists have found that 17% of the oxygen you breathe and have available in your body becomes a free radical. These free radicals, again, attack and destroy liver cells.</p>
<p>To counter eating free radicals and the free radicals that are created in your body, you need to take anti-oxidant supplements and eat fruits and vegetables. The yellow and red colored fruits and vegetables are the highest in anti-oxidants. Of course it is best to also limit eating fried food and not use oils that have been sitting around to long.</p>
]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=104</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Make an menu bar use photoshop</title>
		<link>http://wind-flowers.net/?p=97</link>
		<comments>http://wind-flowers.net/?p=97#comments</comments>
		<pubDate>Mon, 29 Jun 2009 12:40:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[Photoshop tutorial]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=97</guid>
		<description><![CDATA[A Photoshop tutorial to create a menu bar ]]></description>
			<content:encoded><![CDATA[<p>Step 1.<br />
Start off by making a new Photoshop document. Choose the rounded rectangle tool, set the radius to 12 pixels, and create a wide rounded recntalge, as shown below, It doesn&#8217;t matter what colour it is because we&#8217;ll be creating a gradient with the shape next.<br />
<img class="alignnone" src="http://www.flash-game-design.com/images/menu-bar-2/2.gif" alt="" width="493" height="190" /><br />
Step 2.<br />
Choose dark maroon (6f1300) for the foreground color and a lighter shade for the background color (c82e00). Make a selection (select &gt; load selection) using the rectangle<br />
a)<br />
<img class="alignnone" src="http://www.flash-game-design.com/images/menu-bar-2/3.gif" alt="" width="56" height="150" /><br />
b)<br />
<img class="alignnone" src="http://www.flash-game-design.com/images/menu-bar-2/4.gif" alt="" width="492" height="189" /></p>
<p>Step 3.<br />
Choose the linear gradient, cirlcled in green (a).<br />
<img class="alignnone" src="http://www.flash-game-design.com/images/menu-bar-2/5.gif" alt="" width="214" height="48" /><br />
Open the gradient editor, by clicking on the sample gradient, and choose &#8220;foreground to background&#8221; (b)<br />
<img class="alignnone" src="http://www.flash-game-design.com/images/menu-bar-2/7.jpg" alt="" width="335" height="180" /><br />
Step 4.<br />
To create the gradient, drag form the top to the bottom of the selection, which should produce something like in the iamge below.<br />
<img class="alignnone" src="http://www.flash-game-design.com/images/menu-bar-2/8.jpg" alt="" width="492" height="188" /></p>
<table border="0" cellspacing="0" cellpadding="0" width="544">
<tbody>
<tr>
<td><span><strong>Step 5. </strong></span></td>
</tr>
<tr>
<td><span><span>This is the 2nd part of this <span style="border-bottom: 1px solid #cc6600; font-style: normal; font-family: Verdana,Arial,Helvetica,sans-serif; color: #cc6600; font-size: 12px; font-weight: 400; text-decoration: underline;">Photoshop tutorial</span>, to create a menu bar. Next create a thinner rounded rectangle, and make a selection using it (select &gt; load selection) </span></span></td>
</tr>
<tr>
<td><img src="http://www.flash-game-design.com/images/spacer.gif" alt="" width="588" height="20" /></td>
</tr>
<tr>
<td width="544">
<div><img src="http://www.flash-game-design.com/images/menu-bar-2/9.jpg" alt="" width="492" height="188" /></div>
</td>
</tr>
<tr>
<td></td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="544">
<tbody>
<tr>
<td></td>
</tr>
<tr>
<td><span><strong>Step 6. </strong></span></td>
</tr>
<tr>
<td><span>Set the foreground color to a peach shade (ff7a4f) and the background color to f33a01. Create a linear gradient on the thinner rectangle (b) </span></td>
</tr>
<tr>
<td><img src="http://www.flash-game-design.com/images/spacer.gif" alt="" width="588" height="20" /></td>
</tr>
<tr>
<td width="544">
<div>
<table border="0" cellspacing="0" cellpadding="0" width="448">
<tbody>
<tr>
<td><span><strong>a) </strong></span></td>
<td></td>
<td><span><strong>b)</strong></span></td>
</tr>
<tr>
<td width="199"><img src="http://www.flash-game-design.com/images/menu-bar-2/10.jpg" alt="" width="56" height="129" /></td>
<td><img src="http://www.flash-game-design.com/images/spacer.gif" alt="" width="33" height="20" /></td>
<td width="187"><img src="http://www.flash-game-design.com/images/menu-bar-2/11.jpg" alt="" width="492" height="188" /></td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
<tr>
<td><img src="http://www.flash-game-design.com/images/spacer.gif" alt="" width="544" height="20" /></td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="544">
<tbody>
<tr>
<td></td>
</tr>
<tr>
<td><span><strong>Step 7. </strong></span></td>
</tr>
<tr>
<td><span>For the text i&#8217;ve used the settings shown below </span></td>
</tr>
<tr>
<td><img src="http://www.flash-game-design.com/images/spacer.gif" alt="" width="588" height="20" /></td>
</tr>
<tr>
<td width="544">
<div><img src="http://www.flash-game-design.com/images/menu-bar-2/13.gif" alt="" width="210" height="223" /></div>
</td>
</tr>
<tr>
<td><img src="http://www.flash-game-design.com/images/spacer.gif" alt="" width="544" height="20" /></td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="580">
<tbody>
<tr>
<td><span><span><strong>Step 8. </strong></span></span></td>
</tr>
<tr>
<td>And you should have something as shown below!</td>
</tr>
<tr>
<td><img src="http://www.flash-game-design.com/images/spacer.gif" alt="" width="580" height="20" /></td>
</tr>
<tr>
<td width="587">
<div><img src="http://www.flash-game-design.com/images/menu-bar-2/14.jpg" alt="" width="492" height="190" /></div>
</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=97</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exploring ASP.NET Pages</title>
		<link>http://wind-flowers.net/?p=100</link>
		<comments>http://wind-flowers.net/?p=100#comments</comments>
		<pubDate>Mon, 29 Jun 2009 12:39:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asp.net]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=100</guid>
		<description><![CDATA[Explore ASP.NET pages and dig into some of their core functions, such as page events and properties, and directives.
Alive!!! It&#8217;s alive!!&#8230;The page is ALIVE!!!!!
I don&#8217;t want to sound like a nag or like I&#8217;m harping on the same issue over and over, but ASP.NET is really about events and objects. The ASP.NET page is no [...]]]></description>
			<content:encoded><![CDATA[<div id="articleLongDescription">Explore ASP.NET pages and dig into some of their core functions, such as page events and properties, and directives.</div>
<p>Alive!!! It&#8217;s alive!!&#8230;The page is ALIVE!!!!!</p>
<p>I don&#8217;t want to sound like a nag or like I&#8217;m harping on the same issue over and over, but ASP.NET is really about events and objects. The ASP.NET page is no exception. It is an object in the eyes of ASP.NET just like anything else. It has properties and methods and can be interacted with, similar to the other objects you&#8217;ve seen so far, and the plethora of things to come as you move through the remainder of this book.</p>
<p>Because events are a big part of ASP.NET and also a huge part of the power of the ASP.NET page object, it&#8217;s important to look closely at these event and the order in which they occur so that you can utilize them to their fullest potential.</p>
<h2>Understanding Page Events</h2>
<p>Maybe this isn&#8217;t the best way to explain this. Maybe my mother wouldn&#8217;t be so proud of my openness. Maybe these examples will be too graphic for you, but it&#8217;s the best way I can describe it, so please bear with me.</p>
<p>Every morning of every workday I start my day the same way. I get up, drag my carcass into the living room, and turn on the television. I stare at overpaid morning show hosts like a dribbling fool, with about as much cerebral activity as an earthworm trying to figure out what to eat. After the first flicker of lights goes off in my cranium, I drag my carcass to the shower to defrost my brain.</p>
<p>In the shower I have a set routine so as not to miss any vital, proper hygienic functions and to ensure that the other people in my office and our clients don&#8217;t give me those strange looks anymore when I enter the room. I think if you took the time to analyze this portion of your life, you&#8217;d see that without conscious thought, you pick up the bar of soap and proceed to cleanse without ever putting a thought into what you are doing. You may be singing or thinking about the day you are about to face and before you know it&#8230;Boom! You&#8217;re finished.</p>
<p>It&#8217;s a routine that I go through every morning almost without thought. And that&#8217;s a good thing; if I needed to be able to think before I could shower, I wouldn&#8217;t arrive at work until 10:00 a.m., or until I&#8217;ve had several cups of joe. This practice is part of a subconscious, programmed routine that has been burned into my mind from years of habit.</p>
<p>When I then go to work, I respond to the world around me. I make decisions based on what stimulus comes my way. Maybe someone comes to the office for a meeting. They ask questions and I answer them. The phone rings and I pick it up. I get e-mail and I occasionally read it and less often answer it. I am affected by the world around me and what kind of input it gives me. I then go home and enjoy the solace (this isn&#8217;t a joke and I&#8217;m not kidding) of my family.</p>
<p>At the end of the day I get into my pajamas and go to sleep.</p>
<p>ASP.NET pages are a lot like this. They go through a routine every time they are called. These routines are the ASP.NET pages&#8217; <strong><em>events</em></strong>. They are like the steps I go through every morning to prepare for my day, or like showering by the same routine everyday.</p>
<p>ASP.NET pages have a routine of events that happen, and they happen in the same way, in the same order, every time. You&#8217;ve seen one of these events, <tt>Page_Load</tt>, in some of the previous examples. Let&#8217;s look into these events and the others that a page goes through when it is executed.</p>
<p>The three main events, although there are others, are as follows:</p>
<ul>
<li><tt>Page_Init</tt></li>
<li><tt>Page_Load</tt></li>
<li><tt>Page_Unload</tt></li>
</ul>
<h3>Page_Init</h3>
<p>The <tt>Page_Init</tt> event is the first to occur when an ASP.NET page is executed. This is where you should perform any initialization steps that you need to set up or create instances of server controls. Server controls are discussed in later chapters, so just keep this event in mind.</p>
<p>You don&#8217;t want to try to access controls in this event because there is no guarantee that they have been created yet. It is during this event that they are created, and you can control whether your attempt to use these objects will be thwarted by the server processing your request before the object has been created.</p>
<p>The following is an example of the structure of how to use the <tt>Page_Init</tt> event</p>
<h4>Visual Basic .NET</h4>
<pre><strong>Sub Page_Init()
   'Place your Page_Init code here
End Sub</strong></pre>
<h4>C#</h4>
<pre><strong>void Page_Init(){
  //Place your Page_Init code here
}</strong></pre>
<p>Note that the <tt>Page_Init</tt> event fires only the first time the page is loaded. When you use a web form and post back to this page again, the <tt>Page_Init</tt> event doesn&#8217;t fire. But the <tt>Page_Load</tt> event fires each time the page loads.</p>
<h3>Page_Load</h3>
<p>This is the page event where you will be doing most of your work. This event occurs only when all the objects on the page have been created and are available for use. You will see—within this book and in other examples available in the .NET Framework SDK and ASP.NET-related web sites—that the lion&#8217;s share of work on ASP.NET pages is done during this event. We&#8217;ve been using this event since the beginning of the book and will continue to use it in just about every example.</p>
<p>Although you&#8217;ve seen it a zillion times already in the book, for consistency&#8217;s sake I&#8217;ll show you the form here. It doesn&#8217;t look a whole lot different from the <tt>Page_Init</tt> example, and for all intents and purposes the only thing that&#8217;s different is that the word <tt>Init</tt> is substituted with the word <tt>Load</tt>.</p>
<h4>Visual Basic .NET</h4>
<pre><strong>Sub Page_Load()
   'Place your Page_Load code here
End Sub</strong></pre>
<h4>C#</h4>
<pre><strong>void Page_Load(){
  //Place your Page_Load code here
}</strong></pre>
<h3>Page_Unload</h3>
<p><tt>Page_Unload</tt> is the counterpart to <tt>Page_Init</tt>. Just as <tt>Page_Init</tt> is an event that happens <strong><em>before</em></strong> anything else happens, <tt>Page_Unload</tt> happens <strong><em>after</em></strong> everything else happens. It is available for you to perform any operation you need to after you are completely finished with the page.</p>
<p>For instance, imagine that you temporarily needed to create a file on the server during the page&#8217;s processing. You wouldn&#8217;t want to leave it there for eternity, especially if the file was unique to each visitor of the web site. You could have loads and loads of files building on your server without any way to get rid of them. But if you were a good boy or girl, you could destroy the file during the page&#8217;s <tt>Page_Unload</tt> event and make the server administrator a happy camper.</p>
<p>Just to be fair and impartial, I don&#8217;t want to leave out showing you the structure of the <tt>Page_Unload</tt> event. Look familiar?</p>
<h4>Visual Basic .NET</h4>
<pre><strong>Sub Page_Unload()
   'Place your Page_Unload code here
End Sub</strong></pre>
<h4>C#</h4>
<pre><strong>void Page_Unload(){
  //Place your Page_Unload code here
}</strong></pre>
<p>Getting back to my morning routine, it looks like this:</p>
<ol>
<li><tt>Peter_Init</tt>. Roll carcass from bed to in front of the television.</li>
<li><tt>Peter_Load.</tt> Take shower brainlessly, get dressed (make sure socks match and colors coordinate—check with wife for confirmation). Get into car and drive to the office.</li>
<li>Handle the day in all its glory and all the blessings that come with it.</li>
<li><tt>Peter_Unload</tt>. Get into jammies and go to sleep.</li>
</ol>
<p>It&#8217;s that routine, and I behave just like the <tt>Page</tt> object does. When I run through these events, I am investigating and affecting all kinds of things. I&#8217;m finding out the condition of the world that morning by listening to news, changing the state of my brain to somewhat functional, changing the direction that my hair points from an erratic bird&#8217;s nest to some semblance of a hairdo, and more.</p>
<p>I&#8217;m doing this through checking and setting properties and executing methods, so to speak. During <tt>Peter_Init</tt>, I execute the <tt>RollCarcass()</tt> method to change the <tt>Peter.Sleeping</tt> property from true to false.</p>
<p>During <tt>Peter_Load</tt> I&#8217;m checking the value of the <tt>eye.bags</tt> property and seeing what the value of the <tt>hair.color</tt> property is, which is generally grayer than the day before. I&#8217;m assuring that the <tt>body.odor</tt> property is set to zero by executing the <tt>Shower()</tt> method.</p>
<p>I then have the ability to respond to events and stimulus from the world around me throughout the day. Then during the <tt>Peter_Unload</tt> event, I execute the <tt>CollapseFromExaustion()</tt> method to set the <tt>Peter.Sleeping</tt> property to true.</p>
<p>Can you see how these different events at different times have a direct affect on my condition? ASP.NET pages can be affected just like this with their different events. Now are you beginning to see more clearly how events and objects interact in ASP.NET and how this is a totally different paradigm from any traditional way of web programming in HTML or Active Server Pages.</p>
<p>As I said in the beginning of the chapter, ASP.NET is all about events and objects, and the ASP.NET page is no exception. You know that objects are made up of their properties and methods, and now you know that objects can also have events, as well.</p>
<p>The <tt>page</tt> object has the three mentioned events, as well as others that execute without intervention from the designer, but other events also affect ASP.NET pages.</p>
<h3>User-Initiated Events</h3>
<p>Just as I am faced with input from the world around me after the <tt>Peter_Onload</tt> event has finished, a page can also deal with events initiated by the web page&#8217;s visitor.</p>
<p>Let&#8217;s look at an example of some events, both self executing and user initiated. Below is a page that shows the date and asks you to pick what mood you&#8217;re in. In the code samples, you&#8217;ll also be shown another neat server control called a <tt>RadioButtonList</tt> and a cool feature of the .NET Framework called Databinding. You will also see a property of the <tt>Page</tt> object called <tt>IsPostBack</tt>. We will discuss this later in this chapter, but again, don&#8217;t get hung up on these things— just concentrate on the events in the page.</p>
<div id="content">
<div id="columnOne">
<p><a href="http://www.peachpit.com/index.aspx">Home</a> &gt; <a href="http://www.peachpit.com/articles/index.aspx">Articles</a> &gt; <a href="http://www.peachpit.com/articles/index.aspx?st=60608">Web Design &amp; Development</a> &gt;</p>
<div id="articleContent">
<div id="articleHeader">
<h1>Exploring ASP.NET Pages</h1>
<ul>
<li>By <a href="http://www.peachpit.com/authors/bio.aspx?a=59e83c58-e86b-4de3-b3d4-b7edf152b2e3">Peter Ladka</a></li>
<li>Dec 6, 2002</li>
<li>Sample Chapter is provided courtesy of <a href="http://www.newriders.com/">New Riders</a></li>
</ul>
</div>
<div>
<div id="articleTOC">
<p><a title="Toggle Open Article Table of Contents" href="javascript:void(0);"><img id="toggle" src="http://www.peachpit.com/display/PeachpitPress/images/icons/toc_16.png" alt="Toggle Open Article Table of Contents" /></a><a title="Toggle Open Article Table of Contents" href="javascript:void(0);">Article Contents</a></p>
<div id="articleTOCList" style="DISPLAY: none">
<p><a title="Close Table of Contents" href="javascript:hideTOC();"><img id="toggle" src="http://www.peachpit.com/display/PeachpitPress/images/icons/toc_16.png" alt="Close Table of Contents" /></a><a title="Close Table of Contents" href="javascript:hideTOC();">Article Contents</a></p>
<ol>
<li>Understanding Page Events</li>
<li><a href="http://www.peachpit.com/articles/article.aspx?p=30182&amp;seqNum=2">Understanding Page Properties</a></li>
<li><a href="http://www.peachpit.com/articles/article.aspx?p=30182&amp;seqNum=3">Understanding Directives</a></li>
<li><a href="http://www.peachpit.com/articles/article.aspx?p=30182&amp;seqNum=4">Code Separation and Using Code-Behind</a></li>
<li><a href="http://www.peachpit.com/articles/article.aspx?p=30182&amp;seqNum=5">Summary</a></li>
</ol>
<p><a title="Close Table of Contents" href="javascript:hideTOC();"><img src="http://www.peachpit.com/display/PeachpitPress/images/icons/close_window_16.png" alt="Close Table of Contents" /></a></div>
<div><span><strong>Page 1</strong> of 5</span><a href="http://www.peachpit.com/articles/article.aspx?p=30182&amp;seqNum=2"> Next &gt;</a></div>
<div>
<ul>
<li><a title="Print" href="http://www.peachpit.com/articles/printerfriendly.aspx?p=30182"><img src="http://www.peachpit.com/display/PeachpitPress/images/icons/print_16.png" alt="Print" /></a><a title="Print" href="http://www.peachpit.com/articles/printerfriendly.aspx?p=30182"><span>Print</span></a></li>
<li><script type="text/javascript"></script><a onclick="return addthis_sendto()" onmouseover="return addthis_open(this, '', '[URL]', '[TITLE]')" onmouseout="addthis_close()" href="http://www.addthis.com/bookmark.php"><img src="http://www.peachpit.com/display/PeachpitPress/images/icons/share_16.png" border="0" alt="Share This" width="16" height="16" /></a><a onclick="return addthis_sendto()" onmouseover="return addthis_open(this, '', '[URL]', '[TITLE]')" onmouseout="addthis_close()" href="http://www.addthis.com/bookmark.php"><span>Share This</span></a><script src="http://s7.addthis.com/js/152/addthis_widget.js" type="text/javascript"></script></li>
<li><a title="Discuss" href="http://www.peachpit.com/articles/article.aspx?p=30182#addComment"><img src="http://www.peachpit.com/display/PeachpitPress/images/icons/discuss_16.png" alt="Discuss" /></a><a title="Discuss" href="http://www.peachpit.com/articles/article.aspx?p=30182#addComment"><span>Discuss</span></a></li>
</ul>
</div>
</div>
<div id="authorInformation">
<div id="informationHeader"><a title="Close" href="javascript:showme('authorInformation','closed');"><img src="http://www.peachpit.com/display/PeachpitPress/images/icons/close_window_16.png" alt="Close Window" /></a></div>
<h3>Peter Ladka</h3>
<p><a href="http://www.peachpit.com/authors/bio.aspx?a=59e83c58-e86b-4de3-b3d4-b7edf152b2e3">Learn more…</a></p>
<div id="authorProducts">
<ul>
<li id="first"><a onclick="tabWidget(1,'authorProducts'); return false;" href="http://www.peachpit.com/articles/article.aspx?p=30182#">Articles</a></li>
<li><a onclick="tabWidget(2,'authorProducts'); return false;" href="http://www.peachpit.com/articles/article.aspx?p=30182#">Store</a></li>
<li><a onclick="tabWidget(3,'authorProducts'); return false;" href="http://www.peachpit.com/articles/article.aspx?p=30182#">Blogs</a></li>
</ul>
<div>
<dl>
<dt><a href="http://www.peachpit.com/articles/article.aspx?p=30182">Exploring ASP.NET Pages</a></dt>
<dd>Dec 6, 2002</dd>
</dl>
</div>
<div>
<dl>
<dt><a href="http://www.peachpit.com/title/073571262X"><img src="http://www.peachpit.com/ShowCover.aspx?isbn=073571262X&amp;type=e" alt="ASP.NET for Web Designers" /></a><a href="http://www.peachpit.com/store/product.aspx?p=133782">ASP.NET for Web Designers</a></dt>
<dd>Aug 23, 2002</dd>
</dl>
</div>
<div>
<p>Sorry, this author hasn&#8217;t posted any blogs.</p></div>
</div>
<div id="articleText">
<div><a href="http://www.peachpit.com/title/073571262X"><img src="http://www.peachpit.com/ShowCover.aspx?isbn=073571262X&amp;type=e" alt="ASP.NET for Web Designers" /></a><span>This chapter is from the book</span><br />
<a href="http://www.peachpit.com/title/073571262X">ASP.NET for Web Designers</a></div>
<div id="articleLongDescription">Explore ASP.NET pages and dig into some of their core functions, such as page events and properties, and directives.</div>
<p>Alive!!! It&#8217;s alive!!&#8230;The page is ALIVE!!!!!</p>
<p>I don&#8217;t want to sound like a nag or like I&#8217;m harping on the same issue over and over, but ASP.NET is really about events and objects. The ASP.NET page is no exception. It is an object in the eyes of ASP.NET just like anything else. It has properties and methods and can be interacted with, similar to the other objects you&#8217;ve seen so far, and the plethora of things to come as you move through the remainder of this book.</p>
<p>Because events are a big part of ASP.NET and also a huge part of the power of the ASP.NET page object, it&#8217;s important to look closely at these event and the order in which they occur so that you can utilize them to their fullest potential.</p>
<h2>Understanding Page Events</h2>
<p>Maybe this isn&#8217;t the best way to explain this. Maybe my mother wouldn&#8217;t be so proud of my openness. Maybe these examples will be too graphic for you, but it&#8217;s the best way I can describe it, so please bear with me.</p>
<p>Every morning of every workday I start my day the same way. I get up, drag my carcass into the living room, and turn on the television. I stare at overpaid morning show hosts like a dribbling fool, with about as much cerebral activity as an earthworm trying to figure out what to eat. After the first flicker of lights goes off in my cranium, I drag my carcass to the shower to defrost my brain.</p>
<p>In the shower I have a set routine so as not to miss any vital, proper hygienic functions and to ensure that the other people in my office and our clients don&#8217;t give me those strange looks anymore when I enter the room. I think if you took the time to analyze this portion of your life, you&#8217;d see that without conscious thought, you pick up the bar of soap and proceed to cleanse without ever putting a thought into what you are doing. You may be singing or thinking about the day you are about to face and before you know it&#8230;Boom! You&#8217;re finished.</p>
<p>It&#8217;s a routine that I go through every morning almost without thought. And that&#8217;s a good thing; if I needed to be able to think before I could shower, I wouldn&#8217;t arrive at work until 10:00 a.m., or until I&#8217;ve had several cups of joe. This practice is part of a subconscious, programmed routine that has been burned into my mind from years of habit.</p>
<p>When I then go to work, I respond to the world around me. I make decisions based on what stimulus comes my way. Maybe someone comes to the office for a meeting. They ask questions and I answer them. The phone rings and I pick it up. I get e-mail and I occasionally read it and less often answer it. I am affected by the world around me and what kind of input it gives me. I then go home and enjoy the solace (this isn&#8217;t a joke and I&#8217;m not kidding) of my family.</p>
<p>At the end of the day I get into my pajamas and go to sleep.</p>
<p>ASP.NET pages are a lot like this. They go through a routine every time they are called. These routines are the ASP.NET pages&#8217; <strong><em>events</em></strong>. They are like the steps I go through every morning to prepare for my day, or like showering by the same routine everyday.</p>
<p>ASP.NET pages have a routine of events that happen, and they happen in the same way, in the same order, every time. You&#8217;ve seen one of these events, <tt>Page_Load</tt>, in some of the previous examples. Let&#8217;s look into these events and the others that a page goes through when it is executed.</p>
<p>The three main events, although there are others, are as follows:</p>
<ul>
<li><tt>Page_Init</tt></li>
<li><tt>Page_Load</tt></li>
<li><tt>Page_Unload</tt></li>
</ul>
<h3>Page_Init</h3>
<p>The <tt>Page_Init</tt> event is the first to occur when an ASP.NET page is executed. This is where you should perform any initialization steps that you need to set up or create instances of server controls. Server controls are discussed in later chapters, so just keep this event in mind.</p>
<p>You don&#8217;t want to try to access controls in this event because there is no guarantee that they have been created yet. It is during this event that they are created, and you can control whether your attempt to use these objects will be thwarted by the server processing your request before the object has been created.</p>
<p>The following is an example of the structure of how to use the <tt>Page_Init</tt> event</p>
<h4>Visual Basic .NET</h4>
<pre><strong>Sub Page_Init()
   'Place your Page_Init code here
End Sub</strong></pre>
<h4>C#</h4>
<pre><strong>void Page_Init(){
  //Place your Page_Init code here
}</strong></pre>
<p>Note that the <tt>Page_Init</tt> event fires only the first time the page is loaded. When you use a web form and post back to this page again, the <tt>Page_Init</tt> event doesn&#8217;t fire. But the <tt>Page_Load</tt> event fires each time the page loads.</p>
<h3>Page_Load</h3>
<p>This is the page event where you will be doing most of your work. This event occurs only when all the objects on the page have been created and are available for use. You will see—within this book and in other examples available in the .NET Framework SDK and ASP.NET-related web sites—that the lion&#8217;s share of work on ASP.NET pages is done during this event. We&#8217;ve been using this event since the beginning of the book and will continue to use it in just about every example.</p>
<p>Although you&#8217;ve seen it a zillion times already in the book, for consistency&#8217;s sake I&#8217;ll show you the form here. It doesn&#8217;t look a whole lot different from the <tt>Page_Init</tt> example, and for all intents and purposes the only thing that&#8217;s different is that the word <tt>Init</tt> is substituted with the word <tt>Load</tt>.</p>
<h4>Visual Basic .NET</h4>
<pre><strong>Sub Page_Load()
   'Place your Page_Load code here
End Sub</strong></pre>
<h4>C#</h4>
<pre><strong>void Page_Load(){
  //Place your Page_Load code here
}</strong></pre>
<h3>Page_Unload</h3>
<p><tt>Page_Unload</tt> is the counterpart to <tt>Page_Init</tt>. Just as <tt>Page_Init</tt> is an event that happens <strong><em>before</em></strong> anything else happens, <tt>Page_Unload</tt> happens <strong><em>after</em></strong> everything else happens. It is available for you to perform any operation you need to after you are completely finished with the page.</p>
<p>For instance, imagine that you temporarily needed to create a file on the server during the page&#8217;s processing. You wouldn&#8217;t want to leave it there for eternity, especially if the file was unique to each visitor of the web site. You could have loads and loads of files building on your server without any way to get rid of them. But if you were a good boy or girl, you could destroy the file during the page&#8217;s <tt>Page_Unload</tt> event and make the server administrator a happy camper.</p>
<p>Just to be fair and impartial, I don&#8217;t want to leave out showing you the structure of the <tt>Page_Unload</tt> event. Look familiar?</p>
<h4>Visual Basic .NET</h4>
<pre><strong>Sub Page_Unload()
   'Place your Page_Unload code here
End Sub</strong></pre>
<h4>C#</h4>
<pre><strong>void Page_Unload(){
  //Place your Page_Unload code here
}</strong></pre>
<p>Getting back to my morning routine, it looks like this:</p>
<ol>
<li><tt>Peter_Init</tt>. Roll carcass from bed to in front of the television.</li>
<li><tt>Peter_Load.</tt> Take shower brainlessly, get dressed (make sure socks match and colors coordinate—check with wife for confirmation). Get into car and drive to the office.</li>
<li>Handle the day in all its glory and all the blessings that come with it.</li>
<li><tt>Peter_Unload</tt>. Get into jammies and go to sleep.</li>
</ol>
<p>It&#8217;s that routine, and I behave just like the <tt>Page</tt> object does. When I run through these events, I am investigating and affecting all kinds of things. I&#8217;m finding out the condition of the world that morning by listening to news, changing the state of my brain to somewhat functional, changing the direction that my hair points from an erratic bird&#8217;s nest to some semblance of a hairdo, and more.</p>
<p>I&#8217;m doing this through checking and setting properties and executing methods, so to speak. During <tt>Peter_Init</tt>, I execute the <tt>RollCarcass()</tt> method to change the <tt>Peter.Sleeping</tt> property from true to false.</p>
<p>During <tt>Peter_Load</tt> I&#8217;m checking the value of the <tt>eye.bags</tt> property and seeing what the value of the <tt>hair.color</tt> property is, which is generally grayer than the day before. I&#8217;m assuring that the <tt>body.odor</tt> property is set to zero by executing the <tt>Shower()</tt> method.</p>
<p>I then have the ability to respond to events and stimulus from the world around me throughout the day. Then during the <tt>Peter_Unload</tt> event, I execute the <tt>CollapseFromExaustion()</tt> method to set the <tt>Peter.Sleeping</tt> property to true.</p>
<p>Can you see how these different events at different times have a direct affect on my condition? ASP.NET pages can be affected just like this with their different events. Now are you beginning to see more clearly how events and objects interact in ASP.NET and how this is a totally different paradigm from any traditional way of web programming in HTML or Active Server Pages.</p>
<p>As I said in the beginning of the chapter, ASP.NET is all about events and objects, and the ASP.NET page is no exception. You know that objects are made up of their properties and methods, and now you know that objects can also have events, as well.</p>
<p>The <tt>page</tt> object has the three mentioned events, as well as others that execute without intervention from the designer, but other events also affect ASP.NET pages.</p>
<h3>User-Initiated Events</h3>
<p>Just as I am faced with input from the world around me after the <tt>Peter_Onload</tt> event has finished, a page can also deal with events initiated by the web page&#8217;s visitor.</p>
<p>Let&#8217;s look at an example of some events, both self executing and user initiated. Below is a page that shows the date and asks you to pick what mood you&#8217;re in. In the code samples, you&#8217;ll also be shown another neat server control called a <tt>RadioButtonList</tt> and a cool feature of the .NET Framework called Databinding. You will also see a property of the <tt>Page</tt> object called <tt>IsPostBack</tt>. We will discuss this later in this chapter, but again, don&#8217;t get hung up on these things— just concentrate on the events in the page.</p>
<h4>Visual C#</h4>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p100code33'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p10033"><td class="code" id="p100code33"><pre class="csharp" style="font-family:monospace;"><span style="color: #008000;">&lt;!--</span>page language<span style="color: #008000;">=</span><span style="color: #666666;">&quot;c#&quot;</span> runat<span style="color: #008000;">=</span><span style="color: #666666;">&quot;server--&gt;
&lt;script type=&quot;</span>text<span style="color: #008000;">/</span>javascript<span style="color: #666666;">&quot;&gt;&lt;!--mce:2--&gt;&lt;/script&gt;
&lt;form enctype=&quot;</span>application<span style="color: #008000;">/</span>x<span style="color: #008000;">-</span>www<span style="color: #008000;">-</span>form<span style="color: #008000;">-</span>urlencoded<span style="color: #666666;">&quot; method=&quot;</span>get<span style="color: #666666;">&quot;&gt;
&lt;/form&gt;</span></pre></td></tr></table></div>

</div>
</div>
</div>
</div>
</div>
</div>
<input id="MoodButton" name="MoodButton" type="submit" value="What's Your Mood?" />
<p>Figure 4.1 The Page_Load event has built the page, but the onClick event hasn&#8217;t had any effect because the button hasn&#8217;t been pressed yet.</p>
<p>ASP.NET knows whether you pressed this button—not by a typical client-side onClick event, but by inspecting the form that is posted and seeing whether this button was pressed. The terminology is similar to client-side JavaScript, but the function and method is totally different.</p>
<p>Now it&#8217;s time to pick a mood and click the button. You can see in Figure 4.2 that the mood is now displayed because the onClick event that took place server-side executed the function called CheckMood, which sets the text of the label.</p>
<p>Figure 4.2 The onClick event is fired by clicking the button.</p>
<p>To reinforce the point that ASP.NET is smart about calling functions and that what is executed is determined by the onClick event of the button, I have put together a sample with two different buttons that call two different functions. Each button uses its own onClick event.<br />
Visual Basic .NET</p>
<p><!--page language="vb" EnableViewState="false" runat="server--><br />
<script type="text/javascript">// <![CDATA[
Sub CountDown(sender As Object, e As System.EventArgs)
    dim i as Integer
    for i = CDbl(Text1.Text) to 1  Step -1
      OurLabel.Text += "Countdown: " + i.ToString() + "
"
    next
End Sub</p>
<p>Sub StringLength(sender As Object, e As System.EventArgs)
  OurLabel.Text = "The length of this string is: " + Text1.Text.Length.toString
End Sub
// ]]&gt;</script></p>
<form enctype="application/x-www-form-urlencoded" method="get">Either enter a word to find its length or a number to count down from</p>
</form>
<p>C#</p>
<p><!--page language="cs" EnableViewState="false" runat="server--><br />
<script type="text/javascript">// <![CDATA[
void CountDown(object Source, System.EventArgs s){
  int i;
  for (i = Convert.ToInt16(Text1.Text);i >= 1;—i){
    OurLabel.Text += "Countdown: " + i.ToString() + "
";
  }
}</p>
<p>void StringLength(object Source, System.EventArgs s){
  OurLabel.Text = "The length of this string is: " +
  Text1.Text.Length.ToString();
}
// ]]&gt;</script></p>
<form enctype="application/x-www-form-urlencoded" method="get">Either enter a word to find its length or a number to count down from</p>
</form>
<p>If you look at Figure 4.3 you can see that after the Count Down button was clicked, with the value of 10 in the text box, the CountDown function was executed and the code generated and displayed properly.</p>
<p>Figure 4.3 Clicking the Count Down button causes the CountDown function to execute.</p>
<p>Now if you put a string such as &#8220;What is the length?&#8221; in the text box and click the Get Length button, you are executing the StringLength function.</p>
<p>NOTE</p>
<p>This example has a bit of hidden danger in that if someone enters a string in the text box and clicks the Count Down button, ASP.NET will cause an error. This is because it can&#8217;t convert a String type to an Integer in this circumstance. But you don&#8217;t need to worry about this in your real-world applications because ASP.NET provides some really, REALLY cool answers to validating input data (that we will be devoting an entire chapter to later). The validators would totally solve any issues like this—and more.</p>
<p>Figure 4.4 Clicking the Get Length button causes the StringLength function to execute.</p>
<p>As if all the objects and events covered earlier weren&#8217;t enough, the concept of user-initiated events opens up a totally new way of thinking again about how you can handle and manipulate data, depending on how a user interacts with your web application.</p>
<p>Other events are also available that can help you manipulate data and objects, and I would encourage you again to go to the class browser located at the following link and look at what events you can use on each object:</p>
<p>http://samples.gotdotnet.com/quickstart/aspplus/</p>
<p>Now that we&#8217;ve touched on the different events, both default and user-initiated, let&#8217;s move on to looking at some of the key properties of the Page object.<br />
Page 1 of 5 Next &gt;</p>
<p>* Share ThisShare This<br />
* Your Account</p>
<p>Discussions<br />
Make a New Comment</p>
<p>You must log in in order to post a comment.<br />
Related Resources</p>
<p>* Podcasts<br />
* Blogs<br />
* Articles<br />
* Store</p>
<p>Author Talk (Audio &amp; Video)Author Talk (Audio &amp; Video)</p>
<p>Recent Episodes</p>
<p>* Jeff Revell Interview<br />
Jeff Revell<br />
* Russ Unger and Carolyn Chandler Interview on UX Design<br />
Carolyn Chandler, Russ Unger</p>
<p>Subscribe<br />
Dreamweaver with RC Concepcion (Video)Dreamweaver with RC Concepcion (Video)</p>
<p>Recent Episodes</p>
<p>* Using Behaviors in Dreamweaver CS4<br />
Rafael Concepcion<br />
* Setting up a Contact Form<br />
Rafael Concepcion</p>
<p>Subscribe</p>
<p>See More Podcasts</p>
<p>Adobe Flash Catalyst: Under the Hood &#8211; Part 3 Design Integration Workflows<br />
By Victor Gavenda on June 26, 2009 No Comments</p>
<p>In Part 3 of this continuing series, guest authors James Polanco and Aaron Pedersen show how Flash Catalyst eases the designer&#8217;s task of creating user elements for a Flex project.</p>
<p>Adobe Flash Catalyst: Under the Hood &#8211; Part 2 The Platform<br />
By Victor Gavenda on June 12, 2009 No Comments</p>
<p>In Part 2 of this continuing series, James Polanco and Aaron Pedersen provide a 30,000-foot overview of the new Flash Platform.</p>
<p>Nancy Aldrich-RuenzelGone is the designer/developer divide<br />
By Nancy Aldrich-Ruenzel on June 18, 2009 1 Comment</p>
<p>In a recent conversation with the authors of A Project Guide to UX Design—Russ Unger and Carolyn Chandler—we chatted at some length about the various roles on a Web team, both best case and worst case. (Here’s the full interview.)</p>
<p>See All Related Blogs</p>
<p>Developing ASP.NET Applications with Macromedia&#8217;s Dreamweaver MX 2004<br />
By Matthew David</p>
<p>Some Google in Your Apps: An Introduction to the Google Web API Using .NET and Java<br />
By Tim Stevens</p>
<p>PHP and .NET<br />
By Andrew Stopford</p>
<p>See All Related Articles</p>
<p>Modular Web Design: Creating Reusable Components for User Experience Design and DocumentationModular Web Design: Creating Reusable Components for User Experience Design and Documentation<br />
By Nathan Curtis<br />
Price$40.49</p>
<p>Mastering Web Content: Behavior with Ajax, DVDMastering Web Content: Behavior with Ajax, DVD<br />
By Greg Rewis<br />
Price$35.99</p>
<p>When Search Meets Web UsabilityWhen Search Meets Web Usability<br />
By Shari Thurow, Nick Musica<br />
Price$26.99</p>
<p>See All Related Store Items<br />
Peachpit</p>
<p>* Topics<br />
o Adobe Photoshop<br />
o Apple<br />
o Design<br />
o Digital Photography<br />
o Digital Video<br />
o Gadgets<br />
o Productivity<br />
o Web Design &amp; Development<br />
* Store<br />
* Authors<br />
* Safari Books Online<br />
o How it Works<br />
o Browse the Library<br />
o Free Trial<br />
o Subscriber Login<br />
* Explore<br />
o About<br />
o Academic Resources<br />
o Affiliates<br />
o Articles<br />
o Peachpit Commons Blog<br />
o Podcasts<br />
o Press<br />
o Reference Guides<br />
o User Groups</p>
<p>Account Sign In<br />
View your cart<br />
Search</p>
]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=100</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>convert image to byte[] int asp.net,and convert byte[] to image.</title>
		<link>http://wind-flowers.net/?p=93</link>
		<comments>http://wind-flowers.net/?p=93#comments</comments>
		<pubDate>Mon, 15 Jun 2009 01:04:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asp.net]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=93</guid>
		<description><![CDATA[how to convert images to byte arrays and byte arrays back into images.]]></description>
			<content:encoded><![CDATA[<p>in this article,wo will learn how to convert images to byte arrays, how to convert byte[] back into images:</p>
<p>first:<br />
convert images to byte arrays</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p93code34'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p9334"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
</pre></td><td class="code" id="p93code34"><pre class="csharp" style="font-family:monospace;">        <span style="color: #008080; font-style: italic;">/// &lt;summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// convert image to byte[]</span>
        <span style="color: #008080; font-style: italic;">/// &lt;/summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;param name=&quot;filePath&quot;&gt;&lt;/param&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;returns&gt;&lt;/returns&gt;</span>
        <span style="color: #0600FF;">public</span> <span style="color: #FF0000;">byte</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> PhotoToBytes<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">string</span> filePath<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
            FileStream fs <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> FileStream<span style="color: #000000;">&#40;</span>filePath, FileMode.<span style="color: #0000FF;">Open</span>, FileAccess.<span style="color: #0000FF;">Read</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            BinaryReader br <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> BinaryReader<span style="color: #000000;">&#40;</span>fs<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #0600FF;">try</span> <span style="color: #000000;">&#123;</span>
                <span style="color: #FF0000;">byte</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> photo <span style="color: #008000;">=</span> br.<span style="color: #0000FF;">ReadBytes</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span><span style="color: #FF0000;">int</span><span style="color: #000000;">&#41;</span>fs.<span style="color: #0000FF;">Length</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
                br.<span style="color: #0000FF;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
                fs.<span style="color: #0000FF;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
                <span style="color: #0600FF;">return</span> photo<span style="color: #008000;">;</span>
            <span style="color: #000000;">&#125;</span>
            <span style="color: #0600FF;">catch</span> <span style="color: #000000;">&#123;</span>
                <span style="color: #0600FF;">return</span> null<span style="color: #008000;">;</span>
            <span style="color: #000000;">&#125;</span>
        <span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p>next: convert byte[] back into images</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p93code35'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p9335"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
</pre></td><td class="code" id="p93code35"><pre class="csharp" style="font-family:monospace;">        <span style="color: #008080; font-style: italic;">/// &lt;summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// byte[] back into Image</span>
        <span style="color: #008080; font-style: italic;">/// &lt;/summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;param name=&quot;str&quot;&gt;&lt;/param&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;returns&gt;&lt;/returns&gt;</span>
        <span style="color: #0600FF;">public</span> Image BytesToPhoto<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">byte</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> Bytes<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
&nbsp;
            MemoryStream stream <span style="color: #008000;">=</span> null<span style="color: #008000;">;</span>
&nbsp;
            Image img <span style="color: #008000;">=</span> null<span style="color: #008000;">;</span>
&nbsp;
            <span style="color: #0600FF;">try</span> <span style="color: #000000;">&#123;</span>
                stream <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> MemoryStream<span style="color: #000000;">&#40;</span>Bytes<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
                img <span style="color: #008000;">=</span> Image.<span style="color: #0000FF;">FromStream</span><span style="color: #000000;">&#40;</span>stream, <span style="color: #0600FF;">true</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
                <span style="color: #0600FF;">return</span> img<span style="color: #008000;">;</span>
&nbsp;
            <span style="color: #000000;">&#125;</span>
            <span style="color: #0600FF;">catch</span> <span style="color: #000000;">&#123;</span>
&nbsp;
                <span style="color: #0600FF;">return</span> null<span style="color: #008000;">;</span>
&nbsp;
            <span style="color: #000000;">&#125;</span>
            <span style="color: #0600FF;">finally</span> <span style="color: #000000;">&#123;</span>
                stream.<span style="color: #0000FF;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
                img.<span style="color: #0000FF;">Dispose</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
            <span style="color: #000000;">&#125;</span>
        <span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=93</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>easy ajax by use jquery</title>
		<link>http://wind-flowers.net/?p=90</link>
		<comments>http://wind-flowers.net/?p=90#comments</comments>
		<pubDate>Fri, 08 May 2009 08:50:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[JQUERY]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[AJAX]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=90</guid>
		<description><![CDATA[In this article,we will get date from use ajax with jquery.First we must include jQuery in the head of our page,here is the jquery website.
The code like this:

?View Code CSHARP1
&#60;script type=&#34;text/javascript&#34; src=&#34;js/jquery-1.3.2.min.js&#34; &#62;&#60;/script&#62;

once we done this,and we can begin to work using AJAX in Jquery.

?View Code CSHARP1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$.ajax&#40;&#123;
  type: &#34;get&#34;,//define the type of request for [...]]]></description>
			<content:encoded><![CDATA[<p>In this article,we will get date from use ajax with jquery.First we must include jQuery in the head of our page,here is the <a href="http://jquery.com">jquery</a> website.<br />
The code like this:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p90code39'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p9039"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p90code39"><pre class="csharp" style="font-family:monospace;"><span style="color: #008000;">&lt;</span>script type<span style="color: #008000;">=</span><span style="color: #666666;">&quot;text/javascript&quot;</span> src<span style="color: #008000;">=</span><span style="color: #666666;">&quot;js/jquery-1.3.2.min.js&quot;</span> <span style="color: #008000;">&gt;&lt;/</span>script<span style="color: #008000;">&gt;</span></pre></td></tr></table></div>

<p>once we done this,and we can begin to work using AJAX in Jquery.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p90code40'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p9040"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
</pre></td><td class="code" id="p90code40"><pre class="csharp" style="font-family:monospace;">$.<span style="color: #0000FF;">ajax</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#123;</span>
  type<span style="color: #008000;">:</span> <span style="color: #666666;">&quot;get&quot;</span>,<span style="color: #008080; font-style: italic;">//define the type of request for example: POST/GET.</span>
  dataType<span style="color: #008000;">:</span><span style="color: #666666;">&quot;html&quot;</span>,<span style="color: #008080; font-style: italic;">//format the data being received is in. (HTML, XML, JSON, script etc..)</span>
  url<span style="color: #008000;">:</span> <span style="color: #666666;">&quot;getInfo.aspx?id=&quot;</span><span style="color: #008000;">+</span>id, <span style="color: #008080; font-style: italic;">//the URL to make the request to</span>
  cache<span style="color: #008000;">:</span><span style="color: #0600FF;">false</span>,
  beforeSend<span style="color: #008000;">:</span> function<span style="color: #000000;">&#40;</span>XMLHttpRequest<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
	<span style="color: #008080; font-style: italic;">//</span>
  <span style="color: #000000;">&#125;</span>,
  success<span style="color: #008000;">:</span> function<span style="color: #000000;">&#40;</span>data,textStatus<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
	alert<span style="color: #000000;">&#40;</span>data<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
  <span style="color: #000000;">&#125;</span>,
  complete<span style="color: #008000;">:</span> function<span style="color: #000000;">&#40;</span>XMLHttpRequest, textStatus<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
	<span style="color: #008080; font-style: italic;">//</span>
  <span style="color: #000000;">&#125;</span>,
  error<span style="color: #008000;">:</span> function<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
	<span style="color: #008080; font-style: italic;">//</span>
  <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span></pre></td></tr></table></div>

<p>getInfo.aspx.cs</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p90code41'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p9041"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p90code41"><pre class="csharp" style="font-family:monospace;">Response.<span style="color: #0000FF;">Write</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;OK&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=90</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to bind datatable to a TreeView control?</title>
		<link>http://wind-flowers.net/?p=88</link>
		<comments>http://wind-flowers.net/?p=88#comments</comments>
		<pubDate>Fri, 08 May 2009 06:54:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asp.net]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=88</guid>
		<description><![CDATA[TreeView control is a powerful server-control for rendering TreeView UI.I will bind a datatable to a treeview contriol,here is the code:
aspx:

?View Code CSHARP1
2
&#60;asp:TreeView ID=&#34;TV_Department&#34; runat=&#34;server&#34;  OnSelectedNodeChanged=&#34;TV_Department_SelectedNodeChanged&#34;  ExpandDepth=&#34;6&#34;   width=&#34;240px&#34; BorderWidth=&#34;0px&#34; BorderColor=&#34;White&#34; BackColor=&#34;White&#34; LineImagesFolder=&#34;~/TreeLineImages&#34; NodeWrap=&#34;True&#34; ImageSet=&#34;Msdn&#34; NodeIndent=&#34;10&#34;&#62;
&#60;/asp:TreeView&#62;

cs:

?View Code CSHARP1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
protected void Page_Load&#40;object sender, EventArgs e&#41;
&#123;
&#160;
        if &#40;!IsPostBack&#41;
 [...]]]></description>
			<content:encoded><![CDATA[<p>TreeView control is a powerful server-control for rendering TreeView UI.I will bind a datatable to a treeview contriol,here is the code:<br />
aspx:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p88code44'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p8844"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p88code44"><pre class="csharp" style="font-family:monospace;"><span style="color: #008000;">&lt;</span>asp<span style="color: #008000;">:</span>TreeView ID<span style="color: #008000;">=</span><span style="color: #666666;">&quot;TV_Department&quot;</span> runat<span style="color: #008000;">=</span><span style="color: #666666;">&quot;server&quot;</span>  OnSelectedNodeChanged<span style="color: #008000;">=</span><span style="color: #666666;">&quot;TV_Department_SelectedNodeChanged&quot;</span>  ExpandDepth<span style="color: #008000;">=</span><span style="color: #666666;">&quot;6&quot;</span>   width<span style="color: #008000;">=</span><span style="color: #666666;">&quot;240px&quot;</span> BorderWidth<span style="color: #008000;">=</span><span style="color: #666666;">&quot;0px&quot;</span> BorderColor<span style="color: #008000;">=</span><span style="color: #666666;">&quot;White&quot;</span> BackColor<span style="color: #008000;">=</span><span style="color: #666666;">&quot;White&quot;</span> LineImagesFolder<span style="color: #008000;">=</span><span style="color: #666666;">&quot;~/TreeLineImages&quot;</span> NodeWrap<span style="color: #008000;">=</span><span style="color: #666666;">&quot;True&quot;</span> ImageSet<span style="color: #008000;">=</span><span style="color: #666666;">&quot;Msdn&quot;</span> NodeIndent<span style="color: #008000;">=</span><span style="color: #666666;">&quot;10&quot;</span><span style="color: #008000;">&gt;</span>
<span style="color: #008000;">&lt;/</span>asp<span style="color: #008000;">:</span>TreeView<span style="color: #008000;">&gt;</span></pre></td></tr></table></div>

<p>cs:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p88code45'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p8845"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
</pre></td><td class="code" id="p88code45"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF;">protected</span> <span style="color: #0600FF;">void</span> Page_Load<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">object</span> sender, EventArgs e<span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#123;</span>
&nbsp;
        <span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #008000;">!</span>IsPostBack<span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#123;</span>
            BindTree<span style="color: #000000;">&#40;</span>isTheme.<span style="color: #0000FF;">DeptID</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span> 
&nbsp;
        <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #008080; font-style: italic;">/// &lt;summary&gt;</span>
<span style="color: #008080; font-style: italic;">///  </span>
<span style="color: #008080; font-style: italic;">/// &lt;/summary&gt;</span>
<span style="color: #0600FF;">void</span> BindTree<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">int</span> DeptID<span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#123;</span>
        DataTable dt <span style="color: #008000;">=</span> getlist.<span style="color: #0000FF;">GetList</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot; * &quot;</span>, <span style="color: #666666;">&quot;&quot;</span><span style="color: #000000;">&#41;</span>.<span style="color: #0000FF;">Tables</span><span style="color: #000000;">&#91;</span><span style="color: #FF0000;">0</span><span style="color: #000000;">&#93;</span><span style="color: #008000;">;</span><span style="color: #008080; font-style: italic;">// we can get the datatable from MSSQL XML and so on.</span>
        DataView dv <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> DataView<span style="color: #000000;">&#40;</span>dt<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
        dv.<span style="color: #0000FF;">RowFilter</span> <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;DeptID =&quot;</span> <span style="color: #008000;">+</span> DeptID<span style="color: #008000;">;</span>
        TV_Department.<span style="color: #0000FF;">Nodes</span>.<span style="color: #0000FF;">Clear</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>dt.<span style="color: #0000FF;">Rows</span>.<span style="color: #0000FF;">Count</span> <span style="color: #008000;">&gt;</span> <span style="color: #FF0000;">0</span><span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#123;</span>
            <span style="color: #0600FF;">foreach</span> <span style="color: #000000;">&#40;</span>DataRowView drv <span style="color: #0600FF;">in</span> dv<span style="color: #000000;">&#41;</span>
            <span style="color: #000000;">&#123;</span>
                TreeNode node <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> TreeNode<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
                node.<span style="color: #0000FF;">Text</span> <span style="color: #008000;">=</span> drv<span style="color: #000000;">&#91;</span><span style="color: #666666;">&quot;DeptShortName&quot;</span><span style="color: #000000;">&#93;</span>.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
                node.<span style="color: #0000FF;">Value</span> <span style="color: #008000;">=</span> drv<span style="color: #000000;">&#91;</span><span style="color: #666666;">&quot;DeptID&quot;</span><span style="color: #000000;">&#93;</span>.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
                node.<span style="color: #0000FF;">Expanded</span> <span style="color: #008000;">=</span> true<span style="color: #008000;">;</span>
                node.<span style="color: #0000FF;">SelectAction</span> <span style="color: #008000;">=</span> TreeNodeSelectAction.<span style="color: #0000FF;">Select</span><span style="color: #008000;">;</span>
                TV_Department.<span style="color: #0000FF;">Nodes</span>.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span>node<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
                AddReplies<span style="color: #000000;">&#40;</span>dt, node<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #000000;">&#125;</span>
            TV_Department.<span style="color: #0000FF;">SelectedNodeStyle</span>.<span style="color: #0000FF;">BackColor</span> <span style="color: #008000;">=</span> <span style="color: #000000;">System.<span style="color: #0000FF;">Drawing</span></span>.<span style="color: #0000FF;">Color</span>.<span style="color: #0000FF;">FromArgb</span><span style="color: #000000;">&#40;</span><span style="color: #FF0000;">242</span>, <span style="color: #FF0000;">255</span>, <span style="color: #FF0000;">253</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #000000;">&#125;</span>
<span style="color: #008080; font-style: italic;">/// &lt;summary&gt;</span>
<span style="color: #008080; font-style: italic;">/// get the children </span>
<span style="color: #008080; font-style: italic;">/// &lt;param name=&quot;dt&quot;&gt;&lt;/param&gt;</span>
<span style="color: #008080; font-style: italic;">/// &lt;param name=&quot;node&quot;&gt;&lt;/param&gt;</span>
<span style="color: #0600FF;">private</span> <span style="color: #0600FF;">void</span> AddReplies<span style="color: #000000;">&#40;</span>DataTable dt, TreeNode node<span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#123;</span>
        DataView dv <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> DataView<span style="color: #000000;">&#40;</span>dt<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
        dv.<span style="color: #0000FF;">RowFilter</span> <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;PID='&quot;</span> <span style="color: #008000;">+</span> node.<span style="color: #0000FF;">Value</span> <span style="color: #008000;">+</span> <span style="color: #666666;">&quot;'&quot;</span><span style="color: #008000;">;</span>
        <span style="color: #0600FF;">foreach</span> <span style="color: #000000;">&#40;</span>DataRowView row <span style="color: #0600FF;">in</span> dv<span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#123;</span>
            TreeNode replyNode <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> TreeNode<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            replyNode.<span style="color: #0000FF;">Text</span> <span style="color: #008000;">=</span> row<span style="color: #000000;">&#91;</span><span style="color: #666666;">&quot;DeptShortName&quot;</span><span style="color: #000000;">&#93;</span>.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            replyNode.<span style="color: #0000FF;">Value</span> <span style="color: #008000;">=</span> row<span style="color: #000000;">&#91;</span><span style="color: #666666;">&quot;DeptID&quot;</span><span style="color: #000000;">&#93;</span>.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            replyNode.<span style="color: #0000FF;">Expanded</span> <span style="color: #008000;">=</span> true<span style="color: #008000;">;</span>
            replyNode.<span style="color: #0000FF;">SelectAction</span> <span style="color: #008000;">=</span> TreeNodeSelectAction.<span style="color: #0000FF;">Select</span><span style="color: #008000;">;</span>
            node.<span style="color: #0000FF;">ChildNodes</span>.<span style="color: #0000FF;">Add</span><span style="color: #000000;">&#40;</span>replyNode<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            AddReplies<span style="color: #000000;">&#40;</span>dt, replyNode<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #000000;">&#125;</span>
 <span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=88</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to upload a file by using jquery and asp.net</title>
		<link>http://wind-flowers.net/?p=82</link>
		<comments>http://wind-flowers.net/?p=82#comments</comments>
		<pubDate>Tue, 21 Apr 2009 04:45:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[JQUERY]]></category>
		<category><![CDATA[upload file]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=82</guid>
		<description><![CDATA[maybe the title not right.bu i think you can understand my means.
In the asp.net world,we frequently uploading files via a web page, in this example,we will upload a file without refresh.
index.html:

?View Code CSHARP1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
&#60;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34;&#62;
&#60;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34; &#62;
&#60;head&#62;
    &#60;title&#62;无标题页&#60;/title&#62;
    &#60;script type=&#34;text/javascript&#34; src=&#34;../js/jquery-1.3.2.min.js&#34;  charset=&#34;GB2312&#34;&#62;&#60;/script&#62;
  [...]]]></description>
			<content:encoded><![CDATA[<p>maybe the title not right.bu i think you can understand my means.</p>
<p>In the asp.net world,we frequently uploading files via a web page, in this example,we will upload a file without <span style="color: #cc0033;">refresh.</span></p>
<p><span style="color: #cc0033;">index.html:</span></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p82code48'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p8248"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
</pre></td><td class="code" id="p82code48"><pre class="csharp" style="font-family:monospace;"><span style="color: #008000;">&lt;!</span>DOCTYPE html <span style="color: #0600FF;">PUBLIC</span> <span style="color: #666666;">&quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;</span> <span style="color: #666666;">&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;</span><span style="color: #008000;">&gt;</span>
<span style="color: #008000;">&lt;</span>html xmlns<span style="color: #008000;">=</span><span style="color: #666666;">&quot;http://www.w3.org/1999/xhtml&quot;</span> <span style="color: #008000;">&gt;</span>
<span style="color: #008000;">&lt;</span>head<span style="color: #008000;">&gt;</span>
    <span style="color: #008000;">&lt;</span>title<span style="color: #008000;">&gt;</span>无标题页<span style="color: #008000;">&lt;/</span>title<span style="color: #008000;">&gt;</span>
    <span style="color: #008000;">&lt;</span>script type<span style="color: #008000;">=</span><span style="color: #666666;">&quot;text/javascript&quot;</span> src<span style="color: #008000;">=</span><span style="color: #666666;">&quot;../js/jquery-1.3.2.min.js&quot;</span>  charset<span style="color: #008000;">=</span><span style="color: #666666;">&quot;GB2312&quot;</span><span style="color: #008000;">&gt;&lt;/</span>script<span style="color: #008000;">&gt;</span>
    <span style="color: #008000;">&lt;</span>script type<span style="color: #008000;">=</span><span style="color: #666666;">&quot;text/javascript&quot;</span><span style="color: #008000;">&gt;</span>
    $<span style="color: #000000;">&#40;</span>function<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
	$<span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;#btnUploadFile&quot;</span><span style="color: #000000;">&#41;</span>.<span style="color: #0000FF;">click</span><span style="color: #000000;">&#40;</span>function<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
&nbsp;
	    $.<span style="color: #0000FF;">ajax</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#123;</span>
        type<span style="color: #008000;">:</span> <span style="color: #666666;">&quot;post&quot;</span>,
        dataType<span style="color: #008000;">:</span><span style="color: #666666;">&quot;html&quot;</span>,
        url<span style="color: #008000;">:</span> <span style="color: #666666;">&quot;upload.aspx&quot;</span>,
        timeout<span style="color: #008000;">:</span> <span style="color: #FF0000;">20000</span>,
        data<span style="color: #008000;">:</span> <span style="color: #666666;">&quot;userfile=&quot;</span><span style="color: #008000;">+</span>escape<span style="color: #000000;">&#40;</span>$<span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;#userfile&quot;</span><span style="color: #000000;">&#41;</span>.<span style="color: #0000FF;">val</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>,
        cache<span style="color: #008000;">:</span><span style="color: #0600FF;">false</span>,
        beforeSend<span style="color: #008000;">:</span> function<span style="color: #000000;">&#40;</span>XMLHttpRequest<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
            <span style="color: #008080; font-style: italic;">//ShowLoading();</span>
        <span style="color: #000000;">&#125;</span>,
        success<span style="color: #008000;">:</span> function<span style="color: #000000;">&#40;</span>data,textStatus<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
            $<span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;#dialog&quot;</span><span style="color: #000000;">&#41;</span>.<span style="color: #0000FF;">html</span><span style="color: #000000;">&#40;</span>data<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            alert<span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;succeed&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #000000;">&#125;</span>,
        complete<span style="color: #008000;">:</span> function<span style="color: #000000;">&#40;</span>XMLHttpRequest, textStatus<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
            <span style="color: #008080; font-style: italic;">//HideLoading();</span>
        <span style="color: #000000;">&#125;</span>,
        error<span style="color: #008000;">:</span> function<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
            <span style="color: #008080; font-style: italic;">//HappenError();</span>
        <span style="color: #000000;">&#125;</span>
    <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
	<span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
<span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
<span style="color: #008000;">&lt;/</span>script<span style="color: #008000;">&gt;</span>
<span style="color: #008000;">&lt;/</span>head<span style="color: #008000;">&gt;</span>
<span style="color: #008000;">&lt;</span>body<span style="color: #008000;">&gt;</span>
<span style="color: #008000;">&lt;</span>form id<span style="color: #008000;">=</span><span style="color: #666666;">&quot;form1&quot;</span> method<span style="color: #008000;">=</span><span style="color: #666666;">&quot;post&quot;</span> enctype<span style="color: #008000;">=</span><span style="color: #666666;">&quot;multipart/form-data&quot;</span><span style="color: #008000;">&gt;</span>
<span style="color: #008000;">&lt;</span>div<span style="color: #008000;">&gt;</span>
    <span style="color: #008000;">&lt;</span>input id<span style="color: #008000;">=</span><span style="color: #666666;">&quot;userfile&quot;</span> type<span style="color: #008000;">=</span><span style="color: #666666;">&quot;file&quot;</span> <span style="color: #008000;">/&gt;&lt;</span>input id<span style="color: #008000;">=</span><span style="color: #666666;">&quot;btnUploadFile&quot;</span> type<span style="color: #008000;">=</span><span style="color: #666666;">&quot;button&quot;</span> value<span style="color: #008000;">=</span><span style="color: #666666;">&quot;upload&quot;</span> <span style="color: #008000;">/&gt;&lt;/</span>div<span style="color: #008000;">&gt;&lt;</span>div id<span style="color: #008000;">=</span><span style="color: #666666;">&quot;dialog&quot;</span><span style="color: #008000;">&gt;&lt;/</span>div<span style="color: #008000;">&gt;</span>
<span style="color: #008000;">&lt;/</span>form<span style="color: #008000;">&gt;</span>
<span style="color: #008000;">&lt;/</span>body<span style="color: #008000;">&gt;</span>
<span style="color: #008000;">&lt;/</span>html<span style="color: #008000;">&gt;</span></pre></td></tr></table></div>

<p>upload.aspx</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p82code49'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p8249"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
</pre></td><td class="code" id="p82code49"><pre class="csharp" style="font-family:monospace;"><span style="color: #008000;">&lt;%</span>@ Page Language<span style="color: #008000;">=</span><span style="color: #666666;">&quot;C#&quot;</span> Debug<span style="color: #008000;">=</span><span style="color: #666666;">&quot;true&quot;</span> <span style="color: #008000;">%&gt;</span>
<span style="color: #008000;">&lt;%</span>@ Import <span style="color: #0600FF;">Namespace</span><span style="color: #008000;">=</span><span style="color: #666666;">&quot;System&quot;</span> <span style="color: #008000;">%&gt;</span>
<span style="color: #008000;">&lt;%</span>@ Import <span style="color: #0600FF;">Namespace</span><span style="color: #008000;">=</span><span style="color: #666666;">&quot;System.IO&quot;</span> <span style="color: #008000;">%&gt;</span>
<span style="color: #008000;">&lt;%</span>@ Import <span style="color: #0600FF;">Namespace</span><span style="color: #008000;">=</span><span style="color: #666666;">&quot;System.Net&quot;</span> <span style="color: #008000;">%&gt;</span>
<span style="color: #008000;">&lt;</span>script runat<span style="color: #008000;">=</span><span style="color: #666666;">&quot;server&quot;</span><span style="color: #008000;">&gt;</span>
    <span style="color: #0600FF;">protected</span> <span style="color: #0600FF;">void</span> Page_Load<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">object</span> sender, EventArgs e<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
        <span style="color: #FF0000;">string</span> requestpath <span style="color: #008000;">=</span> Request.<span style="color: #0000FF;">Form</span><span style="color: #000000;">&#91;</span><span style="color: #666666;">&quot;userfile&quot;</span><span style="color: #000000;">&#93;</span>.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #FF0000;">string</span> _path <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;../Users/&quot;</span><span style="color: #008000;">;</span><span style="color: #008080; font-style: italic;">//</span>
        <span style="color: #FF0000;">string</span> extName <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;&quot;</span><span style="color: #008000;">;</span><span style="color: #008080; font-style: italic;">//</span>
        <span style="color: #FF0000;">string</span> fileNamePath <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;&quot;</span><span style="color: #008000;">;</span> <span style="color: #008080; font-style: italic;">//</span>
        <span style="color: #FF0000;">string</span> NewFilePath <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;&quot;</span><span style="color: #008000;">;</span><span style="color: #008080; font-style: italic;">//</span>
        FileInfo userPostedFile <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> FileInfo<span style="color: #000000;">&#40;</span>Server.<span style="color: #0000FF;">UrlDecode</span><span style="color: #000000;">&#40;</span>requestpath<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>userPostedFile.<span style="color: #0000FF;">Length</span> <span style="color: #008000;">&gt;</span> <span style="color: #FF0000;">0</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
            extName <span style="color: #008000;">=</span> userPostedFile.<span style="color: #0000FF;">Extension</span><span style="color: #008000;">;</span>
            <span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>_path.<span style="color: #0000FF;">EndsWith</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;/&quot;</span><span style="color: #000000;">&#41;</span> <span style="color: #008000;">==</span> <span style="color: #0600FF;">false</span><span style="color: #000000;">&#41;</span>
                _path <span style="color: #008000;">=</span> _path <span style="color: #008000;">+</span> <span style="color: #666666;">&quot;/&quot;</span><span style="color: #008000;">;</span>
            fileNamePath <span style="color: #008000;">=</span> HttpContext.<span style="color: #0000FF;">Current</span>.<span style="color: #0000FF;">Server</span>.<span style="color: #0000FF;">MapPath</span><span style="color: #000000;">&#40;</span>_path<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            NewFilePath <span style="color: #008000;">=</span> fileNamePath <span style="color: #008000;">+</span> DateTime.<span style="color: #0000FF;">Now</span>.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;yyyyMMddHHmmss&quot;</span><span style="color: #000000;">&#41;</span> <span style="color: #008000;">+</span> extName<span style="color: #008000;">;</span>
            WebClient myWebClient <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> WebClient<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            myWebClient.<span style="color: #0000FF;">Credentials</span> <span style="color: #008000;">=</span> CredentialCache.<span style="color: #0000FF;">DefaultCredentials</span><span style="color: #008000;">;</span>
            FileStream fs <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> FileStream<span style="color: #000000;">&#40;</span>Server.<span style="color: #0000FF;">UrlDecode</span><span style="color: #000000;">&#40;</span>Context.<span style="color: #0000FF;">Request</span>.<span style="color: #0000FF;">Form</span><span style="color: #000000;">&#91;</span><span style="color: #666666;">&quot;userfile&quot;</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>, FileMode.<span style="color: #0000FF;">Open</span>, FileAccess.<span style="color: #0000FF;">Read</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            BinaryReader r <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> BinaryReader<span style="color: #000000;">&#40;</span>fs<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #FF0000;">byte</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> postArray <span style="color: #008000;">=</span> r.<span style="color: #0000FF;">ReadBytes</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span><span style="color: #FF0000;">int</span><span style="color: #000000;">&#41;</span>fs.<span style="color: #0000FF;">Length</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            Stream postStream <span style="color: #008000;">=</span> myWebClient.<span style="color: #0000FF;">OpenWrite</span><span style="color: #000000;">&#40;</span>NewFilePath, <span style="color: #666666;">&quot;PUT&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>postStream.<span style="color: #0000FF;">CanWrite</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
                postStream.<span style="color: #0000FF;">Write</span><span style="color: #000000;">&#40;</span>postArray, <span style="color: #FF0000;">0</span>, postArray.<span style="color: #0000FF;">Length</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
                Response.<span style="color: #0000FF;">Write</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;ok!&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #000000;">&#125;</span>
            <span style="color: #0600FF;">else</span> <span style="color: #000000;">&#123;</span>
                Response.<span style="color: #0000FF;">Write</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;error!&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #000000;">&#125;</span>
            postStream.<span style="color: #0000FF;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            postStream.<span style="color: #0000FF;">Dispose</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #000000;">&#125;</span>
    <span style="color: #000000;">&#125;</span>
<span style="color: #008000;">&lt;/</span>script<span style="color: #008000;">&gt;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=82</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>45 Excellent Free Wordpress Themes</title>
		<link>http://wind-flowers.net/?p=79</link>
		<comments>http://wind-flowers.net/?p=79#comments</comments>
		<pubDate>Thu, 16 Apr 2009 01:18:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress Themes]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=79</guid>
		<description><![CDATA[There are 45 Wordpress Themes, I hope this collection would have something you like.








 


















































































this is the author web
]]></description>
			<content:encoded><![CDATA[<p>There are 45 Wordpress Themes, I hope this collection would have something you like.</p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.chris-wallace.com'); } } }" href="http://www.chris-wallace.com/2008/11/20/absynthe-wordpress-theme/" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/1.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="407" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.chris-wallace.com'); } } }" href="http://www.chris-wallace.com/?theme=Absynthe" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.chris-wallace.com'); } } }" href="http://www.chris-wallace.com/downloads/absynthe-1.1.zip" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></a></p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.smashingmagazine.com'); } } }" href="http://www.smashingmagazine.com/2008/10/20/cellar-heat-a-free-wordpress-theme/" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/2.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="407" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/78.46.108.98'); } } }" href="http://78.46.108.98/images/cellar-wordpress-theme/cellar-heat-light-screen.jpg" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/78.46.108.98'); } } }" href="http://78.46.108.98/images/cellar-wordpress-theme/cellar-heat-light.zip" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></a></p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.evaneckard.com'); } } }" href="http://www.evaneckard.com/?p=36" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/3.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="407" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/honker.evaneckard.com'); } } }" href="http://honker.evaneckard.com/" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/78.46.108.98'); } } }" href="http://78.46.108.98/images/ornate-wordpress-theme/simply-ornate-twirlII.zip" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></a></p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.smashingmagazine.com'); } } }" href="http://www.smashingmagazine.com/2008/08/20/notepad-chaos-a-free-wordpress-theme/" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/4.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="407" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/88.198.60.17'); } } }" href="http://88.198.60.17/images/notepad-wordpress-theme/chaos.jpg" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/78.46.108.98'); } } }" href="http://78.46.108.98/images/notepad-wordpress-theme/wp-theme-notepad-chaos.zip" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></a></p>
<p> </p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.smashingmagazine.com'); } } }" href="http://www.smashingmagazine.com/2008/07/16/wordpress-fun-a-free-wordpress-theme/" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/5.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="407" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/78.46.108.98'); } } }" href="http://78.46.108.98/images/wordpress-theme-fun/wp-fun-large.jpg" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/88.198.60.17'); } } }" href="http://88.198.60.17/images/wordpress-theme-fun/wordpress-fun.zip" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></a></p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.smashingmagazine.com'); } } }" href="http://www.smashingmagazine.com/2008/08/08/infinity-a-free-wordpress-theme/" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/6.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="407" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/88.198.60.17'); } } }" href="http://88.198.60.17/images/infinity-wordpress-theme/preview-large.png" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/78.46.108.98'); } } }" href="http://78.46.108.98/images/infinity-wordpress-theme/infinity-theme.zip" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></a></p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/fresh01.co.za'); } } }" href="http://fresh01.co.za/2008/07/23/scruffy/" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/7.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="407" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/fresh01.co.za'); } } }" href="http://fresh01.co.za/preview/index.php?wptheme=Scruffy" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/fresh01.co.za'); } } }" href="http://fresh01.co.za/download/1/" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></a></p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/michaelhutagalung.com'); } } }" href="http://michaelhutagalung.com/2008/08/arthemia-20-released-the-updates/" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/8.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="407" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/michaelhutagalung.com'); } } }" href="http://michaelhutagalung.com/arthemia/" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/michaelhutagalung.com'); } } }" href="http://michaelhutagalung.com/download-manager.php?id=3" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></a></p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/madebyon.com'); } } }" href="http://madebyon.com/equilibrium-wordpress-theme/" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/9.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="407" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/equilibrium.madebyon.com'); } } }" href="http://equilibrium.madebyon.com/" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/madebyon.com'); } } }" href="http://madebyon.com/download/Equilibrium_1.4.zip" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></a></p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.smashingmagazine.com'); } } }" href="http://www.smashingmagazine.com/2008/09/08/agregado-a-free-wordpress-theme/" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/10.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="407" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.darrenhoyt.com'); } } }" href="http://www.darrenhoyt.com/demo/agregado/" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.darrenhoyt.com'); } } }" href="http://www.darrenhoyt.com/downloads/agregado.zip" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></a></p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.smashingmagazine.com'); } } }" href="http://www.smashingmagazine.com/2008/11/10/black-magic-a-free-wordpress-theme/" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/11.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="407" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/88.198.60.17'); } } }" href="http://88.198.60.17/images/black-magic-wordpress-theme/preview.jpg" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.productivedreams.com'); } } }" href="http://www.productivedreams.com/wp-content/plugins/download-monitor/download.php?id=productivedreams.zip" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></a></p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/freethemelayouts.com'); } } }" href="http://freethemelayouts.com/showcase/creativeart-theme/" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/12.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="407" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/freethemelayouts.com'); } } }" href="http://freethemelayouts.com/blog/index.php?wptheme=CreativeArt" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/freethemelayouts.com'); } } }" href="http://freethemelayouts.com/dls/creativeart.zip" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></a></p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.smashingmagazine.com'); } } }" href="http://www.smashingmagazine.com/2008/10/30/color-paper-a-free-wordpress-theme/" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/13.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="407" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/freethemelayouts.com'); } } }" href="http://freethemelayouts.com/blog/index.php?wptheme=Color%20Paper" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/freethemelayouts.com'); } } }" href="http://freethemelayouts.com/dls/colorpaper.zip" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></a></p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.geekwithlaptop.com'); } } }" href="http://www.geekwithlaptop.com/projects/desk-mess-wordpress-theme/" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/14.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="292" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.geekwithlaptop.com'); } } }" href="http://www.geekwithlaptop.com/projects/desk-mess-wordpress-theme/" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/wordpress.org'); } } }" href="http://wordpress.org/extend/themes/download/desk-mess.1.4.zip" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></a></p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/michael.tyson.id.au'); } } }" href="http://michael.tyson.id.au/elegant-grunge-wordpress-theme" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/15.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="407" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/wp-themes.com'); } } }" href="http://wp-themes.com/elegant-grunge/?TB_iframe=true&amp;width=1153&amp;height=728" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/wordpress.org'); } } }" href="http://wordpress.org/extend/themes/download/elegant-grunge.0.4.5.zip" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></a></p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.wpthemedesigner.com'); } } }" href="http://www.wpthemedesigner.com/2008/11/27/transparency-theme/" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/16.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="407" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/wpthemedesigner.com'); } } }" href="http://wpthemedesigner.com/demo/index.php?wptheme=Transparency" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.wpthemedesigner.com'); } } }" href="http://www.wpthemedesigner.com/wp-content/plugins/download-monitor/download.php?id=25" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></a></p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.woothemes.com'); } } }" href="http://www.woothemes.com/2008/11/typebased/" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/17.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="407" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.woothemes.com'); } } }" href="http://www.woothemes.com/demo/?t=15" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.woothemes.com'); } } }" href="http://www.woothemes.com/free-downloads/typebased.zip" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></a></p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.woothemes.com'); } } }" href="http://www.woothemes.com/demo/?t=1" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/18.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="407" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.woothemes.com'); } } }" href="http://www.woothemes.com/2007/11/the-original-premium-news/" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.woothemes.com'); } } }" href="http://www.woothemes.com/free-downloads/premiumnews.zip" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></a></p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/samk.ca'); } } }" href="http://samk.ca/freebies/pixeled-wordpress-theme-in-blue/" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/19.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="407" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/samk.ca'); } } }" href="http://samk.ca/demo/" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/wordpress.org'); } } }" href="http://wordpress.org/extend/themes/download/pixeled.1.5.zip" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></a></p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/wefunction.com'); } } }" href="http://wefunction.com/2008/07/free-theme-outdoorsy/" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/20.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="292" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/wefunction.com'); } } }" href="http://wefunction.com/2008/07/free-theme-outdoorsy/" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/wefunction.com'); } } }" href="http://wefunction.com/wp-content/uploads/2008/07/outdoorsy_fixed.zip" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></a></p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/justintadlock.com'); } } }" href="http://justintadlock.com/archives/2008/02/24/options-wordpress-theme" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/21.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="407" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/themehybrid.com'); } } }" href="http://themehybrid.com/demo/options/index.php?wptheme=Shadow" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/themehybrid.com'); } } }" href="http://themehybrid.com/downloads/options.zip" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></a></p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/graphpaperpress.com'); } } }" href="http://graphpaperpress.com/2008/06/02/f8-lite-portfolio-theme-for-wordpress/" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/22.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="407" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/graphpaperpress.com'); } } }" href="http://graphpaperpress.com/demo/f8/index.php?wptheme=f8" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/graphpaperpress.com'); } } }" href="http://graphpaperpress.com/demo/f8/index.php?wptheme=f8" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></a></p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.arthack.org'); } } }" href="http://www.arthack.org/guzel-magazine.html" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/23.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="292" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/mywordpressdesign.com'); } } }" href="http://mywordpressdesign.com/max/" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.arthack.org'); } } }" href="http://www.arthack.org/wp-content/uploads/2008/09/guzel-magazine.zip" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></a></p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/graphpaperpress.com'); } } }" href="http://graphpaperpress.com/demo/monochrome/" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/24.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="407" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/graphpaperpress.com'); } } }" href="http://graphpaperpress.com/demo/monochrome/" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/graphpaperpress.com'); } } }" href="http://graphpaperpress.com/demo/monochrome/" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></a></p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.productivedreams.com'); } } }" href="http://www.productivedreams.com/wilddreams-another-free-wordpress-theme/" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/25.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="407" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/productivedreams.com'); } } }" href="http://productivedreams.com/wp-content/uploads/wilddreams-preview.jpg" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.productivedreams.com'); } } }" href="http://www.productivedreams.com/wp-content/plugins/download-monitor/download.php?id=pd-wilddreams.zip" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></a></p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/wordpress.bustatheme.com'); } } }" href="http://wordpress.bustatheme.com/coda/" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/26.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="407" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/wordpress.bustatheme.com'); } } }" href="http://wordpress.bustatheme.com/coda/" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/wordpress.bustatheme.com'); } } }" href="http://wordpress.bustatheme.com/coda/" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></a></p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.der-prinz.com'); } } }" href="http://www.der-prinz.com/2008/04/24/neues-magazine-style-theme-fuer-wordpress-wyntonmagazine-new-magazine-style-theme-for-wor%20%20dpress-wyntonmagazine/http://www.der-prinz.com/2008/04/24/neues-magazine-style-theme-fuer-wordpress-wyntonmagazine-new-magazine-style-theme-for-wor%20%20dpress-wyntonmagazine/" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/27.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="407" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/wp-themes.der-prinz.com'); } } }" href="http://wp-themes.der-prinz.com/wyntonmagazine/" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.der-prinz.com'); } } }" href="http://www.der-prinz.com/2008/04/21/wyntonmagazine-latest-version/" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></a></p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/colorlightstudio.com'); } } }" href="http://colorlightstudio.com/2007/11/20/cubismo/" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/28.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="407" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/preview.colorlightstudio.com'); } } }" href="http://preview.colorlightstudio.com/?wptheme=Cubismo" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/colorlightstudio.com'); } } }" href="http://colorlightstudio.com/wp-content/plugins/wp-downloadMonitor/download.php?id=2" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></a></p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/webrevolutionary.com'); } } }" href="http://webrevolutionary.com/curious/" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/29.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="407" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/webrevolutionary.com'); } } }" href="http://webrevolutionary.com/curious-demo/" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.webrevolutionary.com'); } } }" href="http://www.webrevolutionary.com/Curious.zip" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></a></p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.wordpressthemesmarket.com'); } } }" href="http://www.wordpressthemesmarket.com/premium-themes/purple-fever-wordpress-theme/" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/30.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="407" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/purplefevertheme.com'); } } }" href="http://purplefevertheme.com/" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.blogdesignblog.com'); } } }" href="http://www.blogdesignblog.com/themes/" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/31.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="407" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.blogdesignblog.com'); } } }" href="http://www.blogdesignblog.com/themes/" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.blogdesignblog.com'); } } }" href="http://www.blogdesignblog.com/downloads/dreamworks_redux1.4.zip" target="_self"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></a></p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.adii.co.za'); } } }" href="http://www.adii.co.za/2008/01/19/ungrid/" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/32.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="407" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.adii.co.za'); } } }" href="http://www.adii.co.za/2008/01/19/ungrid/" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/preview.adii.co.za'); } } }" href="http://preview.adii.co.za/ungrid/ungrid-default.zip" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></a></p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/wpzone.net'); } } }" href="http://wpzone.net/free-wordpress-themes/elite/" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/33.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="292" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/wpzone.net'); } } }" href="http://wpzone.net/free-wordpress-themes/elite/" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/wpzone.net'); } } }" href="http://wpzone.net/download-manager.php?id=1" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></a></p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.blogohblog.com'); } } }" href="http://www.blogohblog.com/wordpress-theme-dailypress/" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/34.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="407" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/wpthemes.blogohblog.net'); } } }" href="http://wpthemes.blogohblog.net/index.php?wptheme=dailypress" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.blogohblog.com'); } } }" href="http://www.blogohblog.com/download/dailypress.zip" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></a></p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/wordpressthemes.free.fr'); } } }" href="http://wordpressthemes.free.fr/index.php/wp-themes/5-themes-wordpress-efficaces-et-gratuits" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/35.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="407" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/leafo.wpjunction.com'); } } }" href="http://leafo.wpjunction.com/?p=15" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/download.wpjunction.com'); } } }" href="http://download.wpjunction.com/leafotheme.zip" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></a></p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.themelab.com'); } } }" href="http://www.themelab.com/2008/04/01/colourise-free-wordpress-theme-38/" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/36.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="407" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/demo.themelab.com'); } } }" href="http://demo.themelab.com/" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.themelab.com'); } } }" href="http://www.themelab.com/download/38" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></a></p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/speckyboy.com'); } } }" href="http://speckyboy.com/2007/12/17/the-azure-hut-wordpress-theme/" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/37.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="407" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/speckyboy.com'); } } }" href="http://speckyboy.com/2007/12/17/the-azure-hut-wordpress-theme/" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/speckyboy.com'); } } }" href="http://speckyboy.com/wp-content/uploads/2007/12/azure_hut.zip" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></a></p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/the449.com'); } } }" href="http://the449.com/springloaded-the-theme-is-here/" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/38.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="407" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/wpthemes.the449.com'); } } }" href="http://wpthemes.the449.com/" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/the449.com'); } } }" href="http://the449.com/themes/sl.zip" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></a></p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.farfromfearless.com'); } } }" href="http://www.farfromfearless.com/2008/07/11/twilight-saga-wordpress-theme/" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/39.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="407" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.farfromfearless.com'); } } }" href="http://www.farfromfearless.com/2008/07/11/twilight-saga-wordpress-theme/" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.farfromfearless.com'); } } }" href="http://www.farfromfearless.com/fff-theme/WP_Twilight_Theme_v2_0_1.zip" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></a></p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.wpthemedesigner.com'); } } }" href="http://www.wpthemedesigner.com/2008/11/28/rewire-theme/" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/40.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="407" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/wpthemedesigner.com'); } } }" href="http://wpthemedesigner.com/demo/index.php?wptheme=Rewire%20Theme" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.wpthemedesigner.com'); } } }" href="http://www.wpthemedesigner.com/wp-content/plugins/download-monitor/download.php?id=26" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></a></p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.wpthemedesigner.com'); } } }" href="http://www.wpthemedesigner.com/2008/05/07/rebel-magazine-theme/" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/41.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="407" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/ythv.info'); } } }" href="http://ythv.info/rebel/" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.wpthemedesigner.com'); } } }" href="http://www.wpthemedesigner.com/wp-content/plugins/download-monitor/download.php?id=2" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></a></p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.osdesigner.net'); } } }" href="http://www.osdesigner.net/wordpress-themes/css-gallery-theme/" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/42.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="407" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.botwg.com'); } } }" href="http://www.botwg.com/" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.osdesigner.net'); } } }" href="http://www.osdesigner.net/downloads/CSSGallery_v1.10.zip" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></a></p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.woothemes.com'); } } }" href="http://www.woothemes.com/2008/10/snapshot/" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/43.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="407" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.woothemes.com'); } } }" href="http://www.woothemes.com/demo/?t=12" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.woothemes.com'); } } }" href="http://www.woothemes.com/free-downloads/snapshot.zip" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></a></p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.urbantrash.net'); } } }" href="http://www.urbantrash.net/cssgallery/2008/09/13/css-gallery-theme-20-free-showcase-theme-for-wordpress/" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/44.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="252" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.urbantrash.net'); } } }" href="http://www.urbantrash.net/cssgallery" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/www.urbantrash.net'); } } }" href="http://www.urbantrash.net/cssgallery/download/css-gallery-custom-field-guidelines.zip" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></a></p>
<p><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/themeshaper.com'); } } }" href="http://themeshaper.com/blog/wordpress-domain-parking-theme/" target="_blank"><img style="margin: 0px; vertical-align: middle; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/45.jpg" alt="45 Excellent Free Wordpress Templates" width="462" height="407" /></a><br />
<a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/wordpress.themeshaper.com'); } } }" href="http://wordpress.themeshaper.com/" target="_self"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/preview.jpg" alt="Preview" width="102" height="31" /></a><a onclick="function onclick() { function onclick() { function onclick() { pageTracker._trackPageview('/outbound/article/wordpress.themeshaper.com'); } } }" href="http://wordpress.themeshaper.com/wp-content/themes/launchpad.zip" target="_blank"><img style="margin: 0px; border-width: 0pt;" src="http://dzineblog.com/wp-content/uploads/2008/12/wpthemes/download.jpg" alt="Download" width="106" height="31" /></a></p>
<p><a title="link" href="http://dzineblog.com/2008/12/45-excellent-free-wordpress-templates.html" target="_blank">this is the author web</a></p>
]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=79</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>5 Wordpress Themes</title>
		<link>http://wind-flowers.net/?p=76</link>
		<comments>http://wind-flowers.net/?p=76#comments</comments>
		<pubDate>Wed, 15 Apr 2009 14:56:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress Themes]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=76</guid>
		<description><![CDATA[Premium Car

Premium Car, A premium and 2-column car wp theme.

Demo
Download
Impulse MM
Impulse MM, The theme is XHTML and CSS valid, optimized for fast loading and has dynamic tabbed menu on top, allowing any page name to fit in perfectly without ruining the theme. If you have no thumbnails on your blog and just migrate to magazine [...]]]></description>
			<content:encoded><![CDATA[<h2><a title="Permanent Link to Premium Car" rel="bookmark" href="http://themespack.com/premium-car.html/">Premium Car</a></h2>
<div class="content">
<p>Premium Car, A premium and 2-column car wp theme.</p>
<p><img src="http://i564.photobucket.com/albums/ss82/muni_photos/11089-1-1_400_280.jpg" alt="Premium Car" /></p>
<p><a href="http://blog-star.net/premthemes/?wptheme=Premium%20Car"><strong>Demo</strong></a></p>
<p><a href="http://blog-star.net/dlbase/premium_car_wp_theme.zip"><strong>Download</strong></a></p>
<p><strong>Impulse MM</strong></p>
<p>Impulse MM, The theme is XHTML and CSS valid, optimized for fast loading and has dynamic tabbed menu on top, allowing any page name to fit in perfectly without ruining the theme. If you have no thumbnails on your blog and just migrate to magazine style design, theme will pull ANY images you have in the post and automatically optimize them into thumbnails, which makes migrating to magazine style theme perfectly easy. Enjoy!</p>
<p>Plugins required: Featured Content Gallery, Cumulus, Limited posts</p>
<p><img src="http://i564.photobucket.com/albums/ss82/muni_photos/11088-1-1_400_280.jpg" alt="Impulse MM" /></p>
<p><a href="http://impulseblogger.com/demo/index.php?wptheme=MM"><strong>Demo</strong></a></p>
<p><a href="http://www.nowg.net/wp-content/uploads/mm.zip"><strong>Download</strong></a></p>
<p><strong>Online Casino Template 48</strong></p>
<p>Online Casino Template 48, poker wordpress theme</p>
<p><img src="http://i564.photobucket.com/albums/ss82/muni_photos/11087-1-1_400_280.jpg" alt="Online Casino Template 48" /></p>
<p><a href="http://wordpress.zinruss.com/index.php?wptheme=OnlineCasinoTemplate48"><strong>Demo</strong></a></p>
<p><a href="http://www.zinruss.com/themes/download-manager.php?id=401"><strong>Download</strong></a></p>
<p><strong>Online Casino Template 44</strong></p>
<p>Online Casino Template 44, premium poker wordpress theme.</p>
<p><img src="http://i564.photobucket.com/albums/ss82/muni_photos/11086-1-1_400_280.jpg" alt="Online Casino Template 44" /></p>
<p><a href="http://wordpress.zinruss.com/index.php?wptheme=OnlineCasinoTemplate44"><strong><span style="color: #000000;">Demo</span></strong></a></p>
<p><a href="http://www.zinruss.com/themes/download-manager.php?id=400"><strong><span style="color: #000000;">Download</span></strong></a></p>
<p><strong>Close to a Flush</strong></p>
<p>Close to a Flush, theme related poker, casinos and general gambling.</p>
<p><img src="http://i564.photobucket.com/albums/ss82/muni_photos/11075-2-2_400_280.jpg" alt="Close to a Flush" /></p>
<p><a href="http://www.hellcola.com/themes/balloon/index.php?wptheme=poker5"><strong><span style="color: #000000;">Demo</span></strong></a></p>
<p><a href="http://www.hellcola.com/themes/balloon/wp-content/uploads/2009/04/poker5.rar"><strong><span style="color: #000000;">Download</span></strong></a></div>
]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=76</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to get value of select box by using javascript</title>
		<link>http://wind-flowers.net/?p=72</link>
		<comments>http://wind-flowers.net/?p=72#comments</comments>
		<pubDate>Mon, 13 Apr 2009 14:53:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=72</guid>
		<description><![CDATA[options is an array property of the Javascript select object. The options array define the options of the select box with indices starting from zero.
To grab the value* or text** of a option in the select box, you must know it&#8217;s index. Most of the time you&#8217;ll only need use of the user selected option, [...]]]></description>
			<content:encoded><![CDATA[<p>options is an array property of the Javascript select object. The options array define the options of the select box with indices starting from zero.</p>
<p>To grab the value* or text** of a option in the select box, you must know it&#8217;s index. Most of the time you&#8217;ll only need use of the user selected option, so we can use the select object&#8217;s selectedIndex property to get the index we want, then use that to get the value of the option we want. This code example will grab the selected value of the myselect select box:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p72code52'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p7252"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p72code52"><pre class="csharp" style="font-family:monospace;">myselect.<span style="color: #0000FF;">options</span><span style="color: #000000;">&#91;</span>myselect.<span style="color: #0000FF;">selectedIndex</span><span style="color: #000000;">&#93;</span>.<span style="color: #0000FF;">value</span></pre></td></tr></table></div>

<p>This is an select box:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p72code53'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p7253"><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code" id="p72code53"><pre class="csharp" style="font-family:monospace;"><span style="color: #008000;">&lt;</span>select onchange<span style="color: #008000;">=</span><span style="color: #666666;">&quot;window.location=this.options[this.selectedIndex].value&quot;</span><span style="color: #008000;">&gt;</span>
    <span style="color: #008000;">&lt;</span>option value<span style="color: #008000;">=</span><span style="color: #666666;">&quot;#&quot;</span><span style="color: #008000;">&gt;</span>Select a search engine<span style="color: #008000;">&lt;/</span>option<span style="color: #008000;">&gt;</span>
    <span style="color: #008000;">&lt;</span>option value<span style="color: #008000;">=</span><span style="color: #666666;">&quot;http://www.google.com&quot;</span><span style="color: #008000;">&gt;</span>Google<span style="color: #008000;">&lt;/</span>option<span style="color: #008000;">&gt;</span>
    <span style="color: #008000;">&lt;</span>option value<span style="color: #008000;">=</span><span style="color: #666666;">&quot;http://www.yahoo.com&quot;</span><span style="color: #008000;">&gt;</span>Yahoo<span style="color: #008000;">&lt;/</span>option<span style="color: #008000;">&gt;</span>
<span style="color: #008000;">&lt;/</span>select<span style="color: #008000;">&gt;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=72</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Load XML Documents in ASP.NET2.0</title>
		<link>http://wind-flowers.net/?p=67</link>
		<comments>http://wind-flowers.net/?p=67#comments</comments>
		<pubDate>Mon, 13 Apr 2009 14:26:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=67</guid>
		<description><![CDATA[first,creat a xml files named &#8220;e.xml&#8221;
second,we can load this XML documents by using the System.Xml.XmlDocument class.
.CS

?View Code CSHARP1
2
3
4
5
6
7
8
9
10
11
12
13
14
XmlDocument doc = new XmlDocument&#40;&#41;;
// 1:Load the XML data from a file
doc.Load&#40;&#34;e.xml&#34;&#41;;
// 2:Load the XML data from a file stream
FileStream fs = new FileStream&#40;&#34;e.xml&#34;, FileMode.Open&#41;;
doc.Load&#40;fs&#41;;
fs.Close&#40;&#41;;
// 3:Read the XML by using XmlTextReader
XmlTextReader rdr = new XmlTextReader&#40;&#34;e.xml&#34;&#41;;
rdr.MoveToContent&#40;&#41;; // Move to [...]]]></description>
			<content:encoded><![CDATA[<p>first,creat a xml files named &#8220;e.xml&#8221;</p>
<p>second,we can load this XML documents by using the <strong>System.Xml.XmlDocument</strong> class.</p>
<p>.CS</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p67code56'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p6756"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
</pre></td><td class="code" id="p67code56"><pre class="csharp" style="font-family:monospace;">XmlDocument doc <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XmlDocument<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
<span style="color: #008080; font-style: italic;">// 1:Load the XML data from a file</span>
doc.<span style="color: #0000FF;">Load</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;e.xml&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
<span style="color: #008080; font-style: italic;">// 2:Load the XML data from a file stream</span>
FileStream fs <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> FileStream<span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;e.xml&quot;</span>, FileMode.<span style="color: #0000FF;">Open</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
doc.<span style="color: #0000FF;">Load</span><span style="color: #000000;">&#40;</span>fs<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
fs.<span style="color: #0000FF;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
<span style="color: #008080; font-style: italic;">// 3:Read the XML by using XmlTextReader</span>
XmlTextReader rdr <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> XmlTextReader<span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;e.xml&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
rdr.<span style="color: #0000FF;">MoveToContent</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span> <span style="color: #008080; font-style: italic;">// Move to the content nodes.</span>
rdr.<span style="color: #0000FF;">Read</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span> <span style="color: #008080; font-style: italic;">// Start reading.</span>
rdr.<span style="color: #0000FF;">Skip</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span> <span style="color: #008080; font-style: italic;">// Skip the root.</span>
rdr.<span style="color: #0000FF;">Skip</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span> <span style="color: #008080; font-style: italic;">// Skip the first content node.</span>
doc.<span style="color: #0000FF;">Load</span><span style="color: #000000;">&#40;</span>rdr<span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span> <span style="color: #008080; font-style: italic;">// Read the second node data into DOM.</span></pre></td></tr></table></div>

<p>if you want to save axml documents,you can do it like this:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p67code57'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p6757"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p67code57"><pre class="csharp" style="font-family:monospace;">doc.<span style="color: #0000FF;">Save</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;a_File.xml&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=67</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scarlett Johansson pops cork in new campaign</title>
		<link>http://wind-flowers.net/?p=62</link>
		<comments>http://wind-flowers.net/?p=62#comments</comments>
		<pubDate>Wed, 08 Apr 2009 15:08:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Picture]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=62</guid>
		<description><![CDATA[
Scarlett says she is &#8216;honoured&#8217; to front the campaign

Scarlett says she is &#8216;honoured&#8217; to front the campaign

The head of the champagne house says Scarlett was the &#8216;obvious choice&#8217; to be the company&#8217;s celebrity ambassador

The actress holds a champagne glass between her toes in one image

Scarlett Johansson stars in a new campaign for Moët &#38; Chandon
Scarlett [...]]]></description>
			<content:encoded><![CDATA[<div class="BigPhoto"><img src="http://images2.sina.com/english/entertainment/p/2009/0402/U135P200T1D230860F8DT20090402032656.jpg" alt="" /></div>
<h4 style="color: #265699;">Scarlett says she is &#8216;honoured&#8217; to front the campaign</h4>
<div class="BigPhoto"><img src="http://images2.sina.com/english/entertainment/p/2009/0402/U135P200T1D230860F10DT20090402032656.jpg" alt="" /></div>
<h4 style="color: #265699;">Scarlett says she is &#8216;honoured&#8217; to front the campaign</h4>
<div class="BigPhoto"><img src="http://images2.sina.com/english/entertainment/p/2009/0402/U135P200T1D230860F12DT20090402032656.jpg" alt="" /></div>
<h4 style="color: #265699;">The head of the champagne house says Scarlett was the &#8216;obvious choice&#8217; to be the company&#8217;s celebrity ambassador</h4>
<div class="BigPhoto"><img src="http://images2.sina.com/english/entertainment/p/2009/0402/U135P200T1D230860F14DT20090402032656.jpg" alt="" /></div>
<h4 style="color: #265699;">The actress holds a champagne glass between her toes in one image</h4>
<div class="BigPhoto"><img src="http://images2.sina.com/english/entertainment/p/2009/0402/U135P200T1D230860F16DT20090402032656.jpg" alt="" /></div>
<h4 style="color: #265699;">Scarlett Johansson stars in a new campaign for Moët &amp; Chandon</h4>
<p>Scarlett Johansson proved she is indeed a bubbly blonde in a new campaign for Moët &amp; Chandon.</p>
<p>The Hollywood actress looks her bombshell best in a series of smouldering images for the champagne house, who named her their first ever celebrity ambassador last month.</p>
<p>In one provocative image she pops the cork off a bottle of the French tipple, while in another she shows off her fancy footwork as she holds a champagne glass between her toes.</p>
]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=62</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to find  control inside Repeater</title>
		<link>http://wind-flowers.net/?p=52</link>
		<comments>http://wind-flowers.net/?p=52#comments</comments>
		<pubDate>Wed, 08 Apr 2009 09:31:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asp.net]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=52</guid>
		<description><![CDATA[Sometimes,wo need to find some control inside a repeater,and give it some values.
wo can using this code:

?View Code CSHARP1
2
3
4
5
6
7
8
9
10
StringBuilder sb = new StringBuilder&#40;&#41;;
foreach &#40;RepeaterItem item in Rep.Controls&#41; &#123;
if &#40;item.ItemType == ListItemType.Item &#124;&#124; item.ItemType == ListItemType.AlternatingItem&#41; 
&#123;
     Literal questionid = &#40;Literal&#41;item.FindControl&#40;&#34;questionid&#34;&#41;;
     HtmlTextArea hta = &#40;HtmlTextArea&#41;item.FindControl&#40;&#34;txtJisuan&#34;&#41;;
     sb.Append&#40;Server.HtmlEncode&#40;hta.Value&#41;&#41;;
     sb.Append&#40;&#34;$$&#34;&#41;;
&#125;
&#125;

if you want to find some control inside  HeaderTemplate of Repeater,you kan do this:

?View [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes,wo need to find some control inside a repeater,and give it some values.</p>
<p>wo can using this code:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p52code60'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p5260"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code" id="p52code60"><pre class="csharp" style="font-family:monospace;">StringBuilder sb <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> StringBuilder<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
<span style="color: #0600FF;">foreach</span> <span style="color: #000000;">&#40;</span>RepeaterItem item <span style="color: #0600FF;">in</span> Rep.<span style="color: #0000FF;">Controls</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
<span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>item.<span style="color: #0000FF;">ItemType</span> <span style="color: #008000;">==</span> ListItemType.<span style="color: #0000FF;">Item</span> <span style="color: #008000;">||</span> item.<span style="color: #0000FF;">ItemType</span> <span style="color: #008000;">==</span> ListItemType.<span style="color: #0000FF;">AlternatingItem</span><span style="color: #000000;">&#41;</span> 
<span style="color: #000000;">&#123;</span>
     Literal questionid <span style="color: #008000;">=</span> <span style="color: #000000;">&#40;</span>Literal<span style="color: #000000;">&#41;</span>item.<span style="color: #0000FF;">FindControl</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;questionid&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
     HtmlTextArea hta <span style="color: #008000;">=</span> <span style="color: #000000;">&#40;</span>HtmlTextArea<span style="color: #000000;">&#41;</span>item.<span style="color: #0000FF;">FindControl</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;txtJisuan&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
     sb.<span style="color: #0000FF;">Append</span><span style="color: #000000;">&#40;</span>Server.<span style="color: #0000FF;">HtmlEncode</span><span style="color: #000000;">&#40;</span>hta.<span style="color: #0000FF;">Value</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
     sb.<span style="color: #0000FF;">Append</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;$$&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p>if you want to find some control inside  HeaderTemplate of Repeater,you kan do this:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p52code61'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p5261"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code" id="p52code61"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF;">foreach</span> <span style="color: #000000;">&#40;</span>RepeaterItem item <span style="color: #0600FF;">in</span> Rep.<span style="color: #0000FF;">Controls</span><span style="color: #000000;">&#41;</span> 
<span style="color: #000000;">&#123;</span>
<span style="color: #0600FF;">if</span> <span style="color: #000000;">&#40;</span>item.<span style="color: #0000FF;">ItemType</span> <span style="color: #008000;">==</span> ListItemType.<span style="color: #0000FF;">Header</span><span style="color: #000000;">&#41;</span> 
<span style="color: #000000;">&#123;</span>
Label lbSelTotal <span style="color: #008000;">=</span> <span style="color: #000000;">&#40;</span>Label<span style="color: #000000;">&#41;</span>item.<span style="color: #0000FF;">FindControl</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;lbSelTotal&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
break<span style="color: #008000;">;</span>
<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p>you need pay attention to the red words.</p>
]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=52</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tools of Creating an ASP.NET MVC Web Application Project</title>
		<link>http://wind-flowers.net/?p=49</link>
		<comments>http://wind-flowers.net/?p=49#comments</comments>
		<pubDate>Tue, 07 Apr 2009 16:02:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asp.net]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=49</guid>
		<description><![CDATA[If you want to build an ASP.NET MVC application,You’ll need either Visual Studio 2008 or Visual Web Developer 2008 Express. and You also need to download the ASP.NET MVC framework.
Here are the Tools.
90 day trial version of Visual Studio 2008
If you decide to use Visual Web Developer Express then you must have Service Pack 1 [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to build an ASP.NET MVC application,You’ll need either Visual Studio 2008 or Visual Web Developer 2008 Express. and You also need to download the ASP.NET MVC framework.</p>
<p>Here are the Tools.<br />
<a href="http://msdn.microsoft.com/en-us/vs2008/products/cc268305.aspx ">90 day trial version of Visual Studio 2008</a></p>
<p>If you decide to use Visual Web Developer Express then you must have Service Pack 1 installed. You can download Visual Web Developer 2008 Express with Service Pack 1<br />
<a href="http://www.microsoft.com/ASP.NETdownloads/details.aspx?ASP.NETFamilyId=BDB6391C-05CA-4036-ASP.NET9154-6DF4F6DEBD14&amp;displaylang=ASP.NETen">Visual Web Developer 2008 Express with Service Pack 1</a></p>
<p>Next  I will introduce &#8220;How to Creating an ASP.NET MVC Web Application Project&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=49</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SharePoint Server 2007 SDK: Software Development Kit download</title>
		<link>http://wind-flowers.net/?p=42</link>
		<comments>http://wind-flowers.net/?p=42#comments</comments>
		<pubDate>Fri, 03 Apr 2009 04:19:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SharePoint2007]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=42</guid>
		<description><![CDATA[Microsoft Office SharePoint Server 2007 Software Development Kit (SDK) describes the technologies that Office SharePoint Server 2007 provides for developers. It contains overview information and step-by-step, how-to procedures for programming with Office SharePoint Server 2007.
click this link: Start download. 
]]></description>
			<content:encoded><![CDATA[<p>Microsoft Office SharePoint Server 2007 Software Development Kit (SDK) describes the technologies that Office SharePoint Server 2007 provides for developers. It contains overview information and step-by-step, how-to procedures for programming with Office SharePoint Server 2007.</p>
<p>click this link: <a href="http://www.microsoft.com/downloads/info.aspx?na=90&#038;p=&#038;SrcDisplayLang=en&#038;SrcCategoryId=&#038;SrcFamilyId=6d94e307-67d9-41ac-b2d6-0074d6286fa9&#038;u=http%3a%2f%2fdownload.microsoft.com%2fdownload%2f5%2fc%2f3%2f5c3a0634-2f0c-4761-958e-7fd93bf8ee30%2fOfficeServerSDK.exe">Start download</a>. </p>
]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=42</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>what is a delegate? how working with delegates in c sharp?</title>
		<link>http://wind-flowers.net/?p=38</link>
		<comments>http://wind-flowers.net/?p=38#comments</comments>
		<pubDate>Thu, 02 Apr 2009 01:51:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asp.net]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=38</guid>
		<description><![CDATA[what is a delegate?
a delegate is a type that defines a method signature, and can be associated with any method with a compatible signature. (MSDN)
Declaring a delegate:
public delegate int PerformCalculation(int x, int y);
or
public delegate void TestDelegate(string message);
Demo:
using System;
public delegate void TestDelegate(string message); //Declare the delegate
class Test
{
  public static void Display(string message)
  {
    Console.WriteLine("The string entered [...]]]></description>
			<content:encoded><![CDATA[<p><strong>what is a delegate?<br />
</strong>a delegate is a type that defines a method signature, and can be associated with any method with a compatible signature. (MSDN)</p>
<p><strong>Declaring a delegate:<br />
</strong><span style="COLOR: blue">public</span> delegate <span style="COLOR: blue">int</span> PerformCalculation(<span style="COLOR: blue">int</span> x, <span style="COLOR: blue">int</span> y);<br />
or<br />
public delegate void TestDelegate(string message);</p>
<p><strong>Demo:</strong><br />
<code>using System;<br />
public delegate void TestDelegate(string message); //Declare the delegate<br />
class Test<br />
{<br />
  public static void Display(string message)<br />
  {<br />
    Console.WriteLine("The string entered is : " + message);<br />
  }<br />
  static void Main()<br />
  {<br />
    TestDelegate t = new TestDelegate(Display); //Instantiate the delegate<br />
    Console.WriteLine("Please enter a string");<br />
    string message = Console.ReadLine();<br />
    t(message); //Invoke the delegate<br />
    Console.ReadLine();<br />
  }<br />
}</code></p>
]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=38</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>patterns &amp; practices – Enterprise Library</title>
		<link>http://wind-flowers.net/?p=33</link>
		<comments>http://wind-flowers.net/?p=33#comments</comments>
		<pubDate>Wed, 01 Apr 2009 15:03:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[Enterprise Library]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=33</guid>
		<description><![CDATA[
The Microsoft Enterprise Library is a collection of reusable software components (application blocks) designed to assist software developers with common enterprise development challenges. Application blocks are a type of guidance; they are provided as source code plus documentation that can be used &#8220;as is,&#8221; extended, or modified by developers to use on complex, enterprise-level line-of-business [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://i3.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=entlib&amp;DownloadId=4809" alt="NewpnpheroA.jpg" /></p>
<p>The Microsoft Enterprise Library is a collection of reusable software components (application blocks) designed to assist software developers with common enterprise development challenges. Application blocks are a type of guidance; they are provided as source code plus documentation that can be used &#8220;as is,&#8221; extended, or modified by developers to use on complex, enterprise-level line-of-business development projects.</p>
<p><a href="http://entlib.codeplex.com/">http://entlib.codeplex.com/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=33</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Secret of age in the eyes</title>
		<link>http://wind-flowers.net/?p=24</link>
		<comments>http://wind-flowers.net/?p=24#comments</comments>
		<pubDate>Mon, 30 Mar 2009 09:11:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Health]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=24</guid>
		<description><![CDATA[ 
Want to look younger or less tired? Focus on the area around your eyes, a new study suggests, because that&#8217;s where people get visual clues about your age and level of fatigue.
When asked to estimate the age of people in photographs, participants in a study looked at the eye region almost half the time, researchers [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" src="http://www.61km.cn/xianhua/UploadFiles_2664/200711/20071125212534722.jpg" alt="flowers" width="457" height="406" /> </p>
<p>Want to look younger or less tired? Focus on the area around your eyes, a new study suggests, because that&#8217;s where people get visual clues about your age and level of fatigue.</p>
<p>When asked to estimate the age of people in photographs, participants in a study looked at the eye region almost half the time, researchers found. The number was about the same when the participants tried to figure out how tired people in the photographs were.</p>
<p>The findings might seem obvious, but the study&#8217;s lead author, a plastic surgeon, said they&#8217;re important because cosmetic-surgery patients don&#8217;t always get treatment where they need it.</p>
<p><strong>Wrong treatment</strong><br />
&#8220;They want to look younger and less tired, but if you look to see what they&#8217;re being offered, it&#8217;s often not things around the eyes,&#8221; said Dr Peter A. D. Rubin, a US plastic surgeon and an associate professor of ophthalmology at the University of Tennessee Health Science Centre.</p>
<p>Rubin and his colleagues launched the study to figure out how people gauge age and fatigue. &#8220;What better way than to see where people are actually looking when they&#8217;re making these judgments?&#8221; he said.</p>
<p>The researchers recruited 47 college students &#8211; 15 men, 32 women &#8211; and told them to look at photographs of 48 older people on a computer monitor. The monitor analysed reflections from the eye to determine where the study participants were looking. The participants then rated either the age or the fatigue level of the people in the photos.</p>
<p>When gauging the age of people, the students looked at the eye region 46% of the time, followed by the nose (19%), forehead (13%) and the area between the eyebrows (11%).</p>
<p>The numbers were similar when the students were trying to figure out how tired the people in the photos appeared.</p>
<p>The study findings were published in the journal <em>Ophthalmology</em>.</p>
<p><strong>Why eyes reveal so much?</strong><br />
The eye region makes up just 21% of the face, according to the study authors. So why does it seem to reveal so much?</p>
<p>&#8220;There is a lot going on around the eyes,&#8221; Rubin said. For one thing, eyelids are the thinnest skin on the body, making swelling more prominent. Also, he said, the eye region undergoes many changes during ageing and suffers from significant sun damage.</p>
<p>&#8220;Beauty is not only in the eye of the beholder,&#8221; Rubin said. &#8220;It&#8217;s also in the eye of the beholdee.&#8221;</p>
<p>Timothy J. Slattery, a postdoctoral fellow in psychology at the University of California, US, said the study findings reflect those of other research that has found that people fixate on the eyes when they look at photos of faces. – (Randy Dotinga/HealthDay News, February 2009)</p>
]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=24</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Bind DataTable to a Repeater control!?</title>
		<link>http://wind-flowers.net/?p=20</link>
		<comments>http://wind-flowers.net/?p=20#comments</comments>
		<pubDate>Mon, 30 Mar 2009 08:36:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asp.net]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=20</guid>
		<description><![CDATA[
    /// exec sql get DataTable
    /// &#60;/summary&#62;
    /// &#60;param name=&#8221;SqlStr&#8221;&#62;SQl: for example: &#8220;SELECT * FROM customers&#8221; &#60;/param&#62;
    /// &#60;returns&#62;DataTable&#60;/returns&#62;
    public static DataTable OleDBDataDataTable(string SqlStr)
    {
        string connectionString=New OleDbConnection(&#8220;Provider=Microsoft.Jet.OLEDB.4.0;data source=&#8221; &#38; server.mappath(&#8220;/db/northwind.mdb&#8221;))
        SqlConnection CN = new SqlConnection(connectionString);
        DataSet ds = new DataSet();
        try
        {
 


            CN.Open();
            SqlDataAdapter da = new SqlDataAdapter(SqlStr, connectionString);
            da.Fill(ds);
            CN.Close();
            return ds.Tables[0];
        }
        catch [...]]]></description>
			<content:encoded><![CDATA[<div><span style="font-family: Georgia; color: #000000; font-size: x-small;"><span style="font-family: Georgia; color: #000000; font-size: x-small;"><br />
    /// exec sql get DataTable<br />
    /// &lt;/summary&gt;<br />
    /// &lt;param name=&#8221;SqlStr&#8221;&gt;SQl: for example: <span style="font-family: Verdana; color: #0000ff;">&#8220;SELECT * FROM customers&#8221; </span>&lt;/param&gt;<br />
    /// &lt;returns&gt;DataTable&lt;/returns&gt;<br />
<span style="color: #0000ff;">    public static DataTable OleDBDataDataTable(string SqlStr)<br />
    {<br />
        string <span style="color: #0000ff;"><span style="color: #0000ff;">connectionString</span>=New OleDbConnection(&#8220;Provider=Microsoft.Jet.OLEDB.4.0;data source=&#8221; &amp; server.mappath(&#8220;/db/northwind.mdb&#8221;))</span><br />
        SqlConnection CN = new SqlConnection(connectionString);<br />
        DataSet ds = new DataSet();<br />
        try<br />
        {</span></span></span></div>
<p><span style="font-family: Georgia; color: #000000; font-size: x-small;"><span style="font-family: Georgia; color: #000000; font-size: x-small;"> </p>
<p></span></span></p>
<div><span style="font-family: Georgia; color: #000000; font-size: x-small;"><br />
<span style="color: #0000ff;">            CN.Open();<br />
            SqlDataAdapter da = new SqlDataAdapter(SqlStr, connectionString);<br />
            da.Fill(ds);<br />
            CN.Close();<br />
            return ds.Tables[0];<br />
        }<br />
        catch (Exception ex)<br />
        { return ds.Tables[0]; }<br />
    }</span></span></div>
<p><span style="font-family: Georgia; color: #000000; font-size: x-small;"><span style="font-family: Verdana; color: #0000ff;">.CS:<br />
<span style="color: #0000ff;">customers.DataSource=<span style="color: #000000;"><span style="color: #0000ff;">OleDBDataDataTable</span>(<span style="color: #0000ff;">&#8220;SELECT * FROM customers&#8221;</span>)</span><br />
customers.DataBind()</span></span></p>
<p>.aspx:</p>
<div><span style="font-family: Verdana;">&lt;html&gt;<br />
&lt;body&gt;</span></div>
<p><span style="font-family: Verdana;">&lt;form runat=&#8221;server&#8221;&gt;<br />
&lt;asp:Repeater id=&#8221;customers&#8221; runat=&#8221;server&#8221;&gt;</p>
<p>&lt;HeaderTemplate&gt;<br />
&lt;table border=&#8221;1&#8243; width=&#8221;100%&#8221;&gt;<br />
&lt;tr bgcolor=&#8221;#b0c4de&#8221;&gt;<br />
&lt;th&gt;Companyname&lt;/th&gt;<br />
&lt;th&gt;Contactname&lt;/th&gt;<br />
&lt;th&gt;Address&lt;/th&gt;<br />
&lt;th&gt;City&lt;/th&gt;<br />
&lt;/tr&gt;<br />
&lt;/HeaderTemplate&gt;</p>
<p>&lt;ItemTemplate&gt;<br />
&lt;tr bgcolor=&#8221;#f0f0f0&#8243;&gt;<br />
&lt;td&gt;<span style="color: #ff0000;">&lt;%#Container.DataItem(&#8220;companyname&#8221;)%&gt;</span> &lt;/td&gt;<br />
&lt;td&gt;<span style="color: #ff0000;">&lt;%#Container.DataItem(&#8220;contactname&#8221;)%&gt;</span> &lt;/td&gt;<br />
&lt;td&gt;<span style="color: #ff0000;">&lt;%#Container.DataItem(&#8220;address&#8221;)%&gt;</span> &lt;/td&gt;<br />
&lt;td&gt;<span style="color: #ff0000;">&lt;%#Container.DataItem(&#8220;city&#8221;)%&gt;</span> &lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/ItemTemplate&gt;</p>
<p>&lt;FooterTemplate&gt;<br />
&lt;/table&gt;<br />
&lt;/FooterTemplate&gt;</p>
<p>&lt;/asp:Repeater&gt;<br />
&lt;/form&gt;</p>
<p>&lt;/body&gt;<br />
&lt;/html&gt;</p>
<p></span></p>
<div><span style="font-family: Georgia; color: #000000; font-size: x-small;"> </span></div>
<p><span style="font-family: Georgia; color: #000000; font-size: x-small;"> </p>
<p></span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=20</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Uisng Jquery select DataGrid CheckBox Multiple Rows Column</title>
		<link>http://wind-flowers.net/?p=17</link>
		<comments>http://wind-flowers.net/?p=17#comments</comments>
		<pubDate>Mon, 30 Mar 2009 07:38:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asp.net]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=17</guid>
		<description><![CDATA[Multiple Rows selection in a web is a requirement. and in asp.net web you can using checkbox(runnet-server) control,A checkbox column must of course be accompanied with a CheckAll / UnCheckAll functionality.
we can ussing Jquery select CheckBox Multiple Rows Column.
here is the code:
&#60;script src="js/jquery-1.3.2.min.js" type="text/javascript"&#62;&#60;/script&#62;&#60;script type="text/javascript"&#62;
&#60;!--
    $(function(){
      $("#chk").click(function(){
                if($(this).attr(&#8220;checked&#8221;)==true){
                    $(&#8220;input[name='chk_list']&#8220;).each(function(){
                        $(this).attr(&#8220;checked&#8221;,true);
                    });
                }
                else{
                   $(&#8220;input[name='chk_list']&#8220;).each(function(){
                        $(this).attr(&#8220;checked&#8221;,false);
                    });
                }
            [...]]]></description>
			<content:encoded><![CDATA[<p>Multiple Rows selection in a web is a requirement. and in asp.net web you can using checkbox(runnet-server) control,A checkbox column must of course be accompanied with a <strong>CheckAll / UnCheckAll</strong> functionality.</p>
<p>we can ussing Jquery select CheckBox Multiple Rows Column.<br />
here is the code:</p>
<p><strong><code>&lt;script src="js/jquery-1.3.2.min.js" type="text/javascript"&gt;&lt;/script&gt;&lt;script type="text/javascript"&gt;<br />
&lt;!--<br />
    $(function(){<br />
      $("#<span style="color: #ff0000;">chk</span>").click(function(){</code><br />
                if($(this).attr(&#8220;checked&#8221;)==true){<br />
                    $(&#8220;input[name=<span style="color: #ff0000;">'chk_list'</span>]&#8220;).each(function(){<br />
                        $(this).attr(&#8220;checked&#8221;,true);<br />
                    });<br />
                }<br />
                else{<br />
                   $(&#8220;input[name=<span style="color: #ff0000;">'chk_list'</span>]&#8220;).each(function(){<br />
                        $(this).attr(&#8220;checked&#8221;,false);<br />
                    });<br />
                }<br />
            });<br />
        });<br />
     });<br />
// &#8211;&gt;&lt;/script&gt;</strong></p>
<p><code><br />
<strong>&lt;asp:TemplateColumn&gt;<br />
          &lt;HeaderTemplate&gt;<br />
                    &lt;input type=checkbox id="<span style="color: #ff00ff;">chk</span>" /&gt;check all<br />
                &lt;/HeaderTemplate&gt;<br />
       &lt;HeaderStyle Width="10%" CssClass="zi1B" BackColor="#EFEFEF" Height="22"&gt;&lt;/HeaderStyle&gt;<br />
       &lt;ItemTemplate&gt;<br />
        &lt;asp:CheckBox  id="<span style="color: #ff00ff;">chk_list</span>" name="chk_list" Runat="server"  value='&lt;%# DataBinder.Eval(Container.DataItem, "SchemeID") %&gt;'&gt;&lt;/asp:CheckBox&gt;<br />
       &lt;/ItemTemplate&gt;<br />
       &lt;ItemStyle HorizontalAlign="Center" /&gt;<br />
      &lt;/asp:TemplateColumn&gt;</strong></p>
<p>you must pay attention the red color words.</p>
<p></code></p>
]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=17</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Find a good website:Over 60 Free Controls from DevExpress</title>
		<link>http://wind-flowers.net/?p=15</link>
		<comments>http://wind-flowers.net/?p=15#comments</comments>
		<pubDate>Mon, 30 Mar 2009 07:03:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asp.net]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=15</guid>
		<description><![CDATA[it is a good website.
here:http://devexpress.com/Products/Free/WebRegistration60/
]]></description>
			<content:encoded><![CDATA[<p>it is a good website.</p>
<p>here:http://devexpress.com/Products/Free/WebRegistration60/</p>
]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=15</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The New York Times on Gossip Girl</title>
		<link>http://wind-flowers.net/?p=12</link>
		<comments>http://wind-flowers.net/?p=12#comments</comments>
		<pubDate>Sun, 29 Mar 2009 02:09:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Picture]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=12</guid>
		<description><![CDATA[
For adults, romances are variable, and friendship is the constant.
Privileged Youth reverses the equation: Love affairs are constant, and it&#8217;s the friendships that vary. And matter most.
That is the essence of Gossip Girl, the semi-satirical portrait of power and privilege in the private schools and penthouses of New York&#8217;s ultra rich, the New York Times [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.gossipgirlinsider.com/images/gallery/gossip-girl-girl-fest_429x280.jpg" alt="The New York Times on Gossip Girl" /></p>
<p>For adults, romances are variable, and friendship is the constant.</p>
<p>Privileged Youth reverses the equation: Love affairs are constant, and it&#8217;s the friendships that vary. And matter most.</p>
<p>That is the essence of Gossip Girl, the semi-satirical portrait of power and privilege in the private schools and penthouses of New York&#8217;s ultra rich, the New York Times says in a think piece.</p>
<p>It&#8217;s often said that Hollywood is &#8220;high school with money.&#8221; On this glossy, glamour-soaked CW series, high school is better than Hollywood.</p>
<p>Gossip Girl, which had its Season 1 finale this past Monday, explores the un-navigability of friendships. Female bonding is punctuated by the joy and disappointments of dating, but the ruling passion is power.</p>
<p>The pride that comes with connecting with one&#8217;s ilk and asserting control, as well as the scorching pain of rejection and ridicule.</p>
<p>Sex is easy; it&#8217;s the cliques that take time and solicitude.</p>
<p>&#8220;You can tell us anything,&#8221; Blair Waldorf coos to a distraught Serena van der Woodsen, hung over and harboring a shameful secret.</p>
<p>&#8220;We&#8217;ve seen you with vomit in your hair, making out with investment bankers in the men&#8217;s room at P. J. Clarke&#8217;s.&#8221;</p>
<p>In a culture obsessed with youth, money and appearance, 16 is the new 30, and teenage girls&#8217; discontent about boys and clothes and one another has resonance even for older audiences.</p>
<p>Parents fret that youngsters grow up too fast; children complain that grown-ups refuse to grow old.</p>
<p>Gossip Girl goes further than most shows in depicting the excesses of the rich and underage (in this fantasy teenagers are never carded), but most of all it represents the next evolutionary stage of girl power TV after Sex and the City.</p>
<p>That pioneering HBO series, and the movie version that comes out later this month, celebrates girlish women who joined forces  &#8220;Us against the world&#8221;  in the pursuit of success and happiness.</p>
<p>Gossip Girl focuses on worldly little girls who join forces against one another. The series, along with such like-minded shows as the MTV semi-reality show The Hills and a cautionary senior edition, The Real Housewives of New York City are focused on friends, and most of all on frenemies.</p>
<p>They are so post-femininist that they circle back not just to Mean Girls, but to the pre-Friedan era of Clare Boothe Luce and Rona Jaffe.</p>
<p>It&#8217;s not actually a step backward of course; it&#8217;s more of a mischievous sidestep, a zig after many years of networks&#8217; zagging to catch up with Sex and the City.</p>
<p>That series&#8217; selling point was not just sex and clothes. It offered the charisma of four stylish, sexy women taking on Manhattan like D&#8217;Artagnan and the Three Musketeers.</p>
<p>None of the imitations, including Cashmere Mafia, a flop on ABC, and NBC&#8217;s slightly more successful version, Lipstick Jungle adequately captured the tone of the original.</p>
]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=12</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Israeli Bond Girl: It’s Like the Real Thing</title>
		<link>http://wind-flowers.net/?p=8</link>
		<comments>http://wind-flowers.net/?p=8#comments</comments>
		<pubDate>Sun, 29 Mar 2009 01:58:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Picture]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=8</guid>
		<description><![CDATA[
Hunt for Israeli Bond girl is on
Producers of the next Bond movie are coming to Israel to search for a dark-skinned beauty
Amir Kaminer, Yoav Birenberg
The producers of the next Bond film are now looking for the next Bond girl to star in the 22nd film in the series. This time around, their search has also [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.isrealli.org/wp-content/uploads/bond-girl.jpg" alt="Israeli Bond Girl: It’s Like the Real Thing" /><br />
Hunt for Israeli Bond girl is on</p>
<p>Producers of the next Bond movie are coming to Israel to search for a dark-skinned beauty</p>
<p>Amir Kaminer, Yoav Birenberg</p>
<p>The producers of the next Bond film are now looking for the next Bond girl to star in the 22nd film in the series. This time around, their search has also brought them to Israel.</p>
<p>The lucky girl will star alongside Daniel Craig, the current 007.</p>
<p>Unfortunately, the character of the new girl in the script will not be Israeli but Spanish, yet according to the producers a dark-skinned Israeli girl could also fit the role.</p>
<p>The hunt for the right girl is spanning the entire Mediterranean basin, and producers of the series are now asking Israeli casting agents to send photographs and resumes of Israeli beauties with good acting skills. Another requirement is perfect command of the English language.</p>
<p>The veteran casting director Bruria Elback will be in charge of Israeli casting, which is set to commence shortly. “Auditions for the James Bond movie are being held in many countries and to my delight, we too are now part of it,” Elbeck said.</p>
<p>According to Elback the “candidates for the part have to be of international standard, stunning and dark- skinned. They are definitely not looking for blonds here, but for a Latin look.”</p>
<p>The film which still lacks a final name will primarily be shot on location in Italy, and will be directed by Mark Forrester. Paul Haggis who wrote the script for “Casino Royale”, which enjoyed the highest box office sales, is also among the film makers.</p>
<p>The producers of the 22nd Bond film will soon be arriving in Israel. Since Ursula Andress emerged from the water in a white bikini and a hunting knife in “Dr. No” (1964), the first film in the series, the Bond girls have a place of honor in the Bond ritual. Another well-known Bond girl is Halle Berry.</p>
<p>Israeli actresses Ayelet Zorer, Sarai Givati and other Israeli stars should get prepared.</p>
]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=8</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title></title>
		<link>http://wind-flowers.net/?p=1</link>
		<comments>http://wind-flowers.net/?p=1#comments</comments>
		<pubDate>Fri, 27 Mar 2009 15:22:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Movies]]></category>

		<guid isPermaLink="false">http://wind-flowers.net/?p=1</guid>
		<description><![CDATA[ Stephenie Meyer&#8217;s vampires are not your parents&#8217; vampires. They walk around in daylight. They sparkle like diamonds in the sunlight. And they love baseball. Meyer&#8217;s young love vampire series of novels became a veritable pop phenomenon among teen girls (and their mothers), and the very faithful screen adaptation was an unqualified hit with the fans. [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignnone" style="width: 513px"><img title="Twilight " src="http://entimg.msn.com/i/GrandPrix_Movies/DVDGuide/twilight_503.jpg" alt="Twilight " width="503" height="192" /><p class="wp-caption-text">Twilight </p></div>
<p> Stephenie Meyer&#8217;s vampires are not your parents&#8217; vampires. They walk around in daylight. They sparkle like diamonds in the sunlight. And they love baseball. Meyer&#8217;s young love vampire series of novels became a veritable pop phenomenon among teen girls (and their mothers), and the very faithful screen adaptation was an unqualified hit with the fans. Kristen Stewart is the human damsel Bella Swan, who is uncommonly, instinctively, irrationally attracted to the brooding Edward Cullen (Robert Pattinson), a pale, aloof high school dreamboat in a reclusive vampire family that has vowed to live in harmony with humans. Director Catherine Hardwicke celebrates the swoony emotional intensity of romantic delirium &#8211; this is one heroine who is literally swept off her feet &#8211; and delivers the goods when the feral vampire hunters (led by Cam Gigandet) target Bella to rouse the Cullens into battle.</p>
<p>Features an amiable but lazy commentary by Hardwicke, Pattinson and Stewart, who have a tendency to go on about little stories from the set and behind-the-scenes vignettes, as if struggling for something to say. Also features five extended scenes and five deleted scenes (with introductions by the director), and the 54-minute documentary &#8220;The Adventure Begins: The Journey From Page to Screen,&#8221; which isn&#8217;t all that well organized but does feature a lot of behind-the-scenes footage and numerous interview clips with Meyer (in addition to the cast and crew). Also includes three music videos and a short featurette from the cast&#8217;s appearance at Comic-Con, notable mostly for the nonstop screaming by the fans.</p>
]]></content:encoded>
			<wfw:commentRss>http://wind-flowers.net/?feed=rss2&amp;p=1</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
