<?xml version="1.0" encoding="utf-8"?>
<feed xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xml:lang="en-us" xmlns="http://www.w3.org/2005/Atom">
  <title>امیر میرکمالی</title>
  <link rel="alternate" type="text/html" href="http://mirkamali.ir/" />
  <link rel="self" href="http://mirkamali.ir/SyndicationService.asmx/GetAtom" />
  <icon>favicon.ico</icon>
  <updated>2011-12-04T11:51:57.490875+03:30</updated>
  <author>
    <name>Amir Mirkamali</name>
  </author>
  <subtitle>Amir Mirkamali</subtitle>
  <id>http://mirkamali.ir/</id>
  <generator uri="http://www.dasblog.net" version="2.0.7180.0">DasBlog</generator>
  <entry>
    <title>Change All string fields collation</title>
    <link rel="alternate" type="text/html" href="http://mirkamali.ir/2011/12/04/ChangeAllStringFieldsCollation.aspx" />
    <id>http://mirkamali.ir/PermaLink,guid,5179f9ed-af1b-4417-9957-daf948a37ee3.aspx</id>
    <published>2011-12-04T11:48:44.803+03:30</published>
    <updated>2011-12-04T11:51:57.490875+03:30</updated>
    <category term="SQL Server" label="SQL Server" scheme="http://mirkamali.ir/CategoryView,category,SQL%2BServer.aspx" />
    <category term="Troubleshooting" label="Troubleshooting" scheme="http://mirkamali.ir/CategoryView,category,Troubleshooting.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <pre style="BACKGROUND: #ffffff; COLOR: #000000">
          <span style="COLOR: #800000; FONT-WEIGHT: bold">declare</span>
          <span style="COLOR: #797997">@NewCollation</span>
          <span style="COLOR: #800000; FONT-WEIGHT: bold">varchar</span>
          <span style="COLOR: #808030">(</span>
          <span style="COLOR: #008c00">255</span>
          <span style="COLOR: #808030">)</span>
          <span style="COLOR: #808030">,</span>
          <span style="COLOR: #797997">@Stmt</span> nvarchar<span style="COLOR: #808030">(</span><span style="COLOR: #008c00">4000</span><span style="COLOR: #808030">)</span><span style="COLOR: #808030">,</span><span style="COLOR: #797997">@DBName</span> sysname <span style="COLOR: #800000; FONT-WEIGHT: bold">set</span><span style="COLOR: #797997">@NewCollation</span><span style="COLOR: #808030">=</span><span style="COLOR: #0000e6">'SQL_Latin1_General_CP1256_CI_AS'</span><span style="COLOR: #696969">--
change this to the collation that you need</span><span style="COLOR: #800000; FONT-WEIGHT: bold">set</span><span style="COLOR: #797997">@DBName</span><span style="COLOR: #808030">=</span> DB_NAME<span style="COLOR: #808030">(</span><span style="COLOR: #808030">)</span><span style="COLOR: #800000; FONT-WEIGHT: bold">declare</span><span style="COLOR: #797997">@CName</span><span style="COLOR: #800000; FONT-WEIGHT: bold">varchar</span><span style="COLOR: #808030">(</span><span style="COLOR: #008c00">255</span><span style="COLOR: #808030">)</span><span style="COLOR: #808030">,</span><span style="COLOR: #797997">@TName</span> sysname <span style="COLOR: #808030">,</span><span style="COLOR: #797997">@OName</span> sysname <span style="COLOR: #808030">,</span><span style="COLOR: #797997">@Sql</span><span style="COLOR: #800000; FONT-WEIGHT: bold">varchar</span><span style="COLOR: #808030">(</span><span style="COLOR: #008c00">8000</span><span style="COLOR: #808030">)</span><span style="COLOR: #808030">,</span><span style="COLOR: #797997">@Size</span><span style="COLOR: #800000; FONT-WEIGHT: bold">int</span><span style="COLOR: #808030">,</span><span style="COLOR: #797997">@Status</span> tinyint <span style="COLOR: #808030">,</span><span style="COLOR: #797997">@Colorder</span><span style="COLOR: #800000; FONT-WEIGHT: bold">int</span><span style="COLOR: #800000; FONT-WEIGHT: bold">declare</span> curcolumns <span style="COLOR: #800000; FONT-WEIGHT: bold">cursor</span><span style="COLOR: #800000; FONT-WEIGHT: bold">read_only</span><span style="COLOR: #800000; FONT-WEIGHT: bold">forward_only</span><span style="COLOR: #800000; FONT-WEIGHT: bold">local</span><span style="COLOR: #800000; FONT-WEIGHT: bold">for</span><span style="COLOR: #800000; FONT-WEIGHT: bold">select</span><span style="COLOR: #bb7977; FONT-WEIGHT: bold">QUOTENAME</span><span style="COLOR: #808030">(</span><span style="COLOR: #800000; FONT-WEIGHT: bold">C</span><span style="COLOR: #808030">.</span>Name<span style="COLOR: #808030">)</span><span style="COLOR: #808030">,</span>T<span style="COLOR: #808030">.</span>Name <span style="COLOR: #808030">,</span><span style="COLOR: #bb7977; FONT-WEIGHT: bold">QUOTENAME</span><span style="COLOR: #808030">(</span>U<span style="COLOR: #808030">.</span>Name<span style="COLOR: #808030">)</span><span style="COLOR: #808030">+</span><span style="COLOR: #0000e6">'.'</span><span style="COLOR: #808030">+</span><span style="COLOR: #bb7977; FONT-WEIGHT: bold">QUOTENAME</span><span style="COLOR: #808030">(</span>O<span style="COLOR: #808030">.</span>Name<span style="COLOR: #808030">)</span><span style="COLOR: #808030">,</span><span style="COLOR: #800000; FONT-WEIGHT: bold">C</span><span style="COLOR: #808030">.</span>Prec <span style="COLOR: #808030">,</span><span style="COLOR: #800000; FONT-WEIGHT: bold">C</span><span style="COLOR: #808030">.</span>isnullable <span style="COLOR: #808030">,</span><span style="COLOR: #800000; FONT-WEIGHT: bold">C</span><span style="COLOR: #808030">.</span>colorder <span style="COLOR: #800000; FONT-WEIGHT: bold">from</span> syscolumns <span style="COLOR: #800000; FONT-WEIGHT: bold">C</span><span style="COLOR: #800000; FONT-WEIGHT: bold">inner</span><span style="COLOR: #800000; FONT-WEIGHT: bold">join</span> systypes
T <span style="COLOR: #800000; FONT-WEIGHT: bold">on</span><span style="COLOR: #800000; FONT-WEIGHT: bold">C</span><span style="COLOR: #808030">.</span>xtype<span style="COLOR: #808030">=</span>T<span style="COLOR: #808030">.</span>xtype <span style="COLOR: #800000; FONT-WEIGHT: bold">inner</span><span style="COLOR: #800000; FONT-WEIGHT: bold">join</span> sysobjects
O <span style="COLOR: #800000; FONT-WEIGHT: bold">on</span><span style="COLOR: #800000; FONT-WEIGHT: bold">C</span><span style="COLOR: #808030">.</span><span style="COLOR: #800000; FONT-WEIGHT: bold">ID</span><span style="COLOR: #808030">=</span>O<span style="COLOR: #808030">.</span><span style="COLOR: #800000; FONT-WEIGHT: bold">ID</span><span style="COLOR: #800000; FONT-WEIGHT: bold">inner</span><span style="COLOR: #800000; FONT-WEIGHT: bold">join</span> sysusers
u <span style="COLOR: #800000; FONT-WEIGHT: bold">on</span> O<span style="COLOR: #808030">.</span><span style="COLOR: #bb7977; FONT-WEIGHT: bold">uid</span><span style="COLOR: #808030">=</span> u<span style="COLOR: #808030">.</span><span style="COLOR: #bb7977; FONT-WEIGHT: bold">uid</span><span style="COLOR: #800000; FONT-WEIGHT: bold">where</span> T<span style="COLOR: #808030">.</span>Name <span style="COLOR: #800000; FONT-WEIGHT: bold">in</span><span style="COLOR: #808030">(</span><span style="COLOR: #0000e6">'varchar'</span><span style="COLOR: #808030">,</span><span style="COLOR: #0000e6">'char'</span><span style="COLOR: #808030">,</span><span style="COLOR: #0000e6">'text'</span><span style="COLOR: #808030">,</span><span style="COLOR: #0000e6">'nchar'</span><span style="COLOR: #808030">,</span><span style="COLOR: #0000e6">'nvarchar'</span><span style="COLOR: #808030">,</span><span style="COLOR: #0000e6">'ntext'</span><span style="COLOR: #808030">)</span><span style="COLOR: #800000; FONT-WEIGHT: bold">and</span> O<span style="COLOR: #808030">.</span>xtype <span style="COLOR: #800000; FONT-WEIGHT: bold">in</span><span style="COLOR: #808030">(</span><span style="COLOR: #0000e6">'U'</span><span style="COLOR: #808030">)</span><span style="COLOR: #800000; FONT-WEIGHT: bold">and</span><span style="COLOR: #800000; FONT-WEIGHT: bold">C</span><span style="COLOR: #808030">.</span><span style="COLOR: #800000; FONT-WEIGHT: bold">collation</span><span style="COLOR: #808030">!</span><span style="COLOR: #808030">=</span><span style="COLOR: #797997">@NewCollation</span><span style="COLOR: #800000; FONT-WEIGHT: bold">and</span><span style="COLOR: #bb7977; FONT-WEIGHT: bold">objectProperty</span><span style="COLOR: #808030">(</span>O<span style="COLOR: #808030">.</span><span style="COLOR: #800000; FONT-WEIGHT: bold">ID</span><span style="COLOR: #808030">,</span><span style="COLOR: #0000e6">'ismsshipped'</span><span style="COLOR: #808030">)</span><span style="COLOR: #808030">=</span><span style="COLOR: #008c00">0</span><span style="COLOR: #800000; FONT-WEIGHT: bold">order</span><span style="COLOR: #800000; FONT-WEIGHT: bold">by</span><span style="COLOR: #008c00">3</span><span style="COLOR: #808030">,</span><span style="COLOR: #008c00">1</span><span style="COLOR: #800000; FONT-WEIGHT: bold">open</span> curcolumns <span style="COLOR: #800000; FONT-WEIGHT: bold">SET</span> XACT_ABORT <span style="COLOR: #800000; FONT-WEIGHT: bold">ON</span><span style="COLOR: #800000; FONT-WEIGHT: bold">begin</span><span style="COLOR: #800000; FONT-WEIGHT: bold">tran</span><span style="COLOR: #800000; FONT-WEIGHT: bold">fetch</span> curcolumns <span style="COLOR: #800000; FONT-WEIGHT: bold">into</span><span style="COLOR: #797997">@CName</span><span style="COLOR: #808030">,</span><span style="COLOR: #797997">@TName</span><span style="COLOR: #808030">,</span><span style="COLOR: #797997">@OName</span><span style="COLOR: #808030">,</span><span style="COLOR: #797997">@Size</span><span style="COLOR: #808030">,</span><span style="COLOR: #797997">@Status</span><span style="COLOR: #808030">,</span><span style="COLOR: #797997">@Colorder</span><span style="COLOR: #800000; FONT-WEIGHT: bold">while</span><span style="COLOR: #797997">@@FETCH_STATUS</span><span style="COLOR: #808030">=</span><span style="COLOR: #008c00">0</span><span style="COLOR: #800000; FONT-WEIGHT: bold">begin</span><span style="COLOR: #800000; FONT-WEIGHT: bold">set</span><span style="COLOR: #797997">@Sql</span><span style="COLOR: #808030">=</span><span style="COLOR: #0000e6">'ALTER
TABLE '</span><span style="COLOR: #808030">+</span><span style="COLOR: #797997">@OName</span><span style="COLOR: #808030">+</span><span style="COLOR: #0000e6">'
ALTER COLUMN '</span><span style="COLOR: #808030">+</span><span style="COLOR: #797997">@CName</span><span style="COLOR: #808030">+</span><span style="COLOR: #0000e6">'
'</span><span style="COLOR: #808030">+</span><span style="COLOR: #797997">@TName</span><span style="COLOR: #808030">+</span> isnull <span style="COLOR: #808030">(</span><span style="COLOR: #0000e6">'('</span><span style="COLOR: #808030">+</span><span style="COLOR: #800000; FONT-WEIGHT: bold">CASE</span><span style="COLOR: #797997">@Size</span><span style="COLOR: #800000; FONT-WEIGHT: bold">WHEN</span><span style="COLOR: #808030">-</span><span style="COLOR: #008c00">1</span><span style="COLOR: #800000; FONT-WEIGHT: bold">then</span><span style="COLOR: #0000e6">'max'</span><span style="COLOR: #800000; FONT-WEIGHT: bold">else</span><span style="COLOR: #bb7977; FONT-WEIGHT: bold">convert</span><span style="COLOR: #808030">(</span><span style="COLOR: #800000; FONT-WEIGHT: bold">varchar</span><span style="COLOR: #808030">,</span><span style="COLOR: #797997">@Size</span><span style="COLOR: #808030">)</span><span style="COLOR: #800000; FONT-WEIGHT: bold">end</span><span style="COLOR: #808030">+</span><span style="COLOR: #0000e6">')'</span><span style="COLOR: #808030">,</span><span style="COLOR: #0000e6">''</span><span style="COLOR: #808030">)</span><span style="COLOR: #808030">+</span><span style="COLOR: #0000e6">'
COLLATE '</span><span style="COLOR: #808030">+</span><span style="COLOR: #797997">@NewCollation</span><span style="COLOR: #808030">+</span><span style="COLOR: #0000e6">'
'</span><span style="COLOR: #808030">+</span><span style="COLOR: #800000; FONT-WEIGHT: bold">case</span><span style="COLOR: #800000; FONT-WEIGHT: bold">when</span><span style="COLOR: #797997">@Status</span><span style="COLOR: #808030">=</span><span style="COLOR: #008c00">1</span><span style="COLOR: #800000; FONT-WEIGHT: bold">then</span><span style="COLOR: #0000e6">'NULL'</span><span style="COLOR: #800000; FONT-WEIGHT: bold">else</span><span style="COLOR: #0000e6">'NOT
NULL'</span><span style="COLOR: #800000; FONT-WEIGHT: bold">end</span><span style="COLOR: #696969">--exec(@Sql)
-- change this to print if you need only the script, not the action</span><span style="COLOR: #800000; FONT-WEIGHT: bold">PRINT</span><span style="COLOR: #797997">@Sql</span><span style="COLOR: #800000; FONT-WEIGHT: bold">fetch</span> curcolumns <span style="COLOR: #800000; FONT-WEIGHT: bold">into</span><span style="COLOR: #797997">@CName</span><span style="COLOR: #808030">,</span><span style="COLOR: #797997">@TName</span><span style="COLOR: #808030">,</span><span style="COLOR: #797997">@OName</span><span style="COLOR: #808030">,</span><span style="COLOR: #797997">@Size</span><span style="COLOR: #808030">,</span><span style="COLOR: #797997">@Status</span><span style="COLOR: #808030">,</span><span style="COLOR: #797997">@Colorder</span><span style="COLOR: #800000; FONT-WEIGHT: bold">end</span><span style="COLOR: #800000; FONT-WEIGHT: bold">close</span> curcolumns <span style="COLOR: #800000; FONT-WEIGHT: bold">deallocate</span> curcolumns <span style="COLOR: #800000; FONT-WEIGHT: bold">commit</span><span style="COLOR: #800000; FONT-WEIGHT: bold">tran</span></pre>
        <img width="0" height="0" src="http://mirkamali.ir/aggbug.ashx?id=5179f9ed-af1b-4417-9957-daf948a37ee3" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Online file virus scanner</title>
    <link rel="alternate" type="text/html" href="http://mirkamali.ir/2011/07/05/OnlineFileVirusScanner.aspx" />
    <id>http://mirkamali.ir/PermaLink,guid,0146abdd-29e0-4cb1-b5b3-150a8d3724fc.aspx</id>
    <published>2011-07-05T11:15:28.013+04:30</published>
    <updated>2011-07-05T11:26:29.0755+04:30</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
Online file scan with almost every antivirus ;)
</p>
        <p>
          <a href="http://www.virustotal.com/" target="_blank">http://www.virustotal.com/</a>
        </p>
        <img width="0" height="0" src="http://mirkamali.ir/aggbug.ashx?id=0146abdd-29e0-4cb1-b5b3-150a8d3724fc" />
      </div>
    </content>
  </entry>
  <entry>
    <title>The Firefox Input Button Line-Height Bug</title>
    <link rel="alternate" type="text/html" href="http://mirkamali.ir/2011/04/18/TheFirefoxInputButtonLineHeightBug.aspx" />
    <id>http://mirkamali.ir/PermaLink,guid,a38f1c1f-47bc-4e0e-9e74-3a9843c3c479.aspx</id>
    <published>2011-04-18T10:46:49.009+04:30</published>
    <updated>2011-04-18T10:47:17.38425+04:30</updated>
    <category term="Troubleshooting" label="Troubleshooting" scheme="http://mirkamali.ir/CategoryView,category,Troubleshooting.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
I found this article that was very useful.
</p>
        <p>
          <a href="http://www.cssnewbie.com/input-button-line-height-bug/" target="_blank">http://www.cssnewbie.com/input-button-line-height-bug/</a>
        </p>
        <p>
according to this article, use padding instead of line-height for opera &amp; firefox.
</p>
        <img width="0" height="0" src="http://mirkamali.ir/aggbug.ashx?id=a38f1c1f-47bc-4e0e-9e74-3a9843c3c479" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Rebuilding the Icon Cache Database in windows 7</title>
    <link rel="alternate" type="text/html" href="http://mirkamali.ir/2011/03/27/RebuildingTheIconCacheDatabaseInWindows7.aspx" />
    <id>http://mirkamali.ir/PermaLink,guid,fdd189d3-b3b4-4502-95a7-1830f3fcd023.aspx</id>
    <published>2011-03-27T12:11:09.382375+04:30</published>
    <updated>2011-03-27T12:11:09.382375+04:30</updated>
    <category term="Troubleshooting" label="Troubleshooting" scheme="http://mirkamali.ir/CategoryView,category,Troubleshooting.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
Windows 7 still shows old icons after change! I found a solution but I don't think
it's the best but it works.
</p>
        <p>
Close all folders that are currently open.
</p>
        <ol>
          <li>
Press CTRL+SHIFT+ESC key sequence</li>
          <li>
Right-click on the Explorer.exe process and kill it by selecting  End Process.</li>
          <li>
At File menu of Task Manager, select New Task (Run…)</li>
          <li>
Type CMD.EXE, and click OK</li>
          <li>
At thePrompt window, type the commands line by line and press ENTER after each command:<br />
CD /d %userprofile%\AppData\Local<br />
DEL IconCache.db /a<br />
EXIT</li>
          <li>
In Task Manager, click File, select New Task (Run…)</li>
          <li>
Type EXPLORER.EXE, and click OK.<br /></li>
        </ol>
        <img width="0" height="0" src="http://mirkamali.ir/aggbug.ashx?id=fdd189d3-b3b4-4502-95a7-1830f3fcd023" />
      </div>
    </content>
  </entry>
  <entry>
    <title>RadAjaxManager problem with radiobuttons - work only on first postback</title>
    <link rel="alternate" type="text/html" href="http://mirkamali.ir/2011/02/07/RadAjaxManagerProblemWithRadiobuttonsWorkOnlyOnFirstPostback.aspx" />
    <id>http://mirkamali.ir/PermaLink,guid,408a3dbf-2779-48af-925d-7ae6a0045cca.aspx</id>
    <published>2011-02-07T11:25:46.596+03:30</published>
    <updated>2011-02-07T11:29:12.29975+03:30</updated>
    <category term=".Net 4.0" label=".Net 4.0" scheme="http://mirkamali.ir/CategoryView,category,.Net%2B4.0.aspx" />
    <category term="C#" label="C#" scheme="http://mirkamali.ir/CategoryView,category,C%23.aspx" />
    <category term="Telerik Controls" label="Telerik Controls" scheme="http://mirkamali.ir/CategoryView,category,Telerik%2BControls.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
The key is that you must add the all radiobuttons to your radajaxmanager updated controls.
somthing like this
</p>
        <font size="2" face="Consolas">
          <font size="2" face="Consolas">
            <p>
ajaxManager.AjaxSettings.AddAjaxSetting(rbtn1, ddl, pnlLoading);<br />
ajaxManager.AjaxSettings.AddAjaxSetting(rbtn1, rbtn2, 
</p>
          </font>
        </font>
        <font color="#0000ff" size="2" face="Consolas">
          <font color="#0000ff" size="2" face="Consolas">
            <font color="#0000ff" size="2" face="Consolas">null</font>
          </font>
        </font>
        <font size="2" face="Consolas">
          <font size="2" face="Consolas">);<br />
ajaxManager.AjaxSettings.AddAjaxSetting(rbtn1, rbtn1, </font>
        </font>
        <font color="#0000ff" size="2" face="Consolas">
          <font color="#0000ff" size="2" face="Consolas">
            <font color="#0000ff" size="2" face="Consolas">null</font>
          </font>
        </font>
        <font size="2" face="Consolas">
          <font size="2" face="Consolas">);<br />
ajaxManager.AjaxSettings.AddAjaxSetting(rbtn2, ddl, pnlLoading);<br />
ajaxManager.AjaxSettings.AddAjaxSetting(rbtn2, rbtn2, </font>
        </font>
        <font color="#0000ff" size="2" face="Consolas">
          <font color="#0000ff" size="2" face="Consolas">
            <font color="#0000ff" size="2" face="Consolas">null</font>
          </font>
        </font>
        <font size="2" face="Consolas">
          <font size="2" face="Consolas">);<br />
ajaxManager.AjaxSettings.AddAjaxSetting(rbtn2, rbtn1, </font>
        </font>
        <font color="#0000ff" size="2" face="Consolas">
          <font color="#0000ff" size="2" face="Consolas">
            <font color="#0000ff" size="2" face="Consolas">null</font>
          </font>
        </font>
        <font size="2" face="Consolas">
          <font size="2" face="Consolas">);</font>
        </font>
        <p>
          <font size="2" face="Consolas">
            <font size="2" face="Consolas">
              <font face="Verdana">This
will solve the problem. because after every postback all the dropdowns must updated.</font>
            </font>
          </font>
        </p>
        <img width="0" height="0" src="http://mirkamali.ir/aggbug.ashx?id=408a3dbf-2779-48af-925d-7ae6a0045cca" />
      </div>
    </content>
  </entry>
  <entry>
    <title>RadMenu bind menu item link target</title>
    <link rel="alternate" type="text/html" href="http://mirkamali.ir/2011/01/19/RadMenuBindMenuItemLinkTarget.aspx" />
    <id>http://mirkamali.ir/PermaLink,guid,80826d52-3e5b-4381-9142-649a8d185d24.aspx</id>
    <published>2011-01-19T11:32:57.441+03:30</published>
    <updated>2011-02-07T11:33:53.61225+03:30</updated>
    <category term="ASP NET 2.0" label="ASP NET 2.0" scheme="http://mirkamali.ir/CategoryView,category,ASP%2BNET%2B2.0.aspx" />
    <category term="Telerik Controls" label="Telerik Controls" scheme="http://mirkamali.ir/CategoryView,category,Telerik%2BControls.aspx" />
    <category term="Troubleshooting" label="Troubleshooting" scheme="http://mirkamali.ir/CategoryView,category,Troubleshooting.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <font size="2" face="Consolas">
          <font size="2" face="Consolas">
            <p>
Add following code to your radmenu control. replace targetfieldname with your
field.
</p>
          </font>
        </font>
        <p>
          <font color="#0000ff" size="2" face="Consolas">
            <font color="#0000ff" size="2" face="Consolas">
              <font color="#0000ff" size="2" face="Consolas">&lt;</font>
            </font>
          </font>
          <font color="#800000" size="2" face="Consolas">
            <font color="#800000" size="2" face="Consolas">
              <font color="#800000" size="2" face="Consolas">DataBindings</font>
            </font>
          </font>
          <font color="#0000ff" size="2" face="Consolas">
            <font color="#0000ff" size="2" face="Consolas">
              <font color="#0000ff" size="2" face="Consolas">&gt;
</font>
            </font>
          </font>
        </p>
        <font size="2" face="Consolas">
          <font size="2" face="Consolas">
            <p>
            </p>
          </font>
        </font>
        <font color="#0000ff" size="2" face="Consolas">
          <font color="#0000ff" size="2" face="Consolas">
            <font color="#0000ff" size="2" face="Consolas">&lt;</font>
          </font>
        </font>
        <font color="#800000" size="2" face="Consolas">
          <font color="#800000" size="2" face="Consolas">
            <font color="#800000" size="2" face="Consolas">telerik</font>
          </font>
        </font>
        <font color="#0000ff" size="2" face="Consolas">
          <font color="#0000ff" size="2" face="Consolas">
            <font color="#0000ff" size="2" face="Consolas">:</font>
          </font>
        </font>
        <font color="#800000" size="2" face="Consolas">
          <font color="#800000" size="2" face="Consolas">
            <font color="#800000" size="2" face="Consolas">RadMenuItemBinding</font>
          </font>
        </font>
        <font size="2" face="Consolas">
          <font size="2" face="Consolas">
          </font>
        </font>
        <font color="#ff0000" size="2" face="Consolas">
          <font color="#ff0000" size="2" face="Consolas">
            <font color="#ff0000" size="2" face="Consolas">TargetField</font>
          </font>
        </font>
        <font color="#0000ff" size="2" face="Consolas">
          <font color="#0000ff" size="2" face="Consolas">
            <font color="#0000ff" size="2" face="Consolas">="TargetFieldName"</font>
          </font>
        </font>
        <font size="2" face="Consolas">
          <font size="2" face="Consolas">
          </font>
        </font>
        <font color="#0000ff" size="2" face="Consolas">
          <font color="#0000ff" size="2" face="Consolas">
            <font color="#0000ff" size="2" face="Consolas">/&gt;
