﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>csharp</title><link>http://www.gentlesight.com/csharp</link><description /><language>fa</language><generator>GentleSight.com</generator><copyright>(c) 2007, GentlBlog. All rights reserved.</copyright><lastBuildDate>2007/11/07 06:55:00 ق.ظ</lastBuildDate><item><title>Changing the color and style of scrollbar</title><link>http://www.gentlesight.com/csharp/post/?189</link><description>scrollbar-face-color:&amp;nbsp;#d6dff7;&lt;br /&gt;
scrollbar-arrow-color:&amp;nbsp;#000000;&lt;br /&gt;
scrollbar-track-color:&amp;nbsp;#c6cfe7;&lt;br /&gt;
scrollbar-shadow-color:&amp;nbsp;#000000;&lt;br /&gt;
scrollbar-highlight-color:&amp;nbsp;#d6df7;&lt;br /&gt;
scrollbar-3dlight-color:&amp;nbsp;#d6dff7;&lt;br /&gt;
scrollbar-darkshadow-Color:&amp;nbsp;#d6dff7;</description><pubDate>2007/11/07 06:55:00 ق.ظ</pubDate><comments>http://www.gentlesight.com/Comments.aspx?PostID=189</comments><creator>morteza</creator><guid>http://www.gentlesight.com/csharp/post/?189</guid></item><item><title>Showing Local Time Using JavaScript</title><link>http://www.gentlesight.com/csharp/post/?188</link><description>function&amp;nbsp;LocalTime()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var&amp;nbsp;curDateTime&amp;nbsp;=&amp;nbsp;new&amp;nbsp;Date()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var&amp;nbsp;curHour&amp;nbsp;=&amp;nbsp;curDateTime.getHours()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var&amp;nbsp;curMin&amp;nbsp;=&amp;nbsp;curDateTime.getMinutes()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var&amp;nbsp;curSec&amp;nbsp;=&amp;nbsp;curDateTime.getSeconds()&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var&amp;nbsp;curTime&amp;nbsp;=&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;((curHour&amp;nbsp;&amp;lt;&amp;nbsp;10)&amp;nbsp;?&amp;nbsp;&amp;quot;0&amp;quot;&amp;nbsp;:&amp;nbsp;&amp;quot;&amp;quot;)&amp;nbsp;+&amp;nbsp;curHour&amp;nbsp;+&amp;nbsp;&amp;quot;:&amp;quot;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;+&amp;nbsp;((curMin&amp;nbsp;&amp;lt;&amp;nbsp;10)&amp;nbsp;?&amp;nbsp;&amp;quot;0&amp;quot;&amp;nbsp;:&amp;nbsp;&amp;quot;&amp;quot;)&amp;nbsp;+&amp;nbsp;curMin&amp;nbsp;+&amp;nbsp;&amp;quot;:&amp;quot;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;+&amp;nbsp;((curSec&amp;nbsp;&amp;lt;&amp;nbsp;10)&amp;nbsp;?&amp;nbsp;&amp;quot;0&amp;quot;&amp;nbsp;:&amp;nbsp;&amp;quot;&amp;quot;)&amp;nbsp;+&amp;nbsp;curSec&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return&amp;nbsp;curTime;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function&amp;nbsp;ShowLocalTime()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;document.getElementById(&amp;quot;SpanTime&amp;quot;).innerHTML&amp;nbsp;=&amp;nbsp;LocalTime();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;setTimeout(&amp;quot;ShowLocalTime()&amp;quot;,1000);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;quot;SpanTime&amp;quot;&amp;nbsp;is&amp;nbsp;the&amp;nbsp;ID&amp;nbsp;of&amp;nbsp;the&amp;nbsp;element&amp;nbsp;that&amp;nbsp;you&amp;nbsp;want&amp;nbsp;to&amp;nbsp;show&amp;nbsp;time&amp;nbsp;on&amp;nbsp;it.&amp;nbsp;I&amp;nbsp;used&amp;nbsp;a&amp;nbsp;span.</description><pubDate>2007/11/07 06:50:00 ق.ظ</pubDate><comments>http://www.gentlesight.com/Comments.aspx?PostID=188</comments><creator>morteza</creator><guid>http://www.gentlesight.com/csharp/post/?188</guid></item><item><title>Applying some rules to all types of HTML objects</title><link>http://www.gentlesight.com/csharp/post/?187</link><description>&lt;br /&gt;
*&lt;br /&gt;
{&lt;br /&gt;
margin:0;&lt;br /&gt;
}</description><pubDate>2007/11/07 06:12:00 ق.ظ</pubDate><comments>http://www.gentlesight.com/Comments.aspx?PostID=187</comments><creator>morteza</creator><guid>http://www.gentlesight.com/csharp/post/?187</guid></item><item><title>Importing CSS File</title><link>http://www.gentlesight.com/csharp/post/?186</link><description>You can import css rules from another css file:&lt;br /&gt;
&lt;br /&gt;
@import url(base.css);</description><pubDate>2007/11/05 03:49:00 ب.ظ</pubDate><comments>http://www.gentlesight.com/Comments.aspx?PostID=186</comments><creator>morteza</creator><guid>http://www.gentlesight.com/csharp/post/?186</guid></item><item><title>Button Background Color</title><link>http://www.gentlesight.com/csharp/post/?183</link><description>Try this css rule to set a background color for all buttons in your website:&lt;br /&gt;
&lt;br /&gt;
INPUT &lt;br /&gt;
{ &lt;br /&gt;
color: expression(this.type==&amp;quot;button&amp;quot;?'red':''); &lt;br /&gt;
}</description><pubDate>2007/11/04 09:02:00 ق.ظ</pubDate><comments>http://www.gentlesight.com/Comments.aspx?PostID=183</comments><creator>morteza</creator><guid>http://www.gentlesight.com/csharp/post/?183</guid></item><item><title>unsigned char in C#?</title><link>http://www.gentlesight.com/csharp/post/?178</link><description>unsigned char is byte in C#</description><pubDate>2007/10/17 02:55:00 ب.ظ</pubDate><comments>http://www.gentlesight.com/Comments.aspx?PostID=178</comments><creator>morteza</creator><guid>http://www.gentlesight.com/csharp/post/?178</guid></item><item><title>Defining index on SQL Server database and Web Applications performance</title><link>http://www.gentlesight.com/csharp/post/?176</link><description>If you are using MS SQL Server as your database in .NET Applicaions, do not forget to define Index on data fileds that are used frequently as the key field within the SQL commands. This will increase speed of your SQL Queries or Stored procedures and you will gain more overall speed in your application; Specially when there are many number of records in some tables and your going to join them within SQL commands and filtering the result dataset based on some fields values.</description><pubDate>2007/09/17 10:33:00 ق.ظ</pubDate><comments>http://www.gentlesight.com/Comments.aspx?PostID=176</comments><creator>morteza</creator><guid>http://www.gentlesight.com/csharp/post/?176</guid></item><item><title>Worker processes of application pools and Applications performance</title><link>http://www.gentlesight.com/csharp/post/?175</link><description>One of the most important settings that can boost your web application performance is setting the number of worker processes to something bigger than 1.&lt;br /&gt;
But remember that you can not set it to any number that you like! setting to value more than 5 must be done very carefully. You may run out of RAM or may need more CPU speed! Usually setting the value to a number between 3 and 5 is good.</description><pubDate>2007/09/17 10:27:00 ق.ظ</pubDate><comments>http://www.gentlesight.com/Comments.aspx?PostID=175</comments><creator>morteza</creator><guid>http://www.gentlesight.com/csharp/post/?175</guid></item><item><title>Sending email using Google account and System.Net.Mail</title><link>http://www.gentlesight.com/csharp/post/?174</link><description>MailMessage mailMsg = new MailMessage();&lt;br /&gt;
&lt;br /&gt;
mailMsg.From = new MailAddress(&amp;quot;youremail@gmail.com&amp;quot;, &amp;quot;DisplayName&amp;quot;);&lt;br /&gt;
mailMsg.To.Add(new MailAddress(&amp;quot;destination@gmail.com&amp;quot;));&lt;br /&gt;
mailMsg.Subject = string.Format(&amp;quot;Subject&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
mailMsg.Body = &amp;quot;&amp;lt;html&amp;gt;&amp;lt;body&amp;gt;Hi&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&amp;quot;;&lt;br /&gt;
mailMsg.IsBodyHtml = true;&lt;br /&gt;
&lt;br /&gt;
mailMsg.BodyEncoding = System.Text.Encoding.Unicode;&lt;br /&gt;
mailMsg.Priority = MailPriority.High;&lt;br /&gt;
&lt;br /&gt;
System.Net.Mail.SmtpClient smtpClient = new SmtpClient(&amp;quot;smtp.gmail.com&amp;quot;, 587);&lt;br /&gt;
smtpClient.DeliveryMethod = SmtpDeliveryMethod.Network;&lt;br /&gt;
smtpClient.Credentials = new System.Net.NetworkCredential(&amp;quot;your google account without @gmail.com&amp;quot;, &amp;quot;password&amp;quot;);&lt;br /&gt;
smtpClient.EnableSsl = true;&lt;br /&gt;
&lt;br /&gt;
smtpClient.Send(mailMsg);</description><pubDate>2007/09/17 10:19:00 ق.ظ</pubDate><comments>http://www.gentlesight.com/Comments.aspx?PostID=174</comments><creator>morteza</creator><guid>http://www.gentlesight.com/csharp/post/?174</guid></item><item><title>Problem with LIKE clause and MS Access database</title><link>http://www.gentlesight.com/csharp/post/?173</link><description>If you have .NET dataset and MS Access database use % instead of * in your LIKE cluase. When you wan to run the SQL command within the microsoft access environment you must use * but using * while you are running the query in your .NET application causes exception.</description><pubDate>2007/09/17 10:01:00 ق.ظ</pubDate><comments>http://www.gentlesight.com/Comments.aspx?PostID=173</comments><creator>morteza</creator><guid>http://www.gentlesight.com/csharp/post/?173</guid></item></channel></rss>