<?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-1134588289262019878</id><updated>2024-08-29T19:55:19.450-07:00</updated><title type='text'>Asp.Net Resources</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://shimul2009.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://shimul2009.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/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>37</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1134588289262019878.post-8036892710884830490</id><published>2010-06-08T12:58:00.000-07:00</published><updated>2010-06-08T12:59:17.879-07:00</updated><title type='text'>Interface not registered in SSIS</title><content type='html'>&lt;strong&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;Got the following error message when I make a new integration service projct&lt;br /&gt;&lt;br /&gt;Failed to save package file &quot;C:\Documents and Settings\Administrator\Local Settings\Temp\1\tmp2B.tmp&quot; with error 0x80040155 &quot;Interface not registered&quot;.&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color:#336666;&quot;&gt;Just run these two commands from the command prompt:&lt;br /&gt;&lt;strong&gt;regsvr32 msxml3.dll&lt;br /&gt;regsvr32 msxml6.dll&lt;/strong&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://shimul2009.blogspot.com/feeds/8036892710884830490/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shimul2009.blogspot.com/2010/06/interface-not-registered-in-ssis.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/8036892710884830490'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/8036892710884830490'/><link rel='alternate' type='text/html' href='http://shimul2009.blogspot.com/2010/06/interface-not-registered-in-ssis.html' title='Interface not registered in SSIS'/><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-1134588289262019878.post-6132172161280132802</id><published>2010-05-27T15:51:00.001-07:00</published><updated>2010-05-27T15:53:02.527-07:00</updated><title type='text'>Reportviewer 8.0 and 9.0 Issue</title><content type='html'>&lt;runtime&gt;&lt;br /&gt;  &lt;assemblyBinding xmlns=&quot;urn:schemas-microsoft-com:asm.v1&quot;&gt;&lt;br /&gt;      &lt;dependentAssembly&gt;&lt;br /&gt;        &lt;assemblyIdentity name=&quot;Microsoft.ReportViewer.Common&quot; publicKeyToken=&quot;B03F5F7F11D50A3A&quot;/&gt;&lt;br /&gt;        &lt;bindingRedirect oldVersion=&quot;8.0.0.0&quot; newVersion=&quot;9.0.0.0&quot;/&gt;&lt;br /&gt;      &lt;/dependentAssembly&gt;&lt;br /&gt;      &lt;dependentAssembly&gt;&lt;br /&gt;        &lt;assemblyIdentity name=&quot;Microsoft.ReportViewer.Webforms&quot; publicKeyToken=&quot;B03F5F7F11D50A3A&quot;/&gt;&lt;br /&gt;        &lt;bindingRedirect oldVersion=&quot;8.0.0.0&quot; newVersion=&quot;9.0.0.0&quot;/&gt;&lt;br /&gt;      &lt;/dependentAssembly&gt;&lt;br /&gt;      &lt;/assemblyBinding&gt;&lt;br /&gt;  &lt;/runtime&gt;</content><link rel='replies' type='application/atom+xml' href='http://shimul2009.blogspot.com/feeds/6132172161280132802/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shimul2009.blogspot.com/2010/05/reportviewer-80-and-90-issue.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/6132172161280132802'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/6132172161280132802'/><link rel='alternate' type='text/html' href='http://shimul2009.blogspot.com/2010/05/reportviewer-80-and-90-issue.html' title='Reportviewer 8.0 and 9.0 Issue'/><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-1134588289262019878.post-8921644013181938391</id><published>2010-05-26T19:59:00.000-07:00</published><updated>2010-06-15T19:44:51.574-07:00</updated><title type='text'>MAIL</title><content type='html'>--------------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Imports System.Net.Mail&lt;br /&gt;&lt;br /&gt;sendmail(comments.text, body.text)&lt;br /&gt;------------------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Private Sub sendmail(ByVal from As String, ByVal body As String)&lt;br /&gt;Dim mailservername As String = &quot;smtp.SASDED.com&quot;&lt;br /&gt;Dim message As MailMessage = New MailMessage(from, &quot;&quot;, &quot;Email from :: ASK US&quot;, body)&lt;br /&gt;Dim mailclient As SmtpClient = New SmtpClient&lt;br /&gt;&lt;br /&gt;mailclient.Host = mailservername&lt;br /&gt;mailclient.Send(message)&lt;br /&gt;message.Dispose()&lt;br /&gt;End Sub</content><link rel='replies' type='application/atom+xml' href='http://shimul2009.blogspot.com/feeds/8921644013181938391/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shimul2009.blogspot.com/2010/05/mail.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/8921644013181938391'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/8921644013181938391'/><link rel='alternate' type='text/html' href='http://shimul2009.blogspot.com/2010/05/mail.html' title='MAIL'/><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-1134588289262019878.post-4185763220864960827</id><published>2010-05-24T17:54:00.001-07:00</published><updated>2010-05-24T17:54:27.760-07:00</updated><title type='text'>SUBST</title><content type='html'>Subst&lt;br /&gt;&lt;br /&gt;Associates a path with a drive letter. Used without parameters, subst displays the names of the virtual drives in effect. &lt;br /&gt;&lt;br /&gt;Syntax&lt;br /&gt;subst [drive1: [drive2:]Path] &lt;br /&gt;&lt;br /&gt;subst drive1: /d&lt;br /&gt;&lt;br /&gt;Top of page&lt;br /&gt;Parameters&lt;br /&gt;drive1: : Specifies the virtual drive to which you want to assign a path. &lt;br /&gt;&lt;br /&gt;drive2: : Specifies the physical drive that contains the specified path (if different from the current drive). &lt;br /&gt;&lt;br /&gt;Path : Specifies the path that you want to assign to a virtual drive. &lt;br /&gt;&lt;br /&gt;/d : Deletes a virtual drive. &lt;br /&gt;&lt;br /&gt;/? : Displays help at the command prompt. &lt;br /&gt;&lt;br /&gt;Top of page&lt;br /&gt;Remarks&lt;br /&gt;• The following commands do not work, or should not be used, on drives used in the subst command: &lt;br /&gt;&lt;br /&gt;• chkdsk &lt;br /&gt; &lt;br /&gt;• diskcomp &lt;br /&gt; &lt;br /&gt;• diskcopy &lt;br /&gt; &lt;br /&gt;• format &lt;br /&gt; &lt;br /&gt;• label &lt;br /&gt; &lt;br /&gt;• recover &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;• The drive1 parameter must be within the range specified by the lastdrive command. If not, subst displays the following error message: &lt;br /&gt;&lt;br /&gt;Invalid parameter - drive1: &lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Top of page&lt;br /&gt;Examples&lt;br /&gt;To create a virtual drive Z for the path B:\User\Betty\Forms, type: &lt;br /&gt;&lt;br /&gt;subst z: b:\user\betty\forms &lt;br /&gt;&lt;br /&gt;Now, instead of typing the full path, you can reach this directory by typing the letter of the virtual drive, followed by a colon, as follows: &lt;br /&gt;&lt;br /&gt;z:</content><link rel='replies' type='application/atom+xml' href='http://shimul2009.blogspot.com/feeds/4185763220864960827/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shimul2009.blogspot.com/2010/05/subst.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/4185763220864960827'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/4185763220864960827'/><link rel='alternate' type='text/html' href='http://shimul2009.blogspot.com/2010/05/subst.html' title='SUBST'/><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-1134588289262019878.post-2015349801970928401</id><published>2010-04-28T14:17:00.001-07:00</published><updated>2010-04-28T14:18:59.070-07:00</updated><title type='text'>Report Processing</title><content type='html'>Imports Microsoft.Reporting.WebForms&lt;br /&gt;Dim datasourceid As New Microsoft.Reporting.WebForms.ReportDataSource&lt;br /&gt;        Dim strdatasource As String&lt;br /&gt;        Select Case op_level_selection.SelectedValue&lt;br /&gt;            Case 1&lt;br /&gt;                strdatasource = &quot;reports/Main.rdlc&quot;&lt;br /&gt;                With ReportViewer1&lt;br /&gt;                    .Reset()&lt;br /&gt;                    .ProcessingMode = ProcessingMode.Local&lt;br /&gt;                    .LocalReport.ReportPath = strdatasource&lt;br /&gt;                    .LocalReport.DataSources.Clear()&lt;br /&gt;                    datasourceid.DataSourceId = &quot;ods_main_data&quot;&lt;br /&gt;                    datasourceid.Name = &quot;DS_MAIN&quot;&lt;br /&gt;                    .LocalReport.DataSources.Add(datasourceid)&lt;br /&gt;                    .DocumentMapCollapsed = True&lt;br /&gt;                    .LocalReport.Refresh()&lt;br /&gt;                    .Visible = True&lt;br /&gt;                End With</content><link rel='replies' type='application/atom+xml' href='http://shimul2009.blogspot.com/feeds/2015349801970928401/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shimul2009.blogspot.com/2010/04/report-processing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/2015349801970928401'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/2015349801970928401'/><link rel='alternate' type='text/html' href='http://shimul2009.blogspot.com/2010/04/report-processing.html' title='Report Processing'/><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-1134588289262019878.post-586450081555724317</id><published>2010-04-19T11:34:00.001-07:00</published><updated>2010-04-19T11:34:15.268-07:00</updated><title type='text'></title><content type='html'>If you aren&#39;t located in the US, you may be interested in another adjustment I&#39;ve made to the tagset, that of the paper size.  By default it is set to &quot;0&quot; which is interpreted as Undefined.  For us, that results in it trying to print to &quot;letter&quot; sized paper which is only (I believe) used in the states.  To set it to A4, you need to find the line:-&lt;br /&gt;&lt;br /&gt;CODE&lt;br /&gt;put &#39;&lt;PaperSizeIndex&gt;0&lt;/PaperSizeIndex&gt;&#39; nl;&lt;br /&gt;and change it to&lt;br /&gt;&lt;br /&gt;CODE&lt;br /&gt;put &#39;&lt;PaperSizeIndex&gt;9&lt;/PaperSizeIndex&gt;&#39; nl;&lt;br /&gt;&lt;br /&gt;Other valid papersize values and meanings are listed here:-&lt;br /&gt;&lt;br /&gt;CODE&lt;br /&gt; Paper Size Table                                    &lt;br /&gt; Index    Paper type               Paper size        &lt;br /&gt; ----------------------------------------------------&lt;br /&gt; 0        Undefined                                  &lt;br /&gt; 1        Letter                   8 1/2&quot; x 11&quot;      &lt;br /&gt; 2        Letter small             8 1/2&quot; x 11&quot;      &lt;br /&gt; 3        Tabloid                     11&quot; x 17&quot;      &lt;br /&gt; 4        Ledger                      17&quot; x 11&quot;      &lt;br /&gt; 5        Legal                    8 1/2&quot; x 14&quot;      &lt;br /&gt; 6        Statement                5 1/2&quot; x 8 1/2&quot;   &lt;br /&gt; 7        Executive                7 1/4&quot; x 10 1/2&quot;  &lt;br /&gt; 8        A3                        297mm x 420mm    &lt;br /&gt; 9        A4                        210mm x 297mm    &lt;br /&gt; 10       A4 small                  210mm x 297mm    &lt;br /&gt; 11       A5                        148mm x 210mm    &lt;br /&gt; 12       B4                        250mm x 354mm    &lt;br /&gt; 13       B5                        182mm x 257mm    &lt;br /&gt; 14       Folio                    8 1/2&quot; x 13&quot;      &lt;br /&gt; 15       Quarto                    215mm x 275mm    &lt;br /&gt; 16                                   10&quot; x 14&quot;      &lt;br /&gt; 17                                   11&quot; x 17&quot;      &lt;br /&gt; 18       Note                     8 1/2&quot; x 11&quot;      &lt;br /&gt; 19       #9 Envelope              3 7/8&quot; x 8 7/8&quot;   &lt;br /&gt; 20       #10 Envelope             4 1/8&quot; x 9 1/2&quot;   &lt;br /&gt; 21       #11 Envelope             4 1/2&quot; x 10 3/8&quot;  &lt;br /&gt; 22       #12 Envelope             4 3/4&quot; x 11&quot;      &lt;br /&gt; 23       #14 Envelope                 5&quot; x 11 1/2&quot;  &lt;br /&gt; 24       C Sheet                     17&quot; x 22&quot;      &lt;br /&gt; 25       D Sheet                     22&quot; x 34&quot;      &lt;br /&gt; 26       E Sheet                     34&quot; x 44&quot;      &lt;br /&gt; 27       DL Envelope               110mm x 220mm    &lt;br /&gt; 28       C5 Envelope               162mm x 229mm    &lt;br /&gt; 29       C3 Envelope               324mm x 458mm    &lt;br /&gt; 30       C4 Envelope               229mm x 324mm    &lt;br /&gt; 31       C6 Envelope               114mm x 162mm    &lt;br /&gt; 32       C65 Envelope              114mm x 229mm    &lt;br /&gt; 33       B4 Envelope               250mm x 353mm    &lt;br /&gt; 34       B5 Envelope               176mm x 250mm    &lt;br /&gt; 35       B6 Envelope               125mm x 176mm    &lt;br /&gt; 36       Italy Envelope            110mm x 230mm    &lt;br /&gt; 37       Monarch Envelope         3 7/8&quot; x 7 1/2&quot;   &lt;br /&gt; 38       6 3/4 Envelope           3 5/8&quot; x 6 1/2&quot;   &lt;br /&gt; 39       US Standard Fanfold     14 7/8&quot; x 11&quot;      &lt;br /&gt; 40       German Std. Fanfold      8 1/2&quot; x 12&quot;      &lt;br /&gt; 41       German Legal Fanfold     8 1/2&quot; x 13&quot;</content><link rel='replies' type='application/atom+xml' href='http://shimul2009.blogspot.com/feeds/586450081555724317/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shimul2009.blogspot.com/2010/04/if-you-arent-located-in-us-you-may-be.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/586450081555724317'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/586450081555724317'/><link rel='alternate' type='text/html' href='http://shimul2009.blogspot.com/2010/04/if-you-arent-located-in-us-you-may-be.html' title=''/><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-1134588289262019878.post-845612664033866776</id><published>2010-04-15T18:15:00.001-07:00</published><updated>2010-04-15T18:15:31.445-07:00</updated><title type='text'>rdlc code based DataSource</title><content type='html'>rdlc code based DataSource?&lt;br /&gt;Skip_Frog&lt;br /&gt;Okay I have the below code.&lt;br /&gt;&lt;br /&gt;Dim da As SqlDataAdapter&lt;br /&gt;Dim ds As DataSet&lt;br /&gt;da = New SqlDataAdapter(&quot;Select Distinct [OP Number] from MasterShimSel&quot;, frmMain.sConn)&lt;br /&gt;ds = New DataSet(&quot;Test&quot;)&lt;br /&gt;da.Fill(ds, &quot;Test&quot;)&lt;br /&gt;Dim dsname As String = &quot;ds&quot;&lt;br /&gt;Dim rs As New Microsoft.Reporting.WinForms.ReportDataSource(dsname, ds.Tables(0))&lt;br /&gt;Me.ReportViewer1.LocalReport.DataSources.Add(rs)&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.windows-tech.info/15/8d7972f9bf31e44d.php&quot;&gt;http://www.windows-tech.info/15/8d7972f9bf31e44d.php&lt;/a&gt; &lt;a href=&quot;http://www.windows-tech.info/&quot;&gt;http://www.windows-tech.info/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://shimul2009.blogspot.com/feeds/845612664033866776/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shimul2009.blogspot.com/2010/04/rdlc-code-based-datasource.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/845612664033866776'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/845612664033866776'/><link rel='alternate' type='text/html' href='http://shimul2009.blogspot.com/2010/04/rdlc-code-based-datasource.html' title='rdlc code based DataSource'/><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-1134588289262019878.post-5201977958274960486</id><published>2010-03-03T11:40:00.001-08:00</published><updated>2010-03-10T13:58:33.848-08:00</updated><title type='text'></title><content type='html'>&lt;strong&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;LEFT({ fn MONTHNAME(RIGHT(YYYYMM, 2) + &#39;/&#39; + &#39;1&#39; + &#39;/&#39; + LEFT(YYYYMM, 4)) } + &#39; &#39; + LEFT(YYYYMM, 4), 3) + &#39;-&#39; + SUBSTRING(CAST(YYYYMM AS nvarchar), 3, 2)&lt;/span&gt;&lt;/strong&gt; &lt;strong&gt;&lt;span style=&quot;color:#33cc00;&quot;&gt;as Month&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color:#33cc00;&quot;&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color:#33cc00;&quot;&gt;ResponseHelper.Redirect(&quot;SiteChanges.aspx&quot;, &quot;_blank&quot;, &quot;menubar=0,width=700,height=768,scrollbars=1&quot;)&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://shimul2009.blogspot.com/feeds/5201977958274960486/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shimul2009.blogspot.com/2010/03/left-fn-monthnamerightyyyymm-2-1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/5201977958274960486'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/5201977958274960486'/><link rel='alternate' type='text/html' href='http://shimul2009.blogspot.com/2010/03/left-fn-monthnamerightyyyymm-2-1.html' title=''/><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-1134588289262019878.post-3383782730440375005</id><published>2009-12-03T12:36:00.000-08:00</published><updated>2009-12-03T12:37:21.214-08:00</updated><title type='text'>IMAGE INTO THE REPORTVIEWER</title><content type='html'>Query: How to put Images in Reports (Microsoft ReportViewer) through code at runtime/dynamically? &lt;br /&gt;&lt;br /&gt;You can achieve this with charm. You can easily have images on your report, even the images that are on the Web. &lt;br /&gt;&lt;br /&gt;Assumption: &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This article assumes that a user has basic idea about RDLC, Microsoft ReportViewer and DataSource. This Article does not teach the basics of how to generate Reports in Microsoft Report Viewer. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To learn about ReportViewer and how to build reports, read this free book by Mahesh Chand:&lt;br /&gt;Reports using Report Viewer in Visual Studio 2005.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In ReportViewer, you have 2 options for images: External or Embedded.&lt;br /&gt;&lt;br /&gt;1. Embedded: &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If you have images in your application and you want to use them. &lt;br /&gt;&lt;br /&gt;Stage I: Then, you first need to embed the images in to be used in Reports. To embed an image in Reports: &lt;br /&gt;a) Open the RDLC File.&lt;br /&gt;b) Go to the Menu Item: Report &gt; Embedded Images. Click on: New Image.&lt;br /&gt;c) Browse for the image. Edit Name for the image chosen as desired (example, here: TestImage). OK.&lt;br /&gt;&lt;br /&gt;Stage II:&lt;br /&gt;d) Use an Image control on your RDLC file.&lt;br /&gt;e) Set the Image&#39;s Property-Source = Embedded.&lt;br /&gt;f) Reserve a Report&#39;s DataSource Member for the image Path. For example- DataSource.ImgPath.&lt;br /&gt;g) Set the value for image path from the code in DataSource.ImgPath. &lt;br /&gt;    For example: DataSource.ImgPath = &quot;TestImage&quot;;&lt;br /&gt;h) Do the normal stuff to bind DataSource etc.&lt;br /&gt;i) Done. Enjoy your image in the Report.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2. External: &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If you do not have images in your Application. That is, you want to use an external image.&lt;br /&gt;&lt;br /&gt;a. Use an Image control on your RDLC file.&lt;br /&gt;b. Set the Image&#39;s Property-Source = External.&lt;br /&gt;c. Reserve a Report&#39;s DataSource Member for the image Path. For example- DataSource.ImgPath.&lt;br /&gt;d. Set the value for image path from the code in DataSource.ImgPath.&lt;br /&gt;    For example: DataSource.ImgPath = &quot;http://www.google.com/intl/en_ALL/images/logo.gif&quot;;&lt;br /&gt;e. The following self explanatory code also needs to be written:&lt;br /&gt;    reportViewer1.LocalReport.EnableExternalImages = true;  (reportViewer1 is the Name for the   ReportViewer Control)&lt;br /&gt;f. Do the normal stuff to bind DataSource etc.&lt;br /&gt;g. Done. Enjoy your image in the Report.</content><link rel='replies' type='application/atom+xml' href='http://shimul2009.blogspot.com/feeds/3383782730440375005/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shimul2009.blogspot.com/2009/12/image-into-reportviewer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/3383782730440375005'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/3383782730440375005'/><link rel='alternate' type='text/html' href='http://shimul2009.blogspot.com/2009/12/image-into-reportviewer.html' title='IMAGE INTO THE REPORTVIEWER'/><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-1134588289262019878.post-2922608349738351313</id><published>2009-11-23T13:41:00.000-08:00</published><updated>2009-11-23T13:42:52.398-08:00</updated><title type='text'>Excel Import</title><content type='html'>&lt;p&gt;&lt;strong&gt;&lt;span style=&quot;font-size:130%;color:#cc0000;&quot;&gt;&lt;em&gt;Separate two words from a cell in two cells&lt;/em&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Tom Swift =RIGHT(A1,LEN(A1)-FIND(&quot; &quot;,A1)) =LEFT(A1,FIND(&quot; &quot;,A1)) By find space. Swift Tom =RIGHT(A2,LEN(A2)-FIND(&quot; &quot;,A2)) =LEFT(A2,FIND(&quot; &quot;,A2)) By find space. Peters, Willy =RIGHT(A3,LEN(A3)-FIND(&quot;,&quot;,A3)-1) =LEFT(A3,FIND(&quot;,&quot;,A3)-1) By find comma. Willy, Peters =RIGHT(A4,LEN(A4)-FIND(&quot;,&quot;,A4)-1) =LEFT(A4,FIND(&quot;,&quot;,A4)-1) By find comma. &lt;/p&gt;&lt;p&gt;If &quot;name address&quot; is in cell A1, in cell B1 type this formula : =MID(A1,1,SEARCH(&quot; &quot;,A1))&lt;br /&gt;Then in cell C1 type this formula: =MID(A1,SEARCH(&quot; &quot;,A1)+1,20)&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://shimul2009.blogspot.com/feeds/2922608349738351313/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shimul2009.blogspot.com/2009/11/excel-import.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/2922608349738351313'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/2922608349738351313'/><link rel='alternate' type='text/html' href='http://shimul2009.blogspot.com/2009/11/excel-import.html' title='Excel Import'/><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-1134588289262019878.post-6333768089159866408</id><published>2009-08-28T19:19:00.000-07:00</published><updated>2009-08-28T19:20:16.391-07:00</updated><title type='text'></title><content type='html'>&lt;strong&gt;&lt;span style=&quot;color:#009900;&quot;&gt;YYYYMM = LTRIM(RTRIM(REPLACE(CONVERT(varchar(7), GETDATE(), 126), &#39;-&#39;, &#39;&#39;)))&lt;/span&gt;&lt;/strong&gt;</content><link rel='replies' type='application/atom+xml' href='http://shimul2009.blogspot.com/feeds/6333768089159866408/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shimul2009.blogspot.com/2009/08/yyyymm-ltrimrtrimreplaceconvertvarchar7.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/6333768089159866408'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/6333768089159866408'/><link rel='alternate' type='text/html' href='http://shimul2009.blogspot.com/2009/08/yyyymm-ltrimrtrimreplaceconvertvarchar7.html' title=''/><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-1134588289262019878.post-2587535037570950018</id><published>2009-08-25T15:43:00.001-07:00</published><updated>2009-08-25T16:01:56.091-07:00</updated><title type='text'></title><content type='html'>&lt;span style=&quot;color:#cc0000;&quot;&gt;EXEC sp_spaceused&lt;br /&gt;EXEC sp_spaceused &#39;TBL_MART_ENCOUNTER&#39;&lt;br /&gt;EXEC sp_MSforeachtable @command1=&quot;EXEC sp_spaceused &#39;?&#39;&quot;&lt;/span&gt;&lt;br /&gt;--The following example demonstrates this with the pubs database and attempts to shrink the pubs_log file to 2 MB:&lt;br /&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;DBCC SHRINKFILE(pubs_log, 2)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--NOTE: If the target size is not reached, proceed to the next step.&lt;br /&gt;--Run this code if you want to truncate the transaction log and not&lt;br /&gt;--keep a backup of the transaction log. Truncate_only invalidates your&lt;br /&gt;--transaction log backup sequence. Take a full backup of your database&lt;br /&gt;--after you perform backup log with truncate_only:&lt;br /&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;BACKUP LOG pubs WITH TRUNCATE_ONLY&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--or-&lt;br /&gt;--Run this code if you want to keep a backup of your transaction log and&lt;br /&gt;--keep your transaction log backup sequence intact. See SQL Server Books&lt;br /&gt;--Online topic &quot;BACKUP&quot; for more information:&lt;br /&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;BACKUP LOG pubs TO pubslogbackup&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--Run this code:&lt;br /&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;DBCC SHRINKFILE(pubs_log,2)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;--Depending on your recovery model, you might be able to simply run this command to manually truncate the log:&lt;br /&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;BACKUP LOG &lt;database&gt;WITH TRUNCATE_ONLY&lt;br /&gt;&lt;br /&gt;BACKUP LOG TestDB TO DISK=&#39;C:\TestDB1.bak&#39;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--Shrink the transaction log file. To do this, run a Transact-SQL statement&lt;br /&gt;--that is similar to the following Transact-SQL statement.&lt;br /&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;DBCC SHRINKFILE (&lt;filename&gt;, &lt;targetsize&gt;) WITH NO_INFOMSGS&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;--Since the &quot;shrink database&quot; command within SQL 2000 Enterprise&lt;br /&gt;--Manager doesn&#39;t always seem to do what you&#39;d expect, here is the command to run in Query --Analyzer.&lt;br /&gt;&lt;span style=&quot;color:#cc0000;&quot;&gt;backup log db_name_here with truncate_onlydbcc shrinkfile(db_log_filename_here,truncateonly)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://andieko.web.id/sql-server-2000/shrink-transaction-log-on-sql-server-2000-part-1/&quot;&gt;http://andieko.web.id/sql-server-2000/shrink-transaction-log-on-sql-server-2000-part-1/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://shimul2009.blogspot.com/feeds/2587535037570950018/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shimul2009.blogspot.com/2009/08/exec-spspaceused-exec-spspaceused.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/2587535037570950018'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/2587535037570950018'/><link rel='alternate' type='text/html' href='http://shimul2009.blogspot.com/2009/08/exec-spspaceused-exec-spspaceused.html' title=''/><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-1134588289262019878.post-2121922272777607986</id><published>2009-08-12T13:19:00.001-07:00</published><updated>2009-08-12T13:19:35.192-07:00</updated><title type='text'></title><content type='html'>I found the RowDataBound Event to work the best for me without a lot of additional overhead code. Basically the code makes sure the row is a data row, looks to see if column 3 (cells(2)) is equal to &quot;1&quot;, if it is then make the entire row yellow and color cell 3 of the row crimson.&lt;br /&gt;&lt;br /&gt;1        Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowDataBound&lt;br /&gt;2            If e.Row.RowType = DataControlRowType.DataRow Then&lt;br /&gt;3                If e.Row.Cells(2).Text = &quot;1&quot; Then&lt;br /&gt;4                    e.Row.BackColor = System.Drawing.Color.Yellow&lt;br /&gt;5                    e.Row.Cells(2).BackColor = Drawing.Color.Crimson&lt;br /&gt;6                End If&lt;br /&gt;7            End If&lt;br /&gt;8        End Sub</content><link rel='replies' type='application/atom+xml' href='http://shimul2009.blogspot.com/feeds/2121922272777607986/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shimul2009.blogspot.com/2009/08/i-found-rowdatabound-event-to-work-best.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/2121922272777607986'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/2121922272777607986'/><link rel='alternate' type='text/html' href='http://shimul2009.blogspot.com/2009/08/i-found-rowdatabound-event-to-work-best.html' title=''/><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-1134588289262019878.post-2511643268463448884</id><published>2009-08-11T17:31:00.000-07:00</published><updated>2009-08-13T19:59:38.310-07:00</updated><title type='text'>Reading the column name as datafield</title><content type='html'>SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE (TABLE_NAME = &#39;tbl_test_bbb&#39;nook725hone481)</content><link rel='replies' type='application/atom+xml' href='http://shimul2009.blogspot.com/feeds/2511643268463448884/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shimul2009.blogspot.com/2009/08/reading-column-name-as-datafield.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/2511643268463448884'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/2511643268463448884'/><link rel='alternate' type='text/html' href='http://shimul2009.blogspot.com/2009/08/reading-column-name-as-datafield.html' title='Reading the column name as datafield'/><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-1134588289262019878.post-488601513190920920</id><published>2009-08-04T13:37:00.001-07:00</published><updated>2009-08-04T13:37:58.304-07:00</updated><title type='text'>Reportviewer Fixes</title><content type='html'>&lt;runtime&gt;&lt;br /&gt;&lt;assemblybinding xmlns=&quot;urn:schemas-microsoft-com:asm.v1&quot;&gt;&lt;br /&gt;&lt;dependentassembly&gt;&lt;br /&gt;&lt;assemblyidentity name=&quot;Microsoft.ReportViewer.Common&quot; publickeytoken=&quot;B03F5F7F11D50A3A&quot;&gt;&lt;br /&gt;&lt;bindingredirect oldversion=&quot;8.0.0.0&quot; newversion=&quot;9.0.0.0&quot;&gt;&lt;br /&gt;&lt;/dependentassembly&gt;&lt;br /&gt;&lt;dependentassembly&gt;&lt;br /&gt;&lt;assemblyidentity name=&quot;Microsoft.ReportViewer.Webforms&quot; publickeytoken=&quot;B03F5F7F11D50A3A&quot;&gt;&lt;br /&gt;&lt;bindingredirect oldversion=&quot;8.0.0.0&quot; newversion=&quot;9.0.0.0&quot;&gt;&lt;br /&gt;&lt;/dependentassembly&gt;&lt;br /&gt;&lt;/assemblybinding&gt;&lt;br /&gt;&lt;/runtime&gt;&lt;br /&gt;&lt;br /&gt;This one almost works with everything....except the postback doesn&#39;t work. This has been posted on ASP.NET newsgroups and Yahoo. Answers since last week.&lt;br /&gt;This is what we are working on now,</content><link rel='replies' type='application/atom+xml' href='http://shimul2009.blogspot.com/feeds/488601513190920920/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shimul2009.blogspot.com/2009/08/reportviewer-fixes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/488601513190920920'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/488601513190920920'/><link rel='alternate' type='text/html' href='http://shimul2009.blogspot.com/2009/08/reportviewer-fixes.html' title='Reportviewer Fixes'/><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-1134588289262019878.post-4599509399871676946</id><published>2009-08-03T14:17:00.000-07:00</published><updated>2009-08-03T14:18:34.585-07:00</updated><title type='text'></title><content type='html'>Handling Concurrency Issues in .NET&lt;br /&gt;By Wayne Plourde&lt;br /&gt;&lt;br /&gt;http://www.15seconds.com/Issue/030604.htm</content><link rel='replies' type='application/atom+xml' href='http://shimul2009.blogspot.com/feeds/4599509399871676946/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shimul2009.blogspot.com/2009/08/handling-concurrency-issues-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/4599509399871676946'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/4599509399871676946'/><link rel='alternate' type='text/html' href='http://shimul2009.blogspot.com/2009/08/handling-concurrency-issues-in.html' title=''/><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-1134588289262019878.post-7501530921080392302</id><published>2009-07-28T17:37:00.001-07:00</published><updated>2009-07-28T17:37:56.482-07:00</updated><title type='text'>Military Time Calculation</title><content type='html'>Dim startTime As String = &quot;330&quot;&lt;br /&gt;        Dim stopTime As String = &quot;1224&quot;&lt;br /&gt;&lt;br /&gt;        startTime = startTime.PadLeft(4, &quot;0&quot;)&lt;br /&gt;        stopTime = stopTime.PadLeft(4, &quot;0&quot;)&lt;br /&gt;        Dim dtA As DateTime = DateTime.ParseExact(startTime, &quot;HHmm&quot;, Nothing)&lt;br /&gt;        Dim dtB As DateTime = DateTime.ParseExact(stopTime, &quot;HHmm&quot;, Nothing)&lt;br /&gt;        Dim ts As TimeSpan = dtB.Subtract(dtA)&lt;br /&gt;&lt;br /&gt;        Debug.Print(&quot;Time: &quot; &amp; ts.Hours &amp; &quot;:&quot; &amp; ts.Minutes.ToString(&quot;00&quot;))</content><link rel='replies' type='application/atom+xml' href='http://shimul2009.blogspot.com/feeds/7501530921080392302/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shimul2009.blogspot.com/2009/07/military-time-calculation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/7501530921080392302'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/7501530921080392302'/><link rel='alternate' type='text/html' href='http://shimul2009.blogspot.com/2009/07/military-time-calculation.html' title='Military Time Calculation'/><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-1134588289262019878.post-5626778319992932328</id><published>2009-07-20T12:44:00.000-07:00</published><updated>2009-07-23T13:18:15.586-07:00</updated><title type='text'></title><content type='html'>&lt;strong&gt;If statement in the ACCESS:&lt;/strong&gt;&lt;br /&gt;&lt;span style=&quot;color:#999900;&quot;&gt;iif (fieldname is null, 0, fieldname)&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Udate any field with the leading Zero(s):&lt;/strong&gt;&lt;br /&gt;UPDATE table_name&lt;br /&gt;IDENTITY_ID = RIGHT(&#39;0000&#39; + IDENTITY_ID, 4)</content><link rel='replies' type='application/atom+xml' href='http://shimul2009.blogspot.com/feeds/5626778319992932328/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shimul2009.blogspot.com/2009/07/udate-any-field-with-leading-zeros.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/5626778319992932328'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/5626778319992932328'/><link rel='alternate' type='text/html' href='http://shimul2009.blogspot.com/2009/07/udate-any-field-with-leading-zeros.html' title=''/><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-1134588289262019878.post-4601644319170871155</id><published>2009-06-08T13:59:00.000-07:00</published><updated>2009-06-08T17:27:41.325-07:00</updated><title type='text'></title><content type='html'>&lt;strong&gt;&lt;u&gt;Date Calculation:&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color:#990000;&quot;&gt;&lt;span style=&quot;color:#33cc00;&quot;&gt;Dim age_to_date As DateTime = DateTime.Parse(age_to.Text)&lt;br /&gt;Dim age_from_date As DateTime = DateTime.Parse(age_from.Text)&lt;br /&gt;&lt;br /&gt;Dim age_to_ As DateTime = Convert.ToDateTime(age_to_date)&lt;br /&gt;Dim year_to As String = age_to_.Year.ToString()&lt;br /&gt;Dim month_to As String = age_to_.Month()&lt;br /&gt;Dim day_to As String = age_to_.Day()&lt;br /&gt;&lt;br /&gt;Dim age_from_ As DateTime = Convert.ToDateTime(age_from_date)&lt;br /&gt;Dim year_from As String = age_from_.Year.ToString()&lt;br /&gt;Dim month_from As String = age_from_.Month()&lt;br /&gt;Dim day_from As String = age_from_.Day()&lt;br /&gt;&lt;br /&gt;Dim age_years As Integer = Math.Abs(Convert.ToInt16(year_to) - Convert.ToInt16(year_from))&lt;br /&gt;Dim age_months As Integer = Math.Abs(Convert.ToInt16(month_to) - Convert.ToInt16(month_from))&lt;br /&gt;Dim age_days As Integer = Math.Abs(Convert.ToInt16(day_to) - Convert.ToInt16(day_from))&lt;br /&gt;&lt;br /&gt;display_age.Text = age_years.ToString() &amp;amp; &quot; years &quot; &amp;amp; age_months.ToString() &amp;amp; &quot; months &quot; &amp;amp; age_days.ToString() &amp;amp; &quot; days&quot;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;Date Calculation:&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;Dim age_to_date As DateTime = DateTime.Parse(age_to.Text)&lt;br /&gt;Dim age_from_date As DateTime = DateTime.Parse(age_from.Text)&lt;br /&gt;Dim age_to_ As DateTime = Convert.ToDateTime(age_to_date)&lt;br /&gt;Dim year_to As String = age_to_.Year.ToString()&lt;br /&gt;Dim month_to As String = age_to_.Month()&lt;br /&gt;Dim day_to As String = age_to_.Day()&lt;br /&gt;Dim age_from_ As DateTime = Convert.ToDateTime(age_from_date)&lt;br /&gt;Dim year_from As String = age_from_.Year.ToString()&lt;br /&gt;Dim month_from As String = age_from_.Month()&lt;br /&gt;Dim day_from As String = age_from_.Day()&lt;br /&gt;Dim age_years As Integer = Math.Abs(Convert.ToInt16(year_to) - Convert.ToInt16(year_from))&lt;br /&gt;Dim age_months As Integer = Math.Abs(Convert.ToInt16(month_to) - Convert.ToInt16(month_from))&lt;br /&gt;Dim age_days As Integer = Math.Abs(Convert.ToInt16(day_to) - Convert.ToInt16(day_from))&lt;br /&gt;display_age.Text = age_years.ToString() &amp;amp; &quot; years &quot; &amp;amp; age_months.ToString() &amp;amp; &quot; months &quot; &amp;amp; age_days.ToString() &amp;amp; &quot; days&quot;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;&lt;a href=&quot;http://forums.asp.net/t/1385765.aspx&quot;&gt;Date time and week number of the year:&lt;/a&gt;&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;It gets the firstdate and lastdate on the asp.net calendar control Maybe that will help.&lt;br /&gt;&lt;br /&gt;Dim firstDOW As DayOfWeek&lt;br /&gt;If (Calendar1.FirstDayOfWeek = System.Web.UI.WebControls.FirstDayOfWeek.Default) Then&lt;br /&gt;firstDOW = System.Globalization.DateTimeFormatInfo.CurrentInfo.FirstDayOfWeek&lt;br /&gt;Else&lt;br /&gt;firstDOW = Calendar1.FirstDayOfWeek&lt;br /&gt;End If&lt;br /&gt;If (firstDOW = Calendar1.VisibleDate.DayOfWeek) Then&lt;br /&gt;firstdate = firstdate.AddDays(-7)&lt;br /&gt;Else&lt;br /&gt;While (firstdate.DayOfWeek &lt;&gt; firstDOW)&lt;br /&gt;firstdate = firstdate.AddDays(-1)&lt;br /&gt;End While&lt;br /&gt;End If&lt;br /&gt;&lt;br /&gt;Dim lastdate As DateTime = firstdate.AddDays(41)&lt;br /&gt;&lt;br /&gt;Date Time:&lt;br /&gt;&lt;a href=&quot;http://dotnetguts.blogspot.com/search/label/SQL&quot;&gt;http://dotnetguts.blogspot.com/search/label/SQL&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://shimul2009.blogspot.com/feeds/4601644319170871155/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shimul2009.blogspot.com/2009/06/date-time-and-week-number-of-year-it.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/4601644319170871155'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/4601644319170871155'/><link rel='alternate' type='text/html' href='http://shimul2009.blogspot.com/2009/06/date-time-and-week-number-of-year-it.html' title=''/><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-1134588289262019878.post-1898699611034504760</id><published>2009-06-05T19:59:00.001-07:00</published><updated>2009-06-05T20:00:23.569-07:00</updated><title type='text'></title><content type='html'>&lt;strong&gt;&lt;a href=&quot;http://www.theserverside.net/discussions/thread.tss?thread_id=29385&quot;&gt;Export/Import Data From (SQL/DataGrid) To .csv/.txt Format&lt;/a&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Posted by: Scott Schecter on December 02, 2004 in response to Message #143895&lt;br /&gt;Imports System&lt;br /&gt;Imports System.Data&lt;br /&gt;Imports System.Data.OleDb&lt;br /&gt;Imports System.IO&lt;br /&gt;&lt;br /&gt;Code :&lt;br /&gt;&lt;br /&gt;Private Sub btnSubmit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSubmit.Click&lt;br /&gt;Dim intFileNameLength As Integer&lt;br /&gt;Dim strFileNamePath As String&lt;br /&gt;Dim strFileNameOnly As String&lt;br /&gt;&lt;br /&gt;If Not (UploadFile.PostedFile Is Nothing) Then&lt;br /&gt;strFileNamePath = UploadFile.PostedFile.FileName&lt;br /&gt;&lt;br /&gt;intFileNameLength = InStr(1, StrReverse(strFileNamePath), &quot;\&quot;)&lt;br /&gt;&lt;br /&gt;strFileNameOnly = Mid(strFileNamePath, (Len(strFileNamePath) - intFileNameLength) + 2)&lt;br /&gt;Dim paths = Server.MapPath(&quot;/excelreading/&quot;)&lt;br /&gt;&lt;br /&gt;paths = paths &amp;amp; &quot;Excel/&quot;&lt;br /&gt;&lt;br /&gt;&#39;If File.Exists(paths &amp;amp; strFileNameOnly) Then&lt;br /&gt;&#39;lblMessage.Text = &quot;Image of Similar name already Exist,Choose other name&quot;&lt;br /&gt;&#39;Else&lt;br /&gt;If UploadFile.PostedFile.ContentLength &gt; 40000 Then&lt;br /&gt;lblMessage.Text = &quot;The Size of file is greater than 4 MB&quot;&lt;br /&gt;ElseIf strFileNameOnly = &quot;&quot; Then&lt;br /&gt;Exit Sub&lt;br /&gt;Else&lt;br /&gt;strFileNameOnly = Session(&quot;AdminID&quot;) &amp;amp; &quot;-&quot; &amp;amp; Session(&quot;Acountry&quot;) &amp;amp; &quot;-&quot; &amp;amp; Format(Date.Today, &quot;mm-dd-yyyy&quot;).Replace(&quot;/&quot;, &quot;-&quot;) &amp;amp; &quot;.xls&quot;&lt;br /&gt;UploadFile.PostedFile.SaveAs(paths &amp;amp; strFileNameOnly)&lt;br /&gt;lblMessage.Text = &quot;File Upload Success.&quot;&lt;br /&gt;Session(&quot;Img&quot;) = strFileNameOnly&lt;br /&gt;End If&lt;br /&gt;End If&lt;br /&gt;&#39;End If&lt;br /&gt;&lt;br /&gt;Dim myDataset As New DataSet()&lt;br /&gt;Dim strConn As String = &quot;Provider=Microsoft.Jet.OLEDB.4.0;&quot; &amp;amp; _&lt;br /&gt;&quot;Data Source=&quot; &amp;amp; Server.MapPath(&quot;/excelreading/&quot;) &amp;amp; &quot;excel/&quot; &amp;amp; strFileNameOnly &amp;amp; &quot;;&quot; &amp;amp; _&lt;br /&gt;&quot;Extended Properties=Excel 8.0;&quot;&lt;br /&gt;&lt;br /&gt;&#39;&#39;You must use the $ after the object you reference in the spreadsheet&lt;br /&gt;Dim myData As New OleDbDataAdapter(&quot;SELECT * FROM [Sheet1$]&quot;, strConn)&lt;br /&gt;myData.TableMappings.Add(&quot;Table&quot;, &quot;ExcelTest&quot;)&lt;br /&gt;myData.Fill(myDataset)&lt;br /&gt;&lt;br /&gt;DataGrid1.DataSource = myDataset.Tables(0).DefaultView&lt;br /&gt;DataGrid1.DataBind()&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub btnExportToExcel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExportToExcel.Click&lt;br /&gt;&#39; Set the content type to Excel.&lt;br /&gt;Response.ContentType = &quot;application/vnd.ms-excel&quot;&lt;br /&gt;&#39; Remove the charset from the Content-Type header.&lt;br /&gt;Response.Charset = &quot;&quot;&lt;br /&gt;&#39; Turn off the view state.&lt;br /&gt;Me.EnableViewState = False&lt;br /&gt;&lt;br /&gt;Dim tw As New System.IO.StringWriter()&lt;br /&gt;Dim hw As New System.Web.UI.HtmlTextWriter(tw)&lt;br /&gt;&lt;br /&gt;&#39; Get the HTML for the control.&lt;br /&gt;DataGrid1.RenderControl(hw)&lt;br /&gt;&#39; Write the HTML back to the browser.&lt;br /&gt;Response.Write(tw.ToString())&lt;br /&gt;&#39; End the response.&lt;br /&gt;Response.End()&lt;br /&gt;lblMessage.Text = &quot;For any more information , feel free to contact ...!!!&quot;&lt;br /&gt;End Sub</content><link rel='replies' type='application/atom+xml' href='http://shimul2009.blogspot.com/feeds/1898699611034504760/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shimul2009.blogspot.com/2009/06/exportimport-data-from-sqldatagrid-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/1898699611034504760'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/1898699611034504760'/><link rel='alternate' type='text/html' href='http://shimul2009.blogspot.com/2009/06/exportimport-data-from-sqldatagrid-to.html' title=''/><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-1134588289262019878.post-5420088479491494414</id><published>2009-06-02T20:11:00.001-07:00</published><updated>2009-06-03T12:35:22.255-07:00</updated><title type='text'></title><content type='html'>SELECT tbl_IVR_Output_Temp.phoneno, tbl_IVR_Output_Temp.loc, tbl_IVR_Output_Temp.mrn, tbl_IVR_Output_Temp.pat_name, tbl_IVR_Output_Temp.reason,&lt;br /&gt;tbl_IVR_Output_Temp.state, tbl_IVR_Output_Temp.callback, tbl_IVR_Output_Temp.Langu, tbl_IVR_Output_Temp.id1, tbl_IVR_Output_Temp.id2,&lt;br /&gt;tbl_IVR_Output_Temp.id3, repeatation.month AS Expr1&lt;br /&gt;FROM tbl_IVR_Output_Temp CROSS JOIN&lt;br /&gt;(SELECT CAST(LEFT(SUBSTRING(loc, 2, 8), 4) + RIGHT(SUBSTRING(loc, 2, 8), 4 + &#39;-&#39; + &#39;01 00:00:00&#39; ) AS smalldatetime) AS month&lt;br /&gt;FROM tbl_IVR_Output_Temp AS tbl_IVR_Output_Temp_1&lt;br /&gt;WHERE (phoneno LIKE &#39;99999%&#39;)) AS repeatation&lt;br /&gt;WHERE (tbl_IVR_Output_Temp.phoneno NOT LIKE &#39;99999%&#39;)</content><link rel='replies' type='application/atom+xml' href='http://shimul2009.blogspot.com/feeds/5420088479491494414/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shimul2009.blogspot.com/2009/06/select-tblivroutputtemp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/5420088479491494414'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/5420088479491494414'/><link rel='alternate' type='text/html' href='http://shimul2009.blogspot.com/2009/06/select-tblivroutputtemp.html' title=''/><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-1134588289262019878.post-4706288504990686405</id><published>2009-06-01T19:43:00.001-07:00</published><updated>2009-06-19T19:29:58.872-07:00</updated><title type='text'></title><content type='html'>&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Good reference by the experts:&lt;/strong&gt;&lt;br /&gt;&lt;a href=&quot;http://www.sourcecodeonline.com/sources/asp_net.html&quot;&gt;http://www.sourcecodeonline.com/sources/asp_net.html&lt;/a&gt; &lt;/li&gt;&lt;li&gt;Create buttons for AJAX: &lt;a href=&quot;http://www.ajaxload.info/#preview&quot;&gt;http://www.ajaxload.info/#preview&lt;/a&gt;&lt;/li&gt;&lt;li&gt;AJAX control toolkit: &lt;a href=&quot;http://www.asp.net/ajax/ajaxcontroltoolkit/samples/&quot;&gt;http://www.asp.net/ajax/ajaxcontroltoolkit/samples/&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Nice Demos with third party tools: &lt;a href=&quot;http://demos.telerik.com/aspnet-ajax/input/examples/radnumerictextbox/formatting/defaultcs.aspx&quot;&gt;http://demos.telerik.com/aspnet-ajax/input/examples/radnumerictextbox/formatting/defaultcs.aspx&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Ajax control with code...very Nice demo site 1: &lt;a href=&quot;http://mattberseth2.com/demo/&quot;&gt;http://mattberseth2.com/demo/&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Very Nice demo site 2: &lt;a href=&quot;http://www.hanselman.com/blog/&quot;&gt;http://www.hanselman.com/blog/&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Gridview to Excel: &lt;a href=&quot;http://aspnetlibrary.com/articledetails.aspx?article=How-to-export-a-GridView-to-Excel&quot;&gt;http://aspnetlibrary.com/articledetails.aspx?article=How-to-export-a-GridView-to-Excel&lt;/a&gt;&lt;/li&gt;&lt;li&gt;ASP.NET Quickstart Tutorial : &lt;a href=&quot;http://quickstarts.asp.net/QuickstartV20/aspnet/&quot;&gt;http://quickstarts.asp.net/QuickstartV20/aspnet/&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Accessing and Updating Data in ASP.NET 2.0: Inserting Data:&lt;a href=&quot;http://aspnet.4guysfromrolla.com/articles/050207-1.aspx&quot;&gt;http://aspnet.4guysfromrolla.com/articles/050207-1.aspx&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Windows Scripting: &lt;a href=&quot;http://www.aspfree.com/c/a/Windows-Scripting/Completing-Calendars-with-VBScript-Date-Functions/&quot;&gt;http://www.aspfree.com/c/a/Windows-Scripting/Completing-Calendars-with-VBScript-Date-Functions/&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Custom subtotal in a matrix: &lt;a href=&quot;http://www.windows-tech.info/15/b71686f2d4557925.php&quot;&gt;http://www.windows-tech.info/15/b71686f2d4557925.php&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Matrix Reporting: &lt;a href=&quot;http://www.gotreportviewer.com/matrices/&quot;&gt;http://www.gotreportviewer.com/matrices/&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.devasp.net/default.aspx&quot;&gt;http://www.devasp.net/default.aspx&lt;/a&gt;&lt;/li&gt;&lt;li&gt;CSS Library: &lt;a href=&quot;http://www.dynamicdrive.com/style/&quot;&gt;http://www.dynamicdrive.com/style/&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Excel Calculation Engine: &lt;a href=&quot;http://www.spreadsheetgear.com/support/samples/calcengine.aspx&quot;&gt;http://www.spreadsheetgear.com/support/samples/calcengine.aspx&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Excel Report in asp.net 2.0: &lt;a href=&quot;http://www.beansoftware.com/asp.net-tutorials/generating-excel-reports.aspx&quot;&gt;http://www.beansoftware.com/asp.net-tutorials/generating-excel-reports.aspx&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Export data to SQl server 2005: &lt;a href=&quot;http://www.ozgrid.com/forum/showthread.php?t=69825&quot;&gt;http://www.ozgrid.com/forum/showthread.php?t=69825&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Free Animated GIF: &lt;a href=&quot;http://www.sevenoaksart.co.uk/&quot;&gt;http://www.sevenoaksart.co.uk/&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Free Download: &lt;a href=&quot;http://www.gegereka.com/&quot;&gt;http://www.gegereka.com/&lt;/a&gt;?&lt;/li&gt;&lt;li&gt;Dropdown listbox inside the gridview: &lt;a href=&quot;http://www.highoncoding.com/Articles/170_DropDownList%20Inside%20The%20GridView%20Method%202.aspx&quot;&gt;http://www.highoncoding.com/Articles/170_DropDownList%20Inside%20The%20GridView%20Method%202.aspx&lt;/a&gt;&lt;/li&gt;&lt;li&gt;More about dropdown in gridview: &lt;a href=&quot;http://webthingsconsidered.blogspot.com/2005/09/dropdownlist-inside-gridview-or.html&quot;&gt;http://webthingsconsidered.blogspot.com/2005/09/dropdownlist-inside-gridview-or.html&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Timeline Project by MIT: &lt;a href=&quot;http://simile.mit.edu/&quot;&gt;http://simile.mit.edu/&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Timeline control: &lt;a href=&quot;http://demos.devexpress.com/ASPxSchedulerDemos/ViewTypes/TimelineView.aspx&quot;&gt;http://demos.devexpress.com/ASPxSchedulerDemos/ViewTypes/TimelineView.aspx&lt;/a&gt;&lt;/li&gt;&lt;li&gt;More on timeline: &lt;a href=&quot;http://weblogs.asp.net/rchartier/archive/2008/03/25/timeline-net.aspx&quot;&gt;http://weblogs.asp.net/rchartier/archive/2008/03/25/timeline-net.aspx&lt;/a&gt;&lt;/li&gt;&lt;li&gt;SQL Server Command: &lt;a href=&quot;http://www.1keydata.com/sql/sql.html&quot;&gt;http://www.1keydata.com/sql/sql.html&lt;/a&gt;&lt;/li&gt;&lt;li&gt;SQL Command: &lt;a href=&quot;http://www.lazydba.com/&quot;&gt;http://www.lazydba.com/&lt;/a&gt;&lt;/li&gt;&lt;li&gt;SQL Server More: &lt;a href=&quot;http://www.sqlservercentral.com/&quot;&gt;http://www.sqlservercentral.com/&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Free VB.net code: &lt;a href=&quot;http://www.vbdotnetheaven.com/&quot;&gt;http://www.vbdotnetheaven.com/&lt;/a&gt;&lt;/li&gt;&lt;li&gt;More VB.net code: &lt;a href=&quot;http://www.a1vbcode.com/&quot;&gt;http://www.a1vbcode.com/&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Microsoft Discussion group: &lt;a href=&quot;http://www.microsoft.com/communities/newsgroups/en-us/&quot;&gt;http://www.microsoft.com/communities/newsgroups/en-us/&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Advance Matrix reporting technique: &lt;a href=&quot;http://www.simple-talk.com/sql/sql-server-2005/advanced-matrix-reporting-techniques/&quot;&gt;http://www.simple-talk.com/sql/sql-server-2005/advanced-matrix-reporting-techniques/&lt;/a&gt; &lt;/li&gt;&lt;li&gt;Nice tutorials: &lt;a href=&quot;http://www.blackwasp.co.uk/Articles.aspx&quot;&gt;http://www.blackwasp.co.uk/Articles.aspx&lt;/a&gt; &lt;/li&gt;&lt;li&gt;Excel Formatting: &lt;a href=&quot;http://steveorr.net/Articles/ExcelExport.aspx&quot;&gt;http://steveorr.net/Articles/ExcelExport.aspx&lt;/a&gt; &lt;/li&gt;&lt;li&gt;Mouse Rollover and other CSS: &lt;a href=&quot;http://www.dynamicdrive.com/dynamicindex1/mouseovertabs.htm&quot;&gt;http://www.dynamicdrive.com/dynamicindex1/mouseovertabs.htm&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://shimul2009.blogspot.com/feeds/4706288504990686405/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shimul2009.blogspot.com/2009/06/system_4869.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/4706288504990686405'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/4706288504990686405'/><link rel='alternate' type='text/html' href='http://shimul2009.blogspot.com/2009/06/system_4869.html' title=''/><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-1134588289262019878.post-8202771542954786173</id><published>2009-06-01T19:42:00.003-07:00</published><updated>2009-06-01T19:42:47.669-07:00</updated><title type='text'></title><content type='html'>System.DateTime in ASP.NET&lt;br /&gt;back to DateTime tutorial on csharpfriends&lt;br /&gt;Below are common uses of the DateTime Structure in C#&lt;br /&gt;&lt;br /&gt;DateTime.Now;  6/1/2009 7:57:07 PM &lt;br /&gt;DateTime.Now.ToString();  6/1/2009 7:57:07 PM &lt;br /&gt;DateTime.Now.ToShortTimeString() 7:57 PM &lt;br /&gt;DateTime.Now.ToShortDateString() 6/1/2009 &lt;br /&gt;DateTime.Now.ToLongTimeString() 7:57:07 PM &lt;br /&gt;DateTime.Now.ToLongDateString() Monday, June 01, 2009 &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;DateTime.Now.ToString(&quot;d&quot;)  6/1/2009 &lt;br /&gt;DateTime.Now.ToString(&quot;D&quot;)  Monday, June 01, 2009 &lt;br /&gt;DateTime.Now.ToString(&quot;f&quot;)  Monday, June 01, 2009 7:57 PM &lt;br /&gt;DateTime.Now.ToString(&quot;F&quot;)  Monday, June 01, 2009 7:57:07 PM &lt;br /&gt;DateTime.Now.ToString(&quot;g&quot;)  6/1/2009 7:57 PM &lt;br /&gt;DateTime.Now.ToString(&quot;G&quot;)  6/1/2009 7:57:07 PM &lt;br /&gt;DateTime.Now.ToString(&quot;m&quot;)  June 01 &lt;br /&gt;DateTime.Now.ToString(&quot;r&quot;)  Mon, 01 Jun 2009 19:57:07 GMT &lt;br /&gt;DateTime.Now.ToString(&quot;s&quot;)  2009-06-01T19:57:07 &lt;br /&gt;DateTime.Now.ToString(&quot;t&quot;)  7:57 PM &lt;br /&gt;DateTime.Now.ToString(&quot;T&quot;)  7:57:07 PM &lt;br /&gt;DateTime.Now.ToString(&quot;u&quot;)  2009-06-01 19:57:07Z &lt;br /&gt;DateTime.Now.ToString(&quot;U&quot;)  Monday, June 01, 2009 11:57:07 PM &lt;br /&gt;DateTime.Now.ToString(&quot;y&quot;)  June, 2009 &lt;br /&gt;DateTime.Now.ToString(&quot;dddd, MMMM dd yyyy&quot;)  Monday, June 01 2009 &lt;br /&gt;DateTime.Now.ToString(&quot;ddd, MMM d &quot;&#39;&quot;yy&quot;)  Mon, Jun 1 &#39;09 &lt;br /&gt;DateTime.Now.ToString(&quot;dddd, MMMM dd&quot;)  Monday, June 01 &lt;br /&gt;DateTime.Now.ToString(&quot;M/yy&quot;)  6/09 &lt;br /&gt;DateTime.Now.ToString(&quot;dd-MM-yy&quot;)  01-06-09</content><link rel='replies' type='application/atom+xml' href='http://shimul2009.blogspot.com/feeds/8202771542954786173/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shimul2009.blogspot.com/2009/06/system_01.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/8202771542954786173'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/8202771542954786173'/><link rel='alternate' type='text/html' href='http://shimul2009.blogspot.com/2009/06/system_01.html' title=''/><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-1134588289262019878.post-5024171395659813512</id><published>2009-06-01T19:42:00.001-07:00</published><updated>2009-06-01T19:43:33.863-07:00</updated><title type='text'></title><content type='html'>&lt;strong&gt;&lt;br /&gt;&lt;br /&gt;System.Web.AspNetHostingPermission when Accessing Network or Intranet Projects using Visual Studio 2005 &lt;br /&gt;I rebuilt one of my development machines recently and attempted to access a project that I had out on a network share. I continually received project messages about the project not being trusted. I remembered that I had to change something but couldn&#39;t remember what it was until I found an old note I left in Outlook. The message I would receive in Visual Studio 2005 was: ASP.NET runtime error: Request for the permission of type &#39;System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&#39; failed. &lt;br /&gt;&lt;br /&gt;To resolve this issue, you must change your development machine .net security configuration since you are accessing items across the network. In the event that you need this ability at runtime, you must change the trust level in your config file to full. However, since this is only in development, I can change my local PC&#39;s security by going to Start &gt; Control Panel &gt; Administrative Tools &gt; Microsoft .NET Framework 2.0 Configuration. After it fully loads (sometimes takes a bit), fully expand My Computer in the navigation tree and click Runtime Security Policy. In the right hand pane, choose Adjust Zone Security. Leave the default option (Make changes to this computer) and hit next. Choose Local Intranet and change the trust level to Full Trust. Then choose next and then finish. Restart Visual Studio 2005 and you should be all set.&lt;/strong&gt;</content><link rel='replies' type='application/atom+xml' href='http://shimul2009.blogspot.com/feeds/5024171395659813512/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shimul2009.blogspot.com/2009/06/system.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/5024171395659813512'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/5024171395659813512'/><link rel='alternate' type='text/html' href='http://shimul2009.blogspot.com/2009/06/system.html' title=''/><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-1134588289262019878.post-1550627425874444356</id><published>2009-05-27T12:45:00.000-07:00</published><updated>2009-05-27T12:45:43.054-07:00</updated><title type='text'>Format number to 0000 in SQL Server 2000 : SQL Server, 2000</title><content type='html'>&lt;a href=&quot;http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/Q_23174183.html&quot;&gt;Format number to 0000 in SQL Server 2000 : SQL Server, 2000&lt;/a&gt;: &quot;SELECT RIGHT(  &#39;0000&#39; + cast(23 as varchar ) , 4)&quot;</content><link rel='replies' type='application/atom+xml' href='http://shimul2009.blogspot.com/feeds/1550627425874444356/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://shimul2009.blogspot.com/2009/05/format-number-to-0000-in-sql-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/1550627425874444356'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1134588289262019878/posts/default/1550627425874444356'/><link rel='alternate' type='text/html' href='http://shimul2009.blogspot.com/2009/05/format-number-to-0000-in-sql-server.html' title='Format number to 0000 in SQL Server 2000 : SQL Server, 2000'/><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>