</font>
          </font>
        </font>
        <font size="2" face="Consolas">
          <font size="2" face="Consolas">
            <p>
            </p>
          </font>
        </font>
        <font color="#0000ff" size="2" face="Consolas">
          <font color="#0000ff" size="2" face="Consolas">
            <font color="#0000ff" size="2" face="Consolas">&lt;/</font>
          </font>
        </font>
        <font color="#800000" size="2" face="Consolas">
          <font color="#800000" size="2" face="Consolas">
            <font color="#800000" size="2" face="Consolas">DataBindings</font>
          </font>
        </font>
        <font color="#0000ff" size="2" face="Consolas">
          <font color="#0000ff" size="2" face="Consolas">
            <font color="#0000ff" size="2" face="Consolas">&gt;
</font>
          </font>
        </font>
        <img width="0" height="0" src="http://mirkamali.ir/aggbug.ashx?id=80826d52-3e5b-4381-9142-649a8d185d24" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Console Remote Desktop in Windows 7 or Widnows server 2008</title>
    <link rel="alternate" type="text/html" href="http://mirkamali.ir/2011/01/19/ConsoleRemoteDesktopInWindows7OrWidnowsServer2008.aspx" />
    <id>http://mirkamali.ir/PermaLink,guid,24f3115f-44b0-4385-966b-7b5e21c8415f.aspx</id>
    <published>2011-01-19T11:29:41.691375+03:30</published>
    <updated>2011-01-19T11:29:41.691375+03:30</updated>
    <category term="Troubleshooting" label="Troubleshooting" scheme="http://mirkamali.ir/CategoryView,category,Troubleshooting.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
Try "mstsc /admin"
</p>
        <img width="0" height="0" src="http://mirkamali.ir/aggbug.ashx?id=24f3115f-44b0-4385-966b-7b5e21c8415f" />
      </div>
    </content>
  </entry>
  <entry>
    <title>SQL Server 2008 - Saving changes is not permitted. The changes you have made require the following tables to be dropped and re-created. </title>
    <link rel="alternate" type="text/html" href="http://mirkamali.ir/2010/12/29/SQLServer2008SavingChangesIsNotPermittedTheChangesYouHaveMadeRequireTheFollowingTablesToBeDroppedAndRecreated.aspx" />
    <id>http://mirkamali.ir/PermaLink,guid,5351feea-cf3d-4583-b6dc-1bc85880e8b8.aspx</id>
    <published>2010-12-29T09:35:53.178+03:30</published>
    <updated>2010-12-29T09:36:06.9125+03:30</updated>
    <category term="SQL Server" label="SQL Server" scheme="http://mirkamali.ir/CategoryView,category,SQL%2BServer.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">When you save a table in Management Studio
that requires the table be dropped and recreated behind the scenes, the change will
fail by default with the below warning.<br /><br />
In SQL Server, tables are dropped, recreated and reloaded automatically for you without
having to worry about what's going on behind the curtains but this may create issues
for some users. This behavior is required upon a number of actions but most common
is creating a new column in a specific location in the table.<br /><br />
Warning Message:<br /><br />
Saving changes is not permitted. The changes you have made require the following tables
to be dropped and re-created. You have either made changes to a table that can't be
re-created or enabled the option Prevent saving changes that require the table to
be re-created.<br /><br />
To fix this in Management Studio, go to Tools -&gt; Options then go to the Designer
Page and uncheck "Prevent saving changes that require table re-creation".<br /><br /><p></p><img width="0" height="0" src="http://mirkamali.ir/aggbug.ashx?id=5351feea-cf3d-4583-b6dc-1bc85880e8b8" /></div>
    </content>
  </entry>
  <entry>
    <title>RadFormDecorator Problem with RTL Pages and checkboxes</title>
    <link rel="alternate" type="text/html" href="http://mirkamali.ir/2010/12/06/RadFormDecoratorProblemWithRTLPagesAndCheckboxes.aspx" />
    <id>http://mirkamali.ir/PermaLink,guid,be623bbf-59ab-42a6-8c34-aa4da43e5238.aspx</id>
    <published>2010-12-06T09:31:09.543+03:30</published>
    <updated>2010-12-08T08:36:02.255+03:30</updated>
    <category term="ASP NET 2.0" label="ASP NET 2.0" scheme="http://mirkamali.ir/CategoryView,category,ASP%2BNET%2B2.0.aspx" />
    <category term="Troubleshooting" label="Troubleshooting" scheme="http://mirkamali.ir/CategoryView,category,Troubleshooting.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>
The problem is that when clicking on the checkbox/radiobutton, then the vertical
scrollbar jumps to the top!
</p>
        <p>
This could happen in some scenarios because of the way RadFormDecorator styles checkboxes.
When RadFormDecorator is used, the real checkboxes are hidden outside of the viewport.
When the decorated checkbox is clicked however, browsers try to focus the real checkbox,
hence the "jumping". To avoid that, the only thing that you usually need to do is
to set <strong>position:relative</strong> to the parent container.
</p>
        <p>
