<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-37107620</id><updated>2024-11-08T20:53:06.557+05:30</updated><category term="dataset"/><category term="&#39;[]%&#39;"/><category term=".Net"/><category term="32-Bit"/><category term="64-Bit"/><category term="C#"/><category term="C# 4.0 optional parameters"/><category term="C# ConnectionStringBuilders"/><category term="C# INPUT"/><category term="ConnectionStringBuilders"/><category term="DIALOG BOX"/><category term="Enable session state on a Web Methods"/><category term="IIS 7"/><category term="Limiting Textarea length"/><category term="Navigation"/><category term="Numeric Only"/><category term="OOP with C#"/><category term="ORDER BY"/><category term="PERCENT"/><category term="Radio Button"/><category term="Rules to Better Websites Navigation"/><category term="SQL  PERCENT"/><category term="SQL TOP PERCENT"/><category term="Scott Guthie"/><category term="Shiran"/><category term="Visual Studio 2010 Beta 2"/><category term="Web service"/><category term="Websites Navigation"/><category term="Windows"/><category term="XSD"/><category term="check box"/><category term="dataset and return value"/><category term="encapsulation"/><category term="first letter"/><category term="input dialog box"/><category term="lile"/><category term="named c#"/><category term="not like"/><category term="optional arguments c#"/><category term="rare validation"/><category term="sql 2008"/><category term="sql charset"/><category term="stoed procedure return value"/><category term="vs2010"/><title type='text'>Shiran&#39;s Blog</title><subtitle type='html'>.net, Personal Views &amp;amp; Experiences</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://shirans.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://shirans.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>52</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-37107620.post-7667103913043537759</id><published>2012-08-26T07:46:00.003+05:30</published><updated>2012-08-26T07:46:53.075+05:30</updated><title type='text'>Get computer names in the  Network</title><content type='html'>I wanted to get all the computer&#39;s names as I was doing a till balancing program, related to a supermarket (POS application). On a report I wanted to filter the daily balance.&lt;br /&gt;
&lt;br /&gt;
Daily balance of all stations and station wise. I thought this might helpful, if I share the code snippet with you.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
private List&lt;string&gt; ComputersInNetwork()&lt;br /&gt;
{&lt;br /&gt;
    List&lt;string&gt; computerList= new List&lt;string&gt;();&lt;br /&gt;
    using (DirectoryEntry root = new DirectoryEntry(&quot;WinNT:&quot;))&lt;br /&gt;
    {&lt;br /&gt;
        foreach (DirectoryEntry computers in root.Children)&lt;br /&gt;
        {&lt;br /&gt;
            foreach (DirectoryEntry computer in computers.Children)&lt;br /&gt;
            {&lt;br /&gt;
                if ((computer.Name != &quot;Schema&quot;))&lt;br /&gt;
                {&lt;br /&gt;
                    computerList.Add(computer.Name);&lt;br /&gt;
                }&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
    computerList.Add(&quot;All&quot;);&lt;br /&gt;
    computerList.Sort();&lt;br /&gt;
    return list;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Happy coding.</content><link rel='replies' type='application/atom+xml' href='http://shirans.blogspot.com/feeds/7667103913043537759/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/37107620/7667103913043537759' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/7667103913043537759'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/7667103913043537759'/><link rel='alternate' type='text/html' href='http://shirans.blogspot.com/2012/08/get-computer-names-in-network.html' title='Get computer names in the  Network'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37107620.post-7945750676759232186</id><published>2012-07-23T01:03:00.000+05:30</published><updated>2012-07-23T01:05:36.073+05:30</updated><title type='text'>Illegal characters in path (XmlDocument.Load())</title><content type='html'>This occurs due to not understanding the expected parameter type for the XmlDocument.Load(&quot;filename&quot;) method. This method expect a file name.&lt;br /&gt;
&lt;br /&gt;
Look at the following example, this throw the above error.&lt;br /&gt;
&lt;br /&gt;
eg:     &lt;br /&gt;
//getting a soap response&lt;br /&gt;
string sXml = nc.CurrencyExchangeRatesForWeb(); &lt;br /&gt;
XmlDocument doc = new XmlDocument();&lt;br /&gt;
doc.Load(sXml);&lt;br /&gt;
&lt;br /&gt;
To avoid this error, we can use XmlDocument.LoadXml(&quot;string&quot;) method, following example shows the solution,&lt;br /&gt;
&lt;br /&gt;
eg:&lt;br /&gt;
string sXml = nc.CurrencyExchangeRatesForWeb();    &lt;br /&gt;
XmlDocument doc = new XmlDocument();&lt;br /&gt;
doc.LoadXml(sXml);&lt;br /&gt;
&lt;br /&gt;
Happy coding</content><link rel='replies' type='application/atom+xml' href='http://shirans.blogspot.com/feeds/7945750676759232186/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/37107620/7945750676759232186' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/7945750676759232186'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/7945750676759232186'/><link rel='alternate' type='text/html' href='http://shirans.blogspot.com/2012/07/illegal-characters-in-path.html' title='Illegal characters in path (XmlDocument.Load())'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37107620.post-8708658029039022443</id><published>2012-07-17T17:25:00.001+05:30</published><updated>2012-07-17T17:25:10.625+05:30</updated><title type='text'>Get File Name from path string</title><content type='html'>I have seen many young developers are struggle with getting&lt;br /&gt;
the only the file name from the full path.&lt;br /&gt;
&lt;br /&gt;
Here is a simple code snippet to get the file name.&lt;br /&gt;
&lt;br /&gt;
string path = &quot;C:\\TEMP\\temp.bmp&quot;;&lt;br /&gt;
string fileName = System.IO.Path.GetFileName(path);&lt;br /&gt;
&lt;br /&gt;
Happy coding.</content><link rel='replies' type='application/atom+xml' href='http://shirans.blogspot.com/feeds/8708658029039022443/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/37107620/8708658029039022443' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/8708658029039022443'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/8708658029039022443'/><link rel='alternate' type='text/html' href='http://shirans.blogspot.com/2012/07/get-file-name-from-path-string.html' title='Get File Name from path string'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37107620.post-7919279508090519411</id><published>2011-09-08T11:10:00.000+05:30</published><updated>2011-09-08T11:11:11.744+05:30</updated><title type='text'>Cannot evaluate expression because a thread is stopped at a point where garbage collection is impossible, possibly because the code is optimized.</title><content type='html'></content><link rel='replies' type='application/atom+xml' href='http://shirans.blogspot.com/feeds/7919279508090519411/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/37107620/7919279508090519411' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/7919279508090519411'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/7919279508090519411'/><link rel='alternate' type='text/html' href='http://shirans.blogspot.com/2011/09/cannot-evaluate-expression-because.html' title='Cannot evaluate expression because a thread is stopped at a point where garbage collection is impossible, possibly because the code is optimized.'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37107620.post-8633157492626264057</id><published>2011-02-01T16:32:00.001+05:30</published><updated>2011-02-01T16:32:02.663+05:30</updated><title type='text'>Gridview RowEditing checkbox value</title><content type='html'>&lt;p&gt;We know if we have manually binds the data then, we can access the checkbox or what ever the control by it&#39;s id.   &lt;br /&gt;as follows &lt;/p&gt;  &lt;pre class=&quot;csharpcode&quot;&gt;CheckBox ck = (CheckBox)GridView1.Rows[e.NewEditIndex].Cells[8].FindControl(&lt;span class=&quot;str&quot;&gt;&amp;quot;yourCheckBoxControl&amp;quot;&lt;/span&gt;);&lt;/pre&gt;&lt;br /&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, &quot;Courier New&quot;, courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&amp;#160;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;What if you auto bided the data to a gridview,&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;csharpcode&quot;&gt;CheckBox ck = (CheckBox)GridView1.Rows[e.NewEditIndex].Cells[8].Controls[0];&lt;/pre&gt;&lt;br /&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, &quot;Courier New&quot;, courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;  </content><link rel='replies' type='application/atom+xml' href='http://shirans.blogspot.com/feeds/8633157492626264057/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/37107620/8633157492626264057' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/8633157492626264057'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/8633157492626264057'/><link rel='alternate' type='text/html' href='http://shirans.blogspot.com/2011/02/gridview-rowediting-checkbox-value.html' title='Gridview RowEditing checkbox value'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37107620.post-7216183689192019692</id><published>2011-01-26T23:02:00.001+05:30</published><updated>2011-01-30T20:23:57.033+05:30</updated><title type='text'>DropDownList - Set selected value</title><content type='html'>&lt;p&gt;&lt;/p&gt;  &lt;pre class=&quot;csharpcode&quot;&gt;&lt;br /&gt;The following code snippent shows how to set the selected item of a&lt;br /&gt;DropdownList&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;csharpcode&quot;&gt;&amp;#160;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;csharpcode&quot;&gt;DropDownList1.ClearSelection();&lt;br /&gt;ListItem li = DropDownList1.Items.FindByValue(&amp;quot;20&amp;quot;); &lt;br /&gt;DropDownList1.Items.FindByText(li.Text).Selected = &lt;span class=&quot;kwrd&quot;&gt;true&lt;/span&gt;;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;csharpcode&quot;&gt;I have seen many beginners are struggling to set the selected value  dynamically,&lt;br /&gt;Hope this is very helpful.&lt;/pre&gt;&lt;br /&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, &quot;Courier New&quot;, courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;  </content><link rel='replies' type='application/atom+xml' href='http://shirans.blogspot.com/feeds/7216183689192019692/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/37107620/7216183689192019692' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/7216183689192019692'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/7216183689192019692'/><link rel='alternate' type='text/html' href='http://shirans.blogspot.com/2011/01/dropdownlist-set-selected-value.html' title='DropDownList - Set selected value'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37107620.post-8147771336134800639</id><published>2011-01-16T14:24:00.001+05:30</published><updated>2011-01-16T14:24:58.824+05:30</updated><title type='text'>The report you requested requires further information</title><content type='html'>&lt;p&gt;This issue is a common one who starts working on Crystal Reports with Dataset (.Net)&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdQiZOKd6E4lg0f82OouXxdaf1OibOclqiX10Y3ydwrHOtV4biTcuezQ22LJ-ZCSd1lrDe-9GdlDKdivohEwLIk5h0Mk3uJnIhxcykXXcamP-BpYCprpwnEN4JFcxYMFIkPUJ8/s1600-h/loginerror%5B3%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px&quot; border=&quot;0&quot; alt=&quot;loginerror&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgivCIPvFPGcJ5Tsz0Bs8oC5PQAGYLgeufeUIlCYnq_Z2NyHRnJy3FnZsMzSWPbmZZUqWtWlMra_TeyxqRHvJX3SkjPc1t-R8R3dbsn4vb7q4OjMgrcEyU0TKCc6gTSZFz6FQYQ/?imgmax=800&quot; width=&quot;449&quot; height=&quot;167&quot;&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;Ill show a sample code snippet where you can generate this issue.&lt;br&gt;&lt;/p&gt;&lt;pre class=&quot;csharpcode&quot;&gt;                 ReportDocument report = &lt;span class=&quot;kwrd&quot;&gt;new&lt;/span&gt; ReportDocument();    &lt;br /&gt;&lt;br /&gt;                 BAgent bAgent = &lt;span class=&quot;kwrd&quot;&gt;new&lt;/span&gt; BAgent();&lt;br /&gt;                 DataSet dsStatus = &lt;span class=&quot;kwrd&quot;&gt;new&lt;/span&gt; DataSet();&lt;br /&gt;                 dsStatus = bAgent.GetStatus();&lt;br /&gt;&lt;br /&gt;                 &lt;span class=&quot;kwrd&quot;&gt;string&lt;/span&gt; reportPath = Server.MapPath(&lt;span class=&quot;str&quot;&gt;&quot;/Agent/Reports/GetStatusRpt.rpt&quot;&lt;/span&gt;);  &lt;br /&gt;                 report.Load(reportPath);&lt;br /&gt;&lt;br /&gt;                 report.SetDataSource(dsStatus);&lt;span class=&quot;rem&quot;&gt;// this is the line cause for this issue&lt;br&gt;&lt;/span&gt;                CrystalReportViewer1.ReportSource = report;  &lt;br /&gt;                 CrystalReportViewer1.DataBind();  &lt;br /&gt;                 CrystalReportViewer1.RefreshReport(); &lt;/pre&gt;&lt;pre class=&quot;csharpcode&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;br /&gt;&lt;style type=&quot;text/css&quot;&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, &quot;Courier New&quot;, courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;br /&gt;&lt;/style&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt; Here is the solution, use the datset table instead of the dataset&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class=&quot;csharpcode&quot;&gt;                 ReportDocument report = &lt;span class=&quot;kwrd&quot;&gt;new&lt;/span&gt; ReportDocument();    &lt;br /&gt;&lt;br /&gt;                 BAgent bAgent = &lt;span class=&quot;kwrd&quot;&gt;new&lt;/span&gt; BAgent();&lt;br /&gt;                 DataSet dsStatus = &lt;span class=&quot;kwrd&quot;&gt;new&lt;/span&gt; DataSet();&lt;br /&gt;                 dsStatus = bAgent.GetStatus();&lt;br /&gt;&lt;br /&gt;                 &lt;span class=&quot;kwrd&quot;&gt;string&lt;/span&gt; reportPath = Server.MapPath(&lt;span class=&quot;str&quot;&gt;&quot;/Agent/Reports/GetStatusRpt.rpt&quot;&lt;/span&gt;);  &lt;br /&gt;                 report.Load(reportPath);&lt;br /&gt;&lt;/pre&gt;&lt;pre class=&quot;csharpcode&quot;&gt;                 &lt;strong&gt;report.SetDataSource(dsStatus.Tables[0]); &lt;/strong&gt;&lt;span class=&quot;rem&quot;&gt;&lt;br&gt;&lt;/span&gt;                 CrystalReportViewer1.ReportSource = report;  &lt;br /&gt;                 CrystalReportViewer1.DataBind();  &lt;br /&gt;                 CrystalReportViewer1.RefreshReport(); &lt;/pre&gt;&lt;br /&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Hope you got rid from this issue. Enjoy coding.&lt;br /&gt;&lt;style type=&quot;text/css&quot;&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, &quot;Courier New&quot;, courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;br /&gt;&lt;/style&gt;&lt;/p&gt;  </content><link rel='replies' type='application/atom+xml' href='http://shirans.blogspot.com/feeds/8147771336134800639/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/37107620/8147771336134800639' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/8147771336134800639'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/8147771336134800639'/><link rel='alternate' type='text/html' href='http://shirans.blogspot.com/2011/01/report-you-requested-requires-further.html' title='The report you requested requires further information'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgivCIPvFPGcJ5Tsz0Bs8oC5PQAGYLgeufeUIlCYnq_Z2NyHRnJy3FnZsMzSWPbmZZUqWtWlMra_TeyxqRHvJX3SkjPc1t-R8R3dbsn4vb7q4OjMgrcEyU0TKCc6gTSZFz6FQYQ/s72-c?imgmax=800" height="72" width="72"/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37107620.post-8483247713168239754</id><published>2011-01-13T10:10:00.001+05:30</published><updated>2011-01-30T20:29:01.047+05:30</updated><title type='text'>GridView Hidden Column Data Access</title><content type='html'>&lt;p&gt;Again I faced an issue, as usual before .net version 2.0 I set a column&#39;s visibility property of a gridview to false.   &lt;br /&gt;If you are a developer by now you know why I did that. I know you guessed it. I just wanted to use that column&#39;s value    &lt;br /&gt;in one of my calculations, and didn&#39;t want to show it to the user.&lt;/p&gt;  &lt;p&gt;Grid is working fine it hides the column I wanted to hide, I am happy!., Suddenly I realized that I don&#39;t get the value from    &lt;br /&gt;the hidden (visibility= false) column&#39;s cell value in the following method.&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;pre class=&quot;csharpcode&quot;&gt; &lt;span class=&quot;kwrd&quot;&gt;protected&lt;/span&gt; &lt;span class=&quot;kwrd&quot;&gt;void&lt;/span&gt; grd_SelectedIndexChanged(&lt;span class=&quot;kwrd&quot;&gt;object&lt;/span&gt; sender, EventArgs e)&lt;br /&gt; {&lt;br /&gt;      GridViewRow row = grd.SelectedRow;&lt;br /&gt;      &lt;span class=&quot;kwrd&quot;&gt;string&lt;/span&gt; aValue = row.Cells[8].Text; &lt;span class=&quot;rem&quot;&gt;//this is the column I set false visibility&lt;/span&gt;&lt;br /&gt; }&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I was looking my coding deeply I am sure this is correct 100%, then what has gone wrong?&lt;br /&gt;  &lt;br /&gt;With 2.0 and above versions on .Net when you set a column of a gridview to visibility false&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;it doesn&#39;t&amp;#160; bind the data to this hidden column. You must be really disappointed hearing this &lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;news, even I did. Wait you don&#39;t have to worry so long.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Don&#39;t set your column&#39;s property visibility to false in the design view. If you do so it will&lt;br /&gt;  &lt;br /&gt;call before the databind. When there is no column databing is not take place and ignores this hidden column.&lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;Obvious we&amp;#160; don&#39;t get data (you are lucky only you didn&#39;t get the data, worse case this might throw an error)&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Trick to overcome this issue,&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;RowCreated event of a GridView takes place after the data binding, so we can do something like following &lt;br /&gt;  &lt;br /&gt;code snippet.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;csharpcode&quot;&gt; &lt;span class=&quot;kwrd&quot;&gt;protected&lt;/span&gt; &lt;span class=&quot;kwrd&quot;&gt;void&lt;/span&gt; grd_RowCreated(&lt;span class=&quot;kwrd&quot;&gt;object&lt;/span&gt; sender, GridViewRowEventArgs e)&lt;br /&gt;{&lt;br /&gt;       e.Row.Cells[8].Visible = &lt;span class=&quot;kwrd&quot;&gt;false&lt;/span&gt;;&lt;br /&gt; }&lt;/pre&gt;&lt;br /&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, &quot;Courier New&quot;, courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;This hides the column, still you can access the cell value,&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;csharpcode&quot;&gt; &lt;span class=&quot;kwrd&quot;&gt;protected&lt;/span&gt; &lt;span class=&quot;kwrd&quot;&gt;void&lt;/span&gt; grd_SelectedIndexChanged(&lt;span class=&quot;kwrd&quot;&gt;object&lt;/span&gt; sender, EventArgs e)&lt;br /&gt; {&lt;br /&gt;      GridViewRow row = grd.SelectedRow;&lt;br /&gt;      &lt;span class=&quot;kwrd&quot;&gt;string&lt;/span&gt; aValue = row.Cells[8].Text; &lt;span class=&quot;rem&quot;&gt;//I get the cell value, I am happy!&lt;br /&gt;&lt;/span&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;csharpcode&quot;&gt;&amp;#160;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Enjoy working on Gridview control,&lt;/p&gt;  </content><link rel='replies' type='application/atom+xml' href='http://shirans.blogspot.com/feeds/8483247713168239754/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/37107620/8483247713168239754' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/8483247713168239754'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/8483247713168239754'/><link rel='alternate' type='text/html' href='http://shirans.blogspot.com/2011/01/gridview-hidden-column-data-access.html' title='GridView Hidden Column Data Access'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37107620.post-2113138723994483896</id><published>2011-01-11T20:18:00.001+05:30</published><updated>2011-01-11T20:20:03.955+05:30</updated><title type='text'>ASP.Net Gridview column totals</title><content type='html'>&lt;p&gt;Most of the developers use repeater control, in case where they have to show the totals of a list&amp;#160; instead gridview control.   &lt;br /&gt;This is not that difficult to show the totals on the gridview itself on footer template. I will show the steps how to do this in this post.&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Drag and drop a Gridview on your .aspx and bind the data.&lt;/p&gt;  &lt;p&gt;eg:&amp;#160; &lt;/p&gt;  &lt;p&gt;grd.DataSource = ds;   &lt;br /&gt;grd.DataBind();&lt;/p&gt;  &lt;p&gt;on above code snippet grd is the my Gridview name and ds is my dataset. (you can use any datasource as your convenience)&lt;/p&gt;  &lt;p&gt;Set the &lt;strong&gt;ShowFooter&lt;/strong&gt; property to &lt;strong&gt;True&lt;/strong&gt; of the GridView, this will show the footer on the Gridview.&lt;/p&gt;  &lt;p&gt;Write the RowDataBound&amp;#160; event as follows, you can change the way you want. (in the following scenario I have not showed the declaration of chkAmount and transCharge&amp;#160; &lt;br /&gt;decimal type variables, these two are class level varibles)&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&amp;#160;&lt;/p&gt; &lt;/blockquote&gt;  &lt;pre class=&quot;csharpcode&quot;&gt;        &lt;span class=&quot;kwrd&quot;&gt;protected&lt;/span&gt; &lt;span class=&quot;kwrd&quot;&gt;void&lt;/span&gt; grd_RowDataBound(&lt;span class=&quot;kwrd&quot;&gt;object&lt;/span&gt; sender, GridViewRowEventArgs e)&lt;br /&gt;        {&lt;br /&gt;          &lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;if&lt;/span&gt; (e.Row.RowType == DataControlRowType.DataRow)&lt;br /&gt;            {                &lt;br /&gt;                chkAmount += Convert.ToDecimal(DataBinder.Eval(e.Row.DataItem,  &lt;span class=&quot;str&quot;&gt;&amp;quot;ChkAmount&amp;quot;&lt;/span&gt;));&lt;br /&gt;                transCharge += Convert.ToDecimal(DataBinder.Eval(e.Row.DataItem, &lt;span class=&quot;str&quot;&gt;&amp;quot;TransCharge&amp;quot;&lt;/span&gt;));&lt;br /&gt;            }&lt;br /&gt;            &lt;span class=&quot;kwrd&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;kwrd&quot;&gt;if&lt;/span&gt; (e.Row.RowType == DataControlRowType.Footer) &lt;span class=&quot;rem&quot;&gt;// this is the footer identification&lt;/span&gt;&lt;br /&gt;            {&lt;br /&gt;                e.Row.Cells[4].Text = &lt;span class=&quot;str&quot;&gt;&amp;quot;Totals:&amp;quot;&lt;/span&gt;;&lt;br /&gt;                &lt;span class=&quot;rem&quot;&gt;// display totals on cells (in my case I have selected last 3 columns)&lt;/span&gt;&lt;br /&gt;                e.Row.Cells[6].Text = chkAmount.ToString(&lt;span class=&quot;str&quot;&gt;&amp;quot;N2&amp;quot;&lt;/span&gt;);               &lt;br /&gt;                e.Row.Cells[5].Text = transCharge.ToString(&lt;span class=&quot;str&quot;&gt;&amp;quot;N2&amp;quot;&lt;/span&gt;);&lt;br /&gt;                &lt;br /&gt;            }           &lt;br /&gt;        }      &lt;/pre&gt;&lt;br /&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, &quot;Courier New&quot;, courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&amp;#160;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Hope this is really easier when it comes to show totals on Gridview footer area . Please refer the following image which is the output of my above coding effort.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikWsdxkh41ad0N4ug9Bn3v7Fnddhz7l1LtQYgbUn8zl8bG7dIbfdpk_0x2OJL_2Ye3c_77Q8WeR5goMJjkBMzlEPf1soCajY6J_jzzSNOSgjwCtLhRL9hWmDMcZHPHenTYea8f/s1600-h/gridview-column-totals%5B4%5D.jpg&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px&quot; border=&quot;0&quot; alt=&quot;gridview-column-totals&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJohVQoAEdENg7k73JpxFHGTGc8Mnv22BIc1eEaVxxFHLnztBrSZ_wpuLpktTh1KP-a2G5X1FBcSv3sk8r8PCf54yxHppGt4bhGgNDkBTiHMdCUywDqmV87zPhvRTPFYcN5ZLX/?imgmax=800&quot; width=&quot;729&quot; height=&quot;86&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  </content><link rel='replies' type='application/atom+xml' href='http://shirans.blogspot.com/feeds/2113138723994483896/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/37107620/2113138723994483896' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/2113138723994483896'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/2113138723994483896'/><link rel='alternate' type='text/html' href='http://shirans.blogspot.com/2011/01/aspnet-gridview-column-totals.html' title='ASP.Net Gridview column totals'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJohVQoAEdENg7k73JpxFHGTGc8Mnv22BIc1eEaVxxFHLnztBrSZ_wpuLpktTh1KP-a2G5X1FBcSv3sk8r8PCf54yxHppGt4bhGgNDkBTiHMdCUywDqmV87zPhvRTPFYcN5ZLX/s72-c?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37107620.post-5476397402381291839</id><published>2010-09-20T09:47:00.007+05:30</published><updated>2010-09-20T10:37:49.600+05:30</updated><title type='text'>Rename IIS7 application (Virtual directory)</title><content type='html'>This command will rename an existing directory on IIS7,&lt;br /&gt;&lt;br /&gt;C:&gt; %systemroot%\system32\inetsrv\appcmd set app &quot;Default Web Site/OldApplicationName&quot; -path:/NewApplicationName&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiV88btWMf0gHJa26GpmtH6_ZkOLWmAG8XIiCdVLJTyeDSfudnVDQXz5QYQZwMHrAiOt6skQnIsLUgRQnz4lkT2z4q1wsRBJuY4LivYJAl1N-jntzUPtrVfo6ejKzstPpPAJNoq/s1600/rename.jpg&quot;&gt;&lt;img style=&quot;cursor:pointer; cursor:hand;width: 400px; height: 31px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiV88btWMf0gHJa26GpmtH6_ZkOLWmAG8XIiCdVLJTyeDSfudnVDQXz5QYQZwMHrAiOt6skQnIsLUgRQnz4lkT2z4q1wsRBJuY4LivYJAl1N-jntzUPtrVfo6ejKzstPpPAJNoq/s400/rename.jpg&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5518857947755805474&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You just have to change OldApplicationName and NewApplicationName as per your requirement.</content><link rel='replies' type='application/atom+xml' href='http://shirans.blogspot.com/feeds/5476397402381291839/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/37107620/5476397402381291839' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/5476397402381291839'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/5476397402381291839'/><link rel='alternate' type='text/html' href='http://shirans.blogspot.com/2010/09/rename-iis7-application-virtual.html' title='Rename IIS7 application (Virtual directory)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiV88btWMf0gHJa26GpmtH6_ZkOLWmAG8XIiCdVLJTyeDSfudnVDQXz5QYQZwMHrAiOt6skQnIsLUgRQnz4lkT2z4q1wsRBJuY4LivYJAl1N-jntzUPtrVfo6ejKzstPpPAJNoq/s72-c/rename.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37107620.post-2218211560015294061</id><published>2010-08-03T09:26:00.004+05:30</published><updated>2010-08-03T09:39:51.551+05:30</updated><title type='text'>.NET Entity Data Model template missing</title><content type='html'>I may be bit late, but I thought I must give a try on a MVC Architecture Model.&lt;br /&gt;So, as I do always started to write a sort of &quot;Hello World&quot; app. When I try to create the ADO.NET Entity Data Model, I could not find ADO.NET Entity Data Model template.&lt;br /&gt;Is something wrong here? yep, we need to install Microsoft Visual Studio 2008 Service Pack 1 (iso). Here we go I have ADO.NET Entity Data Model template under my  Data category.&lt;br /&gt;&lt;br /&gt;There is more than one way...</content><link rel='replies' type='application/atom+xml' href='http://shirans.blogspot.com/feeds/2218211560015294061/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/37107620/2218211560015294061' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/2218211560015294061'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/2218211560015294061'/><link rel='alternate' type='text/html' href='http://shirans.blogspot.com/2010/08/net-entity-data-model-template-missing.html' title='.NET Entity Data Model template missing'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37107620.post-1520965090565245923</id><published>2010-07-28T11:15:00.002+05:30</published><updated>2010-07-28T11:35:07.238+05:30</updated><title type='text'>Page load twice</title><content type='html'>I know you may have already frustrated of this issue. Even I was really fed up when I came a cross this weird issue. I was facing this issue when I test my web application with Firefox 3.6.6, I did not check with any previous versions (and I found no issues with IE and some other browsers). Believe me it takes a lot of time to cure this. There are many possibilities but mine was a bad CSS practice, you may be wondering how CSS reloads the whole web page.&lt;br /&gt;This was the issue in my CSS code &lt;b&gt;background-image:url(&#39;&#39;)&lt;/b&gt;, having a empty image URL.&lt;br /&gt;I thought reloading the page twice an issue with my coding on page behind, but ultimately it was a CSS issue.&lt;br /&gt;&lt;br /&gt;Let me tel me why an empty URL gives such a major issue. Once the page loads the firefox still tries to find the empty URLs so page loads twice but IE just replaces the empty URL with null value.&lt;br /&gt;&lt;br /&gt;As I mentioned above this may not the exact cause for your problem but one of the following might cause your issue. Please visit the following URL (http://www.110mb.com/forum/how-to-stop-firefox-dual-pageloads-t27704.0.html) to see more possibilities. Hope this guides you to find the issue.</content><link rel='replies' type='application/atom+xml' href='http://shirans.blogspot.com/feeds/1520965090565245923/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/37107620/1520965090565245923' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/1520965090565245923'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/1520965090565245923'/><link rel='alternate' type='text/html' href='http://shirans.blogspot.com/2010/07/page-load-twice.html' title='Page load twice'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37107620.post-8444203531222285276</id><published>2010-07-19T17:16:00.002+05:30</published><updated>2010-07-19T17:27:22.928+05:30</updated><title type='text'>must be placed inside a form tag with runat=server</title><content type='html'>I got to explain the scenario I cameacross this issue, as this might vary for some other scenarios. I got this error when I try to override the PreRender event of the masterpage&#39;s&lt;br /&gt;Content Holder (idea was to get the html of that area what evel loding in to that). &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ContentPlaceHolder cph = (ContentPlaceHolder)Master.Controls[0].FindControl(&quot;master_content_holder&quot;);&lt;br /&gt;var sb = new StringBuilder();&lt;br /&gt;var sw = new StringWriter(sb);&lt;br /&gt;var htmlTxtWr = new HtmlTextWriter(sw);&lt;br /&gt;SmtpUtil smtpUtil = new SmtpUtil();            &lt;br /&gt;cph.RenderControl(htmlTxtWr);&lt;br /&gt;&lt;br /&gt;I got this error exactly on the last line of code. As error message states our all controlls must be inside a form tag with runat = server (note you can&#39;t have form tags on child pages, do not try it, it won&#39;t work). I did a small dirty work as to fix this issue.&lt;br /&gt;I just overrided the VerifyRenderingInServerForm mehtod on child page. For me it worked properly, as i didn&#39;t have any verification to be done on my page. Be carefull before use.</content><link rel='replies' type='application/atom+xml' href='http://shirans.blogspot.com/feeds/8444203531222285276/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/37107620/8444203531222285276' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/8444203531222285276'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/8444203531222285276'/><link rel='alternate' type='text/html' href='http://shirans.blogspot.com/2010/07/must-be-placed-inside-form-tag-with.html' title='must be placed inside a form tag with runat=server'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37107620.post-6071532549673413540</id><published>2010-07-15T22:29:00.001+05:30</published><updated>2010-07-15T22:31:48.836+05:30</updated><title type='text'>Drop emails in a folder</title><content type='html'>&lt;p&gt;&lt;br&gt;Instead sending an email we can configure the web.config to drop the mail in a local folder.&lt;br&gt;This is a good feature when it come to testing email on your application while developing.&lt;/p&gt; &lt;p&gt;Just add the following on the web.config&lt;/p&gt; &lt;div class=&quot;csharpcode&quot;&gt;&lt;pre&gt;&lt;span class=&quot;lnum&quot;&gt;   1:  &lt;/span&gt;   &amp;lt;system.net&amp;gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class=&quot;lnum&quot;&gt;   2:  &lt;/span&gt;     &amp;lt;mailSettings&amp;gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class=&quot;lnum&quot;&gt;   3:  &lt;/span&gt;       &amp;lt;smtp deliveryMethod=&lt;span class=&quot;str&quot;&gt;&quot;SpecifiedPickupDirectory&quot;&lt;/span&gt;&amp;gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class=&quot;lnum&quot;&gt;   4:  &lt;/span&gt;      &amp;lt;specifiedPickupDirectory pickupDirectoryLocation=&quot;C:\testmails\&quot;/&amp;gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class=&quot;lnum&quot;&gt;   5:  &lt;/span&gt;       &amp;lt;/smtp&amp;gt;            &lt;/pre&gt;&lt;pre&gt;&lt;span class=&quot;lnum&quot;&gt;   6:  &lt;/span&gt;     &amp;lt;/mailSettings&amp;gt;       &lt;/pre&gt;&lt;pre&gt;&lt;span class=&quot;lnum&quot;&gt;   7:  &lt;/span&gt;    &amp;lt;/system.net&amp;gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;style type=&quot;text/css&quot;&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, &quot;Courier New&quot;, courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;br /&gt;&lt;/style&gt;&lt;br /&gt;&lt;pre class=&quot;csharpcode&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre class=&quot;csharpcode&quot;&gt;Following code will drop an email in your folder&lt;/pre&gt;&lt;br /&gt;&lt;div class=&quot;csharpcode&quot;&gt;&lt;pre&gt;&lt;span class=&quot;lnum&quot;&gt;   1: &lt;/span&gt;var smtpClient = &lt;span class=&quot;kwrd&quot;&gt;new&lt;/span&gt; SmtpClient();&lt;/pre&gt;&lt;pre&gt;&lt;span class=&quot;lnum&quot;&gt;   2: &lt;/span&gt;var message = &lt;span class=&quot;kwrd&quot;&gt;new&lt;/span&gt; MailMessage(&lt;span class=&quot;str&quot;&gt;&quot;from@from.com&quot;&lt;/span&gt;, &lt;span class=&quot;str&quot;&gt;&quot;to@to.com&quot;&lt;/span&gt;);&lt;/pre&gt;&lt;pre&gt;&lt;span class=&quot;lnum&quot;&gt;   3: &lt;/span&gt;message.Subject = &lt;span class=&quot;str&quot;&gt;&quot;This is the mail subject&quot;&lt;/span&gt;;            &lt;/pre&gt;&lt;pre&gt;&lt;span class=&quot;lnum&quot;&gt;   4: &lt;/span&gt;message.Body = &lt;span class=&quot;str&quot;&gt;&quot;this is the mailm body&quot;&lt;/span&gt;;&lt;/pre&gt;&lt;pre&gt;&lt;span class=&quot;lnum&quot;&gt;   5:&lt;/span&gt; smtpClient.Send(message);         &lt;/pre&gt;&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;Double click on the file in your C:\testmails\ folder it will open up on outlook&lt;br&gt;as an email.&lt;/pre&gt;&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;style type=&quot;text/css&quot;&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, &quot;Courier New&quot;, courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;br /&gt;&lt;/style&gt;  </content><link rel='replies' type='application/atom+xml' href='http://shirans.blogspot.com/feeds/6071532549673413540/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/37107620/6071532549673413540' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/6071532549673413540'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/6071532549673413540'/><link rel='alternate' type='text/html' href='http://shirans.blogspot.com/2010/07/drop-emails-in-folder.html' title='Drop emails in a folder'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37107620.post-8803029936838883404</id><published>2010-07-08T21:54:00.001+05:30</published><updated>2010-07-08T21:54:47.464+05:30</updated><title type='text'>Take asp.net web site offline App_Offline.htm</title><content type='html'>&lt;p&gt;Do not need to do any setting on ISS, instead just move in an HTMl file named   &lt;br /&gt;&lt;strong&gt;App_Offline.htm .&lt;/strong&gt; This will stop responding to any web request but as the response    &lt;br /&gt;this file passes until you remove it from the root or rename it.&lt;/p&gt;  </content><link rel='replies' type='application/atom+xml' href='http://shirans.blogspot.com/feeds/8803029936838883404/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/37107620/8803029936838883404' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/8803029936838883404'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/8803029936838883404'/><link rel='alternate' type='text/html' href='http://shirans.blogspot.com/2010/07/take-aspnet-web-site-offline.html' title='Take asp.net web site offline App_Offline.htm'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37107620.post-2374483745129645522</id><published>2010-06-29T13:13:00.004+05:30</published><updated>2010-06-29T13:28:32.394+05:30</updated><title type='text'>SQL DATE FORMAT</title><content type='html'>You might have comeacross, situations where the date doesn&#39;t show the way you want. Hope this table will help you to get sorted out this issue. &lt;br/&gt;&lt;br /&gt;&lt;table&gt;&lt;br /&gt;&lt;tbody&gt;&lt;br /&gt;&lt;tr valign=&quot;top&quot; align=&quot;left&quot;&gt;&lt;br /&gt;&lt;td colspan=&quot;3&quot;  style=&quot;color:gray;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size:85%;color:#ffffff;&quot;&gt;DATE FORMATS&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size:85%;&quot;&gt; &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr valign=&quot;top&quot; align=&quot;left&quot;&gt;&lt;br /&gt;&lt;td&gt;&lt;b&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;Date Format&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size:85%;&quot;&gt; &lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;b&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;Query&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size:85%;&quot;&gt; (current date: 12/30/2006) &lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;b&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;Show&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size:85%;&quot;&gt; &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;br /&gt;&lt;tr valign=&quot;top&quot; align=&quot;left&quot;&gt;&lt;br /&gt;&lt;td align=&quot;middle&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;1 &lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;select convert(varchar, getdate(), 1) &lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;12/30/06 &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr valign=&quot;top&quot; align=&quot;left&quot;&gt;&lt;br /&gt;&lt;td align=&quot;middle&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;2 &lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;select convert(varchar, getdate(), 2) &lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;06.12.30 &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr valign=&quot;top&quot; align=&quot;left&quot;&gt;&lt;br /&gt;&lt;td align=&quot;middle&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;3 &lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;br /&gt;&lt;td&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;select convert(varchar, getdate(), 3) &lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;30/12/06 &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr valign=&quot;top&quot; align=&quot;left&quot;&gt;&lt;br /&gt;&lt;td align=&quot;middle&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;4 &lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;select convert(varchar, getdate(), 4) &lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;30.12.06 &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr valign=&quot;top&quot; align=&quot;left&quot;&gt;&lt;br /&gt;&lt;td align=&quot;middle&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;5 &lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;select convert(varchar, getdate(), 5) &lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;30-12-06 &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;br /&gt;&lt;tr valign=&quot;top&quot; align=&quot;left&quot;&gt;&lt;br /&gt;&lt;td align=&quot;middle&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;6 &lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;select convert(varchar, getdate(), 6) &lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;30 Dec 06 &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr valign=&quot;top&quot; align=&quot;left&quot;&gt;&lt;br /&gt;&lt;td align=&quot;middle&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;7 &lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;select convert(varchar, getdate(), 7) &lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;Dec 30, 06 &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr valign=&quot;top&quot; align=&quot;left&quot;&gt;&lt;br /&gt;&lt;td align=&quot;middle&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;10 &lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;br /&gt;&lt;td&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;select convert(varchar, getdate(), 10) &lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;12-30-06 &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr valign=&quot;top&quot; align=&quot;left&quot;&gt;&lt;br /&gt;&lt;td align=&quot;middle&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;11 &lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;select convert(varchar, getdate(), 11) &lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;06/12/30 &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr valign=&quot;top&quot; align=&quot;left&quot;&gt;&lt;br /&gt;&lt;td align=&quot;middle&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;101 &lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;select convert(varchar, getdate(), 101) &lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;12/30/2006 &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;br /&gt;&lt;tr valign=&quot;top&quot; align=&quot;left&quot;&gt;&lt;br /&gt;&lt;td align=&quot;middle&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;102 &lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;select convert(varchar, getdate(), 102) &lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;2006.12.30 &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr valign=&quot;top&quot; align=&quot;left&quot;&gt;&lt;br /&gt;&lt;td align=&quot;middle&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;103 &lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;select convert(varchar, getdate(), 103) &lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;30/12/2006 &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr valign=&quot;top&quot; align=&quot;left&quot;&gt;&lt;br /&gt;&lt;td align=&quot;middle&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;104 &lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;br /&gt;&lt;td&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;select convert(varchar, getdate(), 104) &lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;30.12.2006 &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr valign=&quot;top&quot; align=&quot;left&quot;&gt;&lt;br /&gt;&lt;td align=&quot;middle&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;105 &lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;select convert(varchar, getdate(), 105) &lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;30-12-2006 &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr valign=&quot;top&quot; align=&quot;left&quot;&gt;&lt;br /&gt;&lt;td align=&quot;middle&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;106 &lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;select convert(varchar, getdate(), 106) &lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;30 Dec 2006 &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;br /&gt;&lt;tr valign=&quot;top&quot; align=&quot;left&quot;&gt;&lt;br /&gt;&lt;td align=&quot;middle&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;107 &lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;select convert(varchar, getdate(), 107) &lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;Dec 30, 2006 &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr valign=&quot;top&quot; align=&quot;left&quot;&gt;&lt;br /&gt;&lt;td align=&quot;middle&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;110 &lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;select convert(varchar, getdate(), 110) &lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;12-30-2006 &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr valign=&quot;top&quot; align=&quot;left&quot;&gt;&lt;br /&gt;&lt;td align=&quot;middle&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;111 &lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;br /&gt;&lt;td&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;select convert(varchar, getdate(), 111) &lt;/span&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;2006/12/30 &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr valign=&quot;top&quot; align=&quot;left&quot;&gt;&lt;br /&gt;&lt;td&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;/td&gt;&lt;br /&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;/tbody&gt;&lt;br /&gt;&lt;/table&gt;</content><link rel='replies' type='application/atom+xml' href='http://shirans.blogspot.com/feeds/2374483745129645522/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/37107620/2374483745129645522' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/2374483745129645522'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/2374483745129645522'/><link rel='alternate' type='text/html' href='http://shirans.blogspot.com/2010/06/sql-date-format.html' title='SQL DATE FORMAT'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37107620.post-8271272254897411971</id><published>2010-06-25T10:04:00.001+05:30</published><updated>2010-06-25T10:06:49.966+05:30</updated><title type='text'>SQL Split Function</title><content type='html'>I was just trying to do a split in a stored procedure, and found this&lt;br /&gt;link. This is really helpfull comparing with other resources available on the web.&lt;br /&gt;&lt;br /&gt;http://sqltutorials.blogspot.com/2007/09/sql-function-split.html&lt;br /&gt;&lt;br /&gt;Below is Split Function in SQL&lt;br /&gt;&lt;br /&gt;DECLARE @NextString NVARCHAR(40)&lt;br /&gt;DECLARE @Pos INT&lt;br /&gt;DECLARE @NextPos INT&lt;br /&gt;DECLARE @String NVARCHAR(40)&lt;br /&gt;DECLARE @Delimiter NVARCHAR(40)&lt;br /&gt;&lt;br /&gt;SET @String =&#39;SQL,TUTORIALS&#39;&lt;br /&gt;SET @Delimiter = &#39;,&#39;&lt;br /&gt;SET @String = @String + @Delimiter&lt;br /&gt;SET @Pos = charindex(@Delimiter,@String)&lt;br /&gt;&lt;br /&gt;WHILE (@pos &lt;&gt; 0)&lt;br /&gt;BEGIN&lt;br /&gt;SET @NextString = substring(@String,1,@Pos - 1)&lt;br /&gt;SELECT @NextString -- Show Results&lt;br /&gt;SET @String = substring(@String,@pos+1,len(@String))&lt;br /&gt;SET @pos = charindex(@Delimiter,@String)&lt;br /&gt;END &lt;br /&gt;&lt;br /&gt;Result&lt;br /&gt;- SQL&lt;br /&gt;- TUTORIALS</content><link rel='replies' type='application/atom+xml' href='http://shirans.blogspot.com/feeds/8271272254897411971/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/37107620/8271272254897411971' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/8271272254897411971'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/8271272254897411971'/><link rel='alternate' type='text/html' href='http://shirans.blogspot.com/2010/06/sql-split-function.html' title='SQL Split Function'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37107620.post-3878944019084506696</id><published>2010-05-23T19:43:00.001+05:30</published><updated>2010-05-23T19:43:41.185+05:30</updated><title type='text'>Dotnetnuke System.Security.SecurityException: Request for the permission of type &amp;#39;System.Web.AspNetHostingPermission</title><content type='html'>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;I got this error when I try to install Dotnetnuke 05.04.02 on my computer on Wndows 7 and IIS7. There was no proper solution for this on the web, but I just change the application pool identity to NetworkService and application worked as expected.&lt;/p&gt;  &lt;p&gt;Steps :   &lt;br /&gt;Go to IIS and select Application Pools.    &lt;br /&gt;Select the DNN web pool on right hand pane.    &lt;br /&gt;On Actions press Set Application Pool Default link.    &lt;br /&gt;Change the Identity under Process Model to NetworkService    &lt;br /&gt;    &lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj46l0Lw7TxZpBxemNX7iA0ve6w53d7SRPd2_ughii5mX-80qUWrT5cNAAx2sYzwsQlSCkWak699BYDLE9mbSE1eiGvy2vMT0-nQluNapyD8OMhkq4QxtNWX6PTVn-co2l5EoGR/s1600-h/ApplicationPool%5B4%5D.gif&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px&quot; border=&quot;0&quot; alt=&quot;ApplicationPool&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnwFJ-j86YCDAtC-ovpgaP-msWMcs2JCFs7EdTIq_30SA8MfLd_LFEdWOG-hl0vx0Au3_z26p8egNM3_boxe0iwAuIky_1payNtMM3a2JvQDeSt977S7pg91dbAtcplq45B7KE/?imgmax=800&quot; width=&quot;679&quot; height=&quot;445&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  </content><link rel='replies' type='application/atom+xml' href='http://shirans.blogspot.com/feeds/3878944019084506696/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/37107620/3878944019084506696' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/3878944019084506696'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/3878944019084506696'/><link rel='alternate' type='text/html' href='http://shirans.blogspot.com/2010/05/dotnetnuke-systemsecuritysecurityexcept.html' title='Dotnetnuke System.Security.SecurityException: Request for the permission of type &amp;#39;System.Web.AspNetHostingPermission'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnwFJ-j86YCDAtC-ovpgaP-msWMcs2JCFs7EdTIq_30SA8MfLd_LFEdWOG-hl0vx0Au3_z26p8egNM3_boxe0iwAuIky_1payNtMM3a2JvQDeSt977S7pg91dbAtcplq45B7KE/s72-c?imgmax=800" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37107620.post-9014264458895306587</id><published>2010-05-19T12:57:00.001+05:30</published><updated>2010-05-19T13:00:42.910+05:30</updated><title type='text'>Use a Web Proxy for Cross-Domain XMLHttpRequest Calls</title><content type='html'>&lt;p&gt;   &lt;br /&gt;I had an issue when calling web service through AJAX from 3rd party URL.    &lt;br /&gt;&lt;a href=&quot;http://developer.yahoo.com/javascript/howto-proxy.html&quot; target=&quot;_blank&quot;&gt;Here&lt;/a&gt; is the solution     &lt;br /&gt;    &lt;br /&gt;&lt;a title=&quot;http://developer.yahoo.com/javascript/howto-proxy.html&quot; href=&quot;http://developer.yahoo.com/javascript/howto-proxy.html&quot;&gt;http://developer.yahoo.com/javascript/howto-proxy.html&lt;/a&gt;&lt;/p&gt;  </content><link rel='replies' type='application/atom+xml' href='http://shirans.blogspot.com/feeds/9014264458895306587/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/37107620/9014264458895306587' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/9014264458895306587'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/9014264458895306587'/><link rel='alternate' type='text/html' href='http://shirans.blogspot.com/2010/05/use-web-proxy-for-cross-domain.html' title='Use a Web Proxy for Cross-Domain XMLHttpRequest Calls'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37107620.post-5519648410976388175</id><published>2010-05-07T11:08:00.001+05:30</published><updated>2010-05-07T11:09:53.204+05:30</updated><title type='text'>Using JQuery on blogspot</title><content type='html'>&lt;p&gt;As I use JQuery these days, I just though how I can use JQuery on my blog.&lt;br&gt;I tried to do this and found It’s very easy to use it with blogger. Just a few steps &lt;br&gt;make this possible. You might be wondering where you can place the JQuery file in &lt;br&gt;blogger. Google has host these file on the following path “http://ajax.googleapis.com/ajax/libs/jquery/”. Just have to select the version you prefer to use.&lt;/p&gt; &lt;p&gt;Just see the following steps.&lt;br&gt;&lt;br&gt;&lt;strong&gt;Step 1:&lt;/strong&gt;&lt;br&gt;Add the following code between header tags of your blog’s HTML. &lt;br&gt;&lt;span style=&quot;color: blue&quot;&gt;&lt;br&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;head&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;script &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&#39;http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js&#39; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&#39;text/javascript&#39;/&amp;gt;&lt;br&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;head&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;a href=&quot;http://11011.net/software/vspaste&quot;&gt;&lt;/a&gt; &lt;p&gt;Example:&lt;br&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuOQrZ24_S4_gTXuGu30OV2V0_Pvzyj_cqf74nFJzHc5v4i3TB8ecf3EQe0xDuREUM_NIi0JQXAWosw56cknO8g3iqn0qM6e3dpevA-rHy4Ljl-bGybVWWhsxXSv9kwZVBHY6U/s1600-h/1%5B6%5D.png&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;1&quot; border=&quot;0&quot; alt=&quot;1&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIWHqjz2eYbDcd8zFq0rqEPhwfXi0EteeFaJHq6qW0walWJVbFioYdeTVGjqK8jTbyMahun6PSpb2uTYQ54WGxcRYPn2b6FiTWrJIEObf_-f1ckGxZM0MQVGXGvtQcyz1ruDMK/?imgmax=800&quot; width=&quot;593&quot; height=&quot;332&quot;&gt;&lt;/a&gt; &lt;/p&gt; &lt;p&gt;&lt;strong&gt;Step 2:&lt;br&gt;&lt;/strong&gt;Add the functions in between header tags as follows,&lt;br&gt;&lt;span style=&quot;color: blue&quot;&gt;&lt;br&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;head&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;script &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&#39;http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js&#39; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&#39;text/javascript&#39;/&amp;gt;&lt;br&gt;&lt;span style=&quot;color: blue&quot;&gt;&lt;br&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;script &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;text/javascript&quot;&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; function &lt;/span&gt;MouseOn() {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(document).ready(&lt;span style=&quot;color: blue&quot;&gt;function&lt;/span&gt;() {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(&lt;span style=&quot;color: #a31515&quot;&gt;&quot;img&quot;&lt;/span&gt;).toggleClass(&lt;span style=&quot;color: #a31515&quot;&gt;&quot;newClass&quot;&lt;/span&gt;);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: green&quot;&gt;//$(&quot;#testPara&quot;).append(&quot;Shiran the greatest&quot; + count );&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;});&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;script&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br&gt;&lt;/span&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;head&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Example :&lt;br&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZTLWwgODJkuJmmJjfIl_gXMfh3tmb9tVr2jmt9bli8vfZiWNgF7AyZApQ99X0OcMkN2Aj_Y8C2MhATMt5903z3_rcmxBmc086aRfRu2_svN1ST4WfVq9bF3OmH_OoXCYxoJy5/s1600-h/22%5B7%5D.png&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;22&quot; border=&quot;0&quot; alt=&quot;22&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLvzHwxyh7Ha-dFduXE8JAJzKtBVCrB-UgPfLAzf-k7HjNijS33uyFBN7EzE6YWHbMp_C5bzePhYcKDbXBoumij2rSCRDdTamlxryCRFxq-yJ35HAmnjskIXhos82Z9h-3gmQF/?imgmax=800&quot; width=&quot;594&quot; height=&quot;276&quot;&gt;&lt;/a&gt; &lt;/p&gt;&lt;pre class=&quot;code&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;a href=&quot;http://11011.net/software/vspaste&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;p&gt;&lt;strong&gt;Step 3: (Optional)&lt;br&gt;&lt;/strong&gt;If there are any CSS involved embed them also in between header tags as follows&lt;br&gt;&lt;span style=&quot;color: blue&quot;&gt;&lt;br&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;head&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;script &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&#39;http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js&#39; &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&#39;text/javascript&#39;/&amp;gt;&lt;br&gt;&lt;span style=&quot;color: blue&quot;&gt;&lt;br&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;script &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;text/javascript&quot;&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; function &lt;/span&gt;ChangeCSS() {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(document).ready(&lt;span style=&quot;color: blue&quot;&gt;function&lt;/span&gt;() {&lt;br&gt;&lt;/span&gt;&lt;span style=&quot;color: green&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //here this will toggle CSS classes on an event&lt;br&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(&lt;span style=&quot;color: #a31515&quot;&gt;&quot;img&quot;&lt;/span&gt;).toggleClass(&lt;span style=&quot;color: #a31515&quot;&gt;&quot;newClass&quot;&lt;/span&gt;);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: green&quot;&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;});&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;style &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&quot;text/css&quot;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;.toggler &lt;/span&gt;{&lt;span style=&quot;color: red&quot;&gt;width&lt;/span&gt;: &lt;span style=&quot;color: blue&quot;&gt;100px&lt;/span&gt;; &lt;span style=&quot;color: red&quot;&gt;height&lt;/span&gt;: &lt;span style=&quot;color: blue&quot;&gt;200px&lt;/span&gt;;}&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #a31515&quot;&gt;.newClass &lt;/span&gt;{&lt;span style=&quot;color: red&quot;&gt;width&lt;/span&gt;: &lt;span style=&quot;color: blue&quot;&gt;500px&lt;/span&gt;; &lt;span style=&quot;color: red&quot;&gt;height&lt;/span&gt;: &lt;span style=&quot;color: blue&quot;&gt;866px&lt;/span&gt;;}&lt;br /&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;style&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;p&gt;&lt;span style=&quot;color: blue&quot;&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;script&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;br&gt;&lt;/span&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;head&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Need to call the above ChangeCSS() JS function where this need to be done.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Example:&lt;br&gt;this maight be in post or a HTML/JavaScript gadget&lt;br&gt;&lt;br&gt;&amp;lt;img class=&quot;toggler&quot; src=&quot;&lt;a href=&quot;http://1.bp.blogspot.com/_8fX3E/S-L0RblzI/AAAADtQ/nB8kJYc/s200/108_f0.jpg&amp;quot;&quot;&gt;http://1.bp.blogspot.com/_8fX3E/S-L0RblzI/AAAADtQ/nB8kJYc/s200/108_f0.jpg&quot;&lt;/a&gt; onmouseover=&quot;ChangeCSS()&quot;/&amp;gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Give your visitors a shock.&lt;/p&gt;  </content><link rel='replies' type='application/atom+xml' href='http://shirans.blogspot.com/feeds/5519648410976388175/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/37107620/5519648410976388175' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/5519648410976388175'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/5519648410976388175'/><link rel='alternate' type='text/html' href='http://shirans.blogspot.com/2010/05/using-jquery-on-blogspot.html' title='Using JQuery on blogspot'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIWHqjz2eYbDcd8zFq0rqEPhwfXi0EteeFaJHq6qW0walWJVbFioYdeTVGjqK8jTbyMahun6PSpb2uTYQ54WGxcRYPn2b6FiTWrJIEObf_-f1ckGxZM0MQVGXGvtQcyz1ruDMK/s72-c?imgmax=800" height="72" width="72"/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37107620.post-2755774462507633010</id><published>2010-05-06T18:10:00.001+05:30</published><updated>2010-05-06T18:11:03.978+05:30</updated><title type='text'>Enable JQuery intellisense in VS 2008</title><content type='html'>&lt;p&gt;I just started to do some JQuery on one of my VS projects. I found that we can have intellisense on VS2008. To make this available I had to do some installations and follow few steps to get intellisense on VS2008, I hope these would helpful you as well in projects.&lt;/p&gt;  &lt;p&gt;Step 1:   &lt;br /&gt;Install VS 2008 SP1, you can get it &lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?FamilyId=FBEE1648-7106-44A7-9649-6D9F6D58056E&amp;amp;displaylang=en&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;    &lt;br /&gt;    &lt;br /&gt;Step2:    &lt;br /&gt;Install VS 2008 Patch KB958502, you can get it &lt;a href=&quot;http://code.msdn.microsoft.com/KB958502/Release/ProjectReleases.aspx?ReleaseId=1736&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Step3:   &lt;br /&gt;Download JQuery js file and JQuery vsdoc.js, both these should be one version    &lt;br /&gt;Eg: jquery-1.4.1-vsdoc.js and jquery-1.4.1.js (version may be differ on the version you have downloaded).    &lt;br /&gt;Put both files in the same place in your project.    &lt;br /&gt;    &lt;br /&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVpmzyho-IdqKzAmWstn4JxvegdYEVNPHwN_q5q5_yEF1jXcA2Z9CLMNryqwc6Dop7hqerDGZjH7eEyyu_vDeSSacBkThPT6tv_VpDjA6C0cpIWSwEhFWcW7W1Q1XqEOvOzlG8/s1600-h/JQuery%5B2%5D.png&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;JQuery&quot; border=&quot;0&quot; alt=&quot;JQuery&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpvXlbnIyx4YvMXsyB3fDQEBnQM739pEcMTZKAg6lec4IeFEQcH75xmp8j0orNKfdv03T1UJiZrxC297KurXOYyO38OTorWknNyExorb9EOPZRLYuXHPLmZi4k_MGAH_tAY9ml/?imgmax=800&quot; width=&quot;194&quot; height=&quot;166&quot; /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;now you are ready to use. You will get intellisense and auto complete features on VS2009&lt;/p&gt;  </content><link rel='replies' type='application/atom+xml' href='http://shirans.blogspot.com/feeds/2755774462507633010/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/37107620/2755774462507633010' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/2755774462507633010'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/2755774462507633010'/><link rel='alternate' type='text/html' href='http://shirans.blogspot.com/2010/05/enable-jquery-intellisense-in-vs-2008.html' title='Enable JQuery intellisense in VS 2008'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpvXlbnIyx4YvMXsyB3fDQEBnQM739pEcMTZKAg6lec4IeFEQcH75xmp8j0orNKfdv03T1UJiZrxC297KurXOYyO38OTorWknNyExorb9EOPZRLYuXHPLmZi4k_MGAH_tAY9ml/s72-c?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37107620.post-9055356697336342024</id><published>2010-04-27T13:13:00.001+05:30</published><updated>2010-04-27T13:38:52.673+05:30</updated><title type='text'>using statement in C#</title><content type='html'>&lt;p&gt;This is a nice little statement which reduces our coding and minimises prone to errors.    &lt;br /&gt;There are many situations we have to Dispose the object we created. Example     &lt;br /&gt;    &lt;br /&gt;&lt;/p&gt;  &lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;color: blue&quot;&gt;string &lt;/span&gt;connString = &lt;span style=&quot;color: #a31515&quot;&gt;&amp;quot;Data Source=localhost;Integrated Security=SSPI;Initial Catalog=MyDB;&amp;quot;&lt;/span&gt;;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #2b91af&quot;&gt;SqlConnection &lt;/span&gt;myConnect = &lt;span style=&quot;color: blue&quot;&gt;new &lt;/span&gt;&lt;span style=&quot;color: #2b91af&quot;&gt;SqlConnection&lt;/span&gt;(connString);            &lt;br /&gt;&lt;span style=&quot;color: #2b91af&quot;&gt;SqlCommand &lt;/span&gt;cmd = myConnect.CreateCommand();&lt;br /&gt;cmd.CommandText = &lt;span style=&quot;color: #a31515&quot;&gt;&amp;quot;SELECT * FROM MyTable&amp;quot;&lt;/span&gt;;&lt;br /&gt;&lt;br /&gt;myConnect.Open();&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #2b91af&quot;&gt;SqlDataReader &lt;/span&gt;dr = cmd.ExecuteReader();&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: blue&quot;&gt;while &lt;/span&gt;(dr.Read())&lt;br /&gt;{&lt;br /&gt;    &lt;span style=&quot;color: #2b91af&quot;&gt;Console&lt;/span&gt;.WriteLine(&lt;span style=&quot;color: #a31515&quot;&gt;&amp;quot;{0}\t{1}&amp;quot;&lt;/span&gt;, dr.GetString(0), dr.GetString(1));&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;dr.Dispose();&lt;br /&gt;myConnect.Close();&lt;br /&gt;myConnect.Dispose();&lt;/pre&gt;&lt;br /&gt;Here on above example I just try to connect to a database and take out all records from MyTable. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I have created a &lt;span style=&quot;color: #2b91af&quot;&gt;SqlConnection &lt;/span&gt;object named myConnect&amp;#160; and a &lt;span style=&quot;color: #2b91af&quot;&gt;SqlDataReader &lt;/span&gt;object named dr, at the very bottom of the code snippet I have disposed those two objects using Dispose() method. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;What will happen if I forget to dispose these objects? memory issues, using statement is a remedy for this and its makes code more readable, robust and clean. I will recode the above code snippet with using “using ” statement. &lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;color: blue&quot;&gt;using &lt;/span&gt;(&lt;span style=&quot;color: #2b91af&quot;&gt;SqlConnection &lt;/span&gt;myConnect = &lt;span style=&quot;color: blue&quot;&gt;new &lt;/span&gt;&lt;span style=&quot;color: #2b91af&quot;&gt;SqlConnection&lt;/span&gt;(connString))&lt;br /&gt;{&lt;br /&gt;    &lt;span style=&quot;color: #2b91af&quot;&gt;SqlCommand &lt;/span&gt;cmd = myConnect.CreateCommand();&lt;br /&gt;    cmd.CommandText = &lt;span style=&quot;color: #a31515&quot;&gt;&amp;quot;SELECT * FROM MyTable&amp;quot;&lt;/span&gt;;&lt;br /&gt;&lt;br /&gt;    myConnect.Open();&lt;br /&gt;&lt;br /&gt;    &lt;span style=&quot;color: blue&quot;&gt;using &lt;/span&gt;(&lt;span style=&quot;color: #2b91af&quot;&gt;SqlDataReader &lt;/span&gt;dr = cmd.ExecuteReader())&lt;br /&gt;    {&lt;br /&gt;&lt;br /&gt;        &lt;span style=&quot;color: blue&quot;&gt;while &lt;/span&gt;(dr.Read())&lt;br /&gt;        {&lt;br /&gt;            &lt;span style=&quot;color: #2b91af&quot;&gt;Console&lt;/span&gt;.WriteLine(&lt;span style=&quot;color: #a31515&quot;&gt;&amp;quot;{0}\t{1}&amp;quot;&lt;/span&gt;, dr.GetString(0), dr.GetString(1));&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;a href=&quot;http://11011.net/software/vspaste&quot;&gt;&lt;/a&gt;Don’t you feel more comfortable with using statement? Let me just go bit deep on using statement, how does this work? Actually when an using statement compiled, the CLR converts it to a try and Finally block. It does three things, get the resources (&lt;span style=&quot;color: #2b91af&quot;&gt;SqlConnection &lt;/span&gt;), encloses in a try block and disposes in the Finally block. Hope you enjoyed …………….&lt;br /&gt;&lt;br /&gt;  </content><link rel='replies' type='application/atom+xml' href='http://shirans.blogspot.com/feeds/9055356697336342024/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/37107620/9055356697336342024' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/9055356697336342024'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/9055356697336342024'/><link rel='alternate' type='text/html' href='http://shirans.blogspot.com/2010/04/using-statement-in-c.html' title='using statement in C#'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37107620.post-8823438742071866219</id><published>2010-04-21T11:14:00.001+05:30</published><updated>2010-04-27T09:34:57.600+05:30</updated><title type='text'>Referring to another config file in web.config file</title><content type='html'>&lt;p&gt;Instead of having all connection string detail on web.config file , we can create a new configuration    &lt;br /&gt;whatEvernName.config eg(connectionString.config) and have all connection string details in this new .config file.&lt;/p&gt;  &lt;p&gt;Please go through the code below to understand this.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;web.config      &lt;br /&gt;&lt;/strong&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;connectionStrings &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;configSource&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&lt;/span&gt;&amp;quot;&lt;span style=&quot;color: blue&quot;&gt;connectionString.config&lt;/span&gt;&amp;quot; &lt;span style=&quot;color: blue&quot;&gt;/&amp;gt;     &lt;br /&gt;      &lt;br /&gt;&lt;/span&gt;&lt;strong&gt;connectionString.config      &lt;br /&gt;&lt;/strong&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;connectionStrings&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&amp;#160; &lt;br /&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;clear &lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;/&amp;gt;&amp;#160; &lt;br /&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;add &lt;/span&gt;&lt;span style=&quot;color: red&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&lt;/span&gt;&amp;quot;&lt;span style=&quot;color: blue&quot;&gt;myConnection&lt;/span&gt;&amp;quot; &lt;span style=&quot;color: red&quot;&gt;connectionString&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&lt;/span&gt;&amp;quot;&lt;span style=&quot;color: blue&quot;&gt;myConnectionString&lt;/span&gt;&amp;quot; &lt;span style=&quot;color: red&quot;&gt;providerName&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;=&lt;/span&gt;&amp;quot;&lt;span style=&quot;color: blue&quot;&gt;System.Data.SqlClient&lt;/span&gt;&amp;quot; &lt;span style=&quot;color: blue&quot;&gt;/&amp;gt; &amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #a31515&quot;&gt;connectionStrings&lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt; &lt;a href=&quot;http://11011.net/software/vspaste&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://11011.net/software/vspaste&quot;&gt;&lt;/a&gt;  &lt;p&gt;This is really nice feature when you have a lot of tags in your web.config file,    &lt;br /&gt;as it increases the readability. There is another cool feature which is very useful for     &lt;br /&gt;developers when it’s come to development or rather I would say debug the code.     &lt;br /&gt;Most of the times we have our connection string in one file and there is a high chance to forget     &lt;br /&gt;to change live connection string properties to test environment properties, I have made such a mistake and had to restore a latest database backup, but luckily there was not any data lost.&lt;/p&gt;  &lt;p&gt;This cool feature avoids taking place such a bad mistake. Try this it’s is really nice and you do not have to keep on changing your web.config’s conection string values. As in above code snippet you can have two config files as &lt;span style=&quot;color: blue&quot;&gt;connectionString.debug.config and &lt;span style=&quot;color: blue&quot;&gt;connectionString.releaase.config&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;VS IDE will take the valuse depending on what you have selected, debug or release. Isn’t it cool.    &lt;br /&gt;Enjoy…&lt;/p&gt;  </content><link rel='replies' type='application/atom+xml' href='http://shirans.blogspot.com/feeds/8823438742071866219/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/37107620/8823438742071866219' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/8823438742071866219'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/8823438742071866219'/><link rel='alternate' type='text/html' href='http://shirans.blogspot.com/2010/04/referring-to-another-config-file-in.html' title='Referring to another config file in web.config file'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37107620.post-6028491272505160750</id><published>2010-04-20T17:09:00.001+05:30</published><updated>2010-04-20T17:16:34.334+05:30</updated><title type='text'>GridView column text wrap width</title><content type='html'>&lt;p&gt;We had a grid view and one of the column data was dynamically bound. Most of the time this grid goes out of the sreen area and makes user to scroll to right, because of this dynamically bounded column&#39;s text lenght. There were some solutions on the web but none of them working properly. Solution is, put the text inside a paragraph tag “&amp;lt;p&amp;gt; your text here&amp;lt;/p&amp;gt;” &lt;/p&gt;  &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfQW7PRSqyqnoKbRrRt2CTWiPHT0Mv1XzjaSmbPiWXvoEhheFg5-NzTWnFzHs2oYH0XL6-nWt3WAe8WHswCfoQE-MycxCFdcE8BybLEFSk5HCrlCCKHS3cHTSoBOBNF-PfVkRT/s1600-h/text-wrap%5B4%5D.gif&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; title=&quot;text-wrap&quot; border=&quot;0&quot; alt=&quot;text-wrap&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjx2lXZGHkU9KKEx2KlBXT7run1BQkXtpovPZY8rtsjPc6Qeg8YtQ8y6bLjIs_wkF1Ndr0FSs8AmMiEZhHpkgo6DttY1UD4nqhuyMy5TVR8PNsJp94bydqfNljVhU8dqHujkO7l/?imgmax=800&quot; width=&quot;607&quot; height=&quot;224&quot; /&gt;&lt;/a&gt;&lt;/p&gt;  </content><link rel='replies' type='application/atom+xml' href='http://shirans.blogspot.com/feeds/6028491272505160750/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/37107620/6028491272505160750' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/6028491272505160750'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/6028491272505160750'/><link rel='alternate' type='text/html' href='http://shirans.blogspot.com/2010/04/gridview-column-text-wrap-width.html' title='GridView column text wrap width'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjx2lXZGHkU9KKEx2KlBXT7run1BQkXtpovPZY8rtsjPc6Qeg8YtQ8y6bLjIs_wkF1Ndr0FSs8AmMiEZhHpkgo6DttY1UD4nqhuyMy5TVR8PNsJp94bydqfNljVhU8dqHujkO7l/s72-c?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-37107620.post-1961638357293550544</id><published>2010-04-09T05:46:00.003+05:30</published><updated>2010-04-09T06:33:31.567+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Navigation"/><category scheme="http://www.blogger.com/atom/ns#" term="Rules to Better Websites Navigation"/><category scheme="http://www.blogger.com/atom/ns#" term="Scott Guthie"/><category scheme="http://www.blogger.com/atom/ns#" term="Websites Navigation"/><title type='text'>Rules to Better Websites Navigation</title><content type='html'>&lt;font face=&quot;Arial&quot;&gt;These rules I found while I am going through Scott Guthrie&#39;s web blog. It&#39;s captioned as &amp;quot;Adam Cogan&#39;s Rules for Better WebSites&amp;quot; and this was written in September 2003, pretty old but still apply.   &lt;br /&gt;    &lt;br /&gt;&lt;a href=&quot;http://www.ssw.com.au/ssw/Standards/Rules/RulesToBetterWebsitesNavigation.aspx#underline&quot;&gt;http://www.ssw.com.au/ssw/Standards/Rules/RulesToBetterWebsitesNavigation.aspx#underline&lt;/a&gt;    &lt;br /&gt;    &lt;br /&gt;Scott Guthie&#39;s web blog http://weblogs.asp.net/Scottgu/&lt;/font&gt;  </content><link rel='replies' type='application/atom+xml' href='http://shirans.blogspot.com/feeds/1961638357293550544/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/37107620/1961638357293550544' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/1961638357293550544'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/37107620/posts/default/1961638357293550544'/><link rel='alternate' type='text/html' href='http://shirans.blogspot.com/2010/04/rules-to-better-websites-navigation.html' title='Rules to Better Websites Navigation'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>