In this case however, because of the RTL mode, the approach is a bit different
and need to add the following CSS the page:
</p>
        <p>
          <font color="#800000" size="2" face="Consolas">
            <font color="#800000" size="2" face="Consolas">
              <font color="#800000" size="2" face="Consolas">input.rfdRealInput<br /></font>
            </font>
          </font>
          <font size="2" face="Consolas">
            <font size="2" face="Consolas">{<br /></font>
          </font>
          <font color="#ff0000" size="2" face="Consolas">
            <font color="#ff0000" size="2" face="Consolas">
              <font color="#ff0000" size="2" face="Consolas">   display</font>
            </font>
          </font>
          <font size="2" face="Consolas">
            <font size="2" face="Consolas">:</font>
          </font>
          <font color="#0000ff" size="2" face="Consolas">
            <font color="#0000ff" size="2" face="Consolas">
              <font color="#0000ff" size="2" face="Consolas">block</font>
            </font>
          </font>
          <font size="2" face="Consolas">
            <font size="2" face="Consolas">;<br /></font>
          </font>
          <font color="#ff0000" size="2" face="Consolas">
            <font color="#ff0000" size="2" face="Consolas">
              <font color="#ff0000" size="2" face="Consolas">   position</font>
            </font>
          </font>
          <font size="2" face="Consolas">
            <font size="2" face="Consolas">: </font>
          </font>
          <font color="#0000ff" size="2" face="Consolas">
            <font color="#0000ff" size="2" face="Consolas">
              <font color="#0000ff" size="2" face="Consolas">static</font>
            </font>
          </font>
          <font size="2" face="Consolas">
            <font size="2" face="Consolas">
            </font>
          </font>
          <font color="#0000ff" size="2" face="Consolas">
            <font color="#0000ff" size="2" face="Consolas">
              <font color="#0000ff" size="2" face="Consolas">!important</font>
            </font>
          </font>
          <font size="2" face="Consolas">
            <font size="2" face="Consolas">;<br /></font>
          </font>
          <font color="#ff0000" size="2" face="Consolas">
            <font color="#ff0000" size="2" face="Consolas">
              <font color="#ff0000" size="2" face="Consolas">   float</font>
            </font>
          </font>
          <font size="2" face="Consolas">
            <font size="2" face="Consolas">: </font>
          </font>
          <font color="#0000ff" size="2" face="Consolas">
            <font color="#0000ff" size="2" face="Consolas">
              <font color="#0000ff" size="2" face="Consolas">right</font>
            </font>
          </font>
          <font size="2" face="Consolas">
            <font size="2" face="Consolas">;<br /></font>
          </font>
          <font color="#ff0000" size="2" face="Consolas">
            <font color="#ff0000" size="2" face="Consolas">
              <font color="#ff0000" size="2" face="Consolas">   outline</font>
            </font>
          </font>
          <font size="2" face="Consolas">
            <font size="2" face="Consolas">: </font>
          </font>
          <font color="#0000ff" size="2" face="Consolas">
            <font color="#0000ff" size="2" face="Consolas">
              <font color="#0000ff" size="2" face="Consolas">0</font>
            </font>
          </font>
          <font size="2" face="Consolas">
            <font size="2" face="Consolas">;<br /></font>
          </font>
          <font color="#ff0000" size="2" face="Consolas">
            <font color="#ff0000" size="2" face="Consolas">
              <font color="#ff0000" size="2" face="Consolas">   width</font>
            </font>
          </font>
          <font size="2" face="Consolas">
            <font size="2" face="Consolas">: </font>
          </font>
          <font color="#0000ff" size="2" face="Consolas">
            <font color="#0000ff" size="2" face="Consolas">
              <font color="#0000ff" size="2" face="Consolas">0</font>
            </font>
          </font>
          <font size="2" face="Consolas">
            <font size="2" face="Consolas">;<br /></font>
          </font>
          <font color="#ff0000" size="2" face="Consolas">
            <font color="#ff0000" size="2" face="Consolas">
              <font color="#ff0000" size="2" face="Consolas">   height</font>
            </font>
          </font>
          <font size="2" face="Consolas">
            <font size="2" face="Consolas">: </font>
          </font>
          <font color="#0000ff" size="2" face="Consolas">
            <font color="#0000ff" size="2" face="Consolas">
              <font color="#0000ff" size="2" face="Consolas">0</font>
            </font>
          </font>
          <font size="2" face="Consolas">
            <font size="2" face="Consolas">;<br /></font>
          </font>
          <font color="#ff0000" size="2" face="Consolas">
            <font color="#ff0000" size="2" face="Consolas">
              <font color="#ff0000" size="2" face="Consolas">   margin-top</font>
            </font>
          </font>
          <font size="2" face="Consolas">
            <font size="2" face="Consolas">: </font>
          </font>
          <font color="#0000ff" size="2" face="Consolas">
            <font color="#0000ff" size="2" face="Consolas">
              <font color="#0000ff" size="2" face="Consolas">-5px</font>
            </font>
          </font>
          <font size="2" face="Consolas">
            <font size="2" face="Consolas">;<br /></font>
          </font>
          <font color="#ff0000" size="2" face="Consolas">
            <font color="#ff0000" size="2" face="Consolas">
              <font color="#ff0000" size="2" face="Consolas">   FILTER</font>
            </font>
          </font>
          <font size="2" face="Consolas">
            <font size="2" face="Consolas">: </font>
          </font>
          <font color="#0000ff" size="2" face="Consolas">
            <font color="#0000ff" size="2" face="Consolas">
              <font color="#0000ff" size="2" face="Consolas">alpha(opacity=0)</font>
            </font>
          </font>
          <font size="2" face="Consolas">
            <font size="2" face="Consolas">; <br /></font>
          </font>
          <font color="#ff0000" size="2" face="Consolas">
            <font color="#ff0000" size="2" face="Consolas">
              <font color="#ff0000" size="2" face="Consolas">   -moz-opacity</font>
            </font>
          </font>
          <font size="2" face="Consolas">
            <font size="2" face="Consolas">: </font>
          </font>
          <font color="#0000ff" size="2" face="Consolas">
            <font color="#0000ff" size="2" face="Consolas">
              <font color="#0000ff" size="2" face="Consolas">0</font>
            </font>
          </font>
          <font size="2" face="Consolas">
            <font size="2" face="Consolas">; <br /></font>
          </font>
          <font color="#ff0000" size="2" face="Consolas">
            <font color="#ff0000" size="2" face="Consolas">
              <font color="#ff0000" size="2" face="Consolas">   opacity</font>
            </font>
          </font>
          <font size="2" face="Consolas">
            <font size="2" face="Consolas">: </font>
          </font>
          <font color="#0000ff" size="2" face="Consolas">
            <font color="#0000ff" size="2" face="Consolas">
              <font color="#0000ff" size="2" face="Consolas">0<br /></font>
            </font>
          </font>
          <font size="2" face="Consolas">
            <font size="2" face="Consolas">}</font>
          </font>
          <br />
        </p>
        <img width="0" height="0" src="http://mirkamali.ir/aggbug.ashx?id=be623bbf-59ab-42a6-8c34-aa4da43e5238" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Load types in other assembly in C# and problem with nested classes</title>
    <link rel="alternate" type="text/html" href="http://mirkamali.ir/2010/01/12/LoadTypesInOtherAssemblyInCAndProblemWithNestedClasses.aspx" />
    <id>http://mirkamali.ir/PermaLink,guid,553640c7-3835-4b6c-af2a-f31470968157.aspx</id>
    <published>2010-01-12T09:20:46.439875+03:30</published>
    <updated>2010-01-12T09:20:46.439875+03:30</updated>
    <category term="ASP NET 2.0" label="ASP NET 2.0" scheme="http://mirkamali.ir/CategoryView,category,ASP%2BNET%2B2.0.aspx" />
    <category term="C#" label="C#" scheme="http://mirkamali.ir/CategoryView,category,C%23.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <pre>
          <span style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: black; FONT-SIZE: 11px">To
load types in other assembly just add the assemblyname via comma at the end of your
type:</span>
        </pre>
        <pre>
          <span style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: black; FONT-SIZE: 11px">Type
mytype <span style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: red; FONT-SIZE: 11px">=</span> Type.GetType(<span style="BACKGROUND-COLOR: #e4e4e4; FONT-FAMILY: Courier New; COLOR: #666666; FONT-SIZE: 11px">"Class2,
Project2.Library "</span>); </span>
        </pre>
        <pre>
          <span style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: black; FONT-SIZE: 11px">for
nested class you must put plus (+) instead of dot (.):</span>
        </pre>
        <pre>
          <span style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: black; FONT-SIZE: 11px">
            <pre>
              <span style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: black; FONT-SIZE: 11px">Type
mytype <span style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: red; FONT-SIZE: 11px">=</span> Type.GetType(<span style="BACKGROUND-COLOR: #e4e4e4; FONT-FAMILY: Courier New; COLOR: #666666; FONT-SIZE: 11px">"Class2+SubClass1,
Project2.Library "</span>); </span>
            </pre>
          </span>
        </pre>
        <pre>
          <span style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: black; FONT-SIZE: 11px">
          </span> </pre>
        <img width="0" height="0" src="http://mirkamali.ir/aggbug.ashx?id=553640c7-3835-4b6c-af2a-f31470968157" />
      </div>
    </content>
  </entry>
  <entry>
    <title>Loop with foreach through an Enum </title>
    <link rel="alternate" type="text/html" href="http://mirkamali.ir/2009/09/02/LoopWithForeachThroughAnEnum.aspx" />
    <id>http://mirkamali.ir/PermaLink,guid,0bfc8844-3678-45c0-8ac5-d6ed9518ff4f.aspx</id>
    <published>2009-09-02T16:22:30.90625+04:30</published>
    <updated>2009-09-02T16:22:30.90625+04:30</updated>
    <category term="ASP NET 1.0" label="ASP NET 1.0" scheme="http://mirkamali.ir/CategoryView,category,ASP%2BNET%2B1.0.aspx" />
    <category term="ASP NET 2.0" label="ASP NET 2.0" scheme="http://mirkamali.ir/CategoryView,category,ASP%2BNET%2B2.0.aspx" />
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <pre>
          <span style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: black; FONT-SIZE: 11px">
            <span style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px">foreach</span> (myEnum
item <span style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px">in</span> Enum.GetValues(<span style="BACKGROUND-COLOR: transparent; FONT-FAMILY: Courier New; COLOR: blue; FONT-SIZE: 11px">typeof</span>(myEnum)))
{ ... }</span>
        </pre>
        <img width="0" height="0" src="http://mirkamali.ir/aggbug.ashx?id=0bfc8844-3678-45c0-8ac5-d6ed9518ff4f" />
      </div>
    </content>
  </entry>
</feed>
