<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>Mark Pritchard</title>
        <link>http://geekswithblogs.net/webblog4mapsr80/Default.aspx</link>
        <description>blog</description>
        <language>en-US</language>
        <copyright>Mark Pritchard</copyright>
        <managingEditor>mapsr80@sbcglobal.net</managingEditor>
        <generator>Subtext Version 0.0.0.0</generator>
        <image>
            <title>Mark Pritchard</title>
            <url>http://geekswithblogs.net/images/RSS2Image.gif</url>
            <link>http://geekswithblogs.net/webblog4mapsr80/Default.aspx</link>
            <width>77</width>
            <height>60</height>
        </image>
        <item>
            <title>Nevron Charting - A generic error occurred in GDI</title>
            <category>Asp.Net</category>
            <category>Controls</category>
            <link>http://geekswithblogs.net/webblog4mapsr80/archive/2006/06/06/80959.aspx</link>
            <description>&lt;P style="MARGIN: 0px"&gt;Okay, I am not one to complain much.&amp;nbsp; I am doing web application programming using Asp.net and VB.net.&amp;nbsp; For the most part I am using the &lt;A href="http://www.telerik.com/"&gt;Telerik&lt;/A&gt;&amp;nbsp;controls.&amp;nbsp; But, I need a good 3D chart which Telerik does not have.&amp;nbsp; At least not yet.&lt;/P&gt;
&lt;P style="MARGIN: 0px"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="MARGIN: 0px"&gt;I found what looks like it will be a good control from a company called &lt;A href="http://www.nevron.com/"&gt;Nevron&lt;/A&gt;.&amp;nbsp; But, Nevron has failed to make what is very critical, a well known fact.&amp;nbsp; i.e.&amp;nbsp; Did you know that if a specific folder (that you must create) is missing, you will get an "A generic error occurred in GDI+" error?&amp;nbsp; Well, neither did I.&lt;/P&gt;
&lt;P style="MARGIN: 0px"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="MARGIN: 0px"&gt;I searched their site for help on this and found zero, nada, nil, nothing...&amp;nbsp; I spent hours going through their forums having the same luck.&amp;nbsp; I finally posted a question and found out what folder I did not have but needed.&amp;nbsp; So, what folder is needed? &lt;STRONG&gt;NevronTemp&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="MARGIN: 0px"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="MARGIN: 0px"&gt;Once I created that folder, the sample application worked just fine.&amp;nbsp; So, if you come across this error try adding this folder to the root of your project.&lt;/P&gt;
&lt;P style="MARGIN: 0px"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="MARGIN: 0px"&gt;TTFN,&lt;/P&gt;
&lt;P style="MARGIN: 0px"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="MARGIN: 0px"&gt;Mark&lt;/P&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=80959"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=80959" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/webblog4mapsr80/aggbug/80959.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Mark Pritchard</dc:creator>
            <guid>http://geekswithblogs.net/webblog4mapsr80/archive/2006/06/06/80959.aspx</guid>
            <pubDate>Tue, 06 Jun 2006 21:17:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/webblog4mapsr80/comments/80959.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/webblog4mapsr80/archive/2006/06/06/80959.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/webblog4mapsr80/comments/commentRss/80959.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/webblog4mapsr80/services/trackbacks/80959.aspx</trackback:ping>
        </item>
        <item>
            <title>Adding totals to telerik grid</title>
            <category>telerik controls</category>
            <link>http://geekswithblogs.net/webblog4mapsr80/archive/2006/02/20/70164.aspx</link>
            <description>&lt;P&gt;&lt;FONT face=Arial size=2&gt;First, you'll need to define a global variable to hold the value to be displayed in the footer.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;FONT color=#0000ff&gt;Public&lt;/FONT&gt; ClmTotChg &lt;FONT color=#0000ff&gt;As&lt;/FONT&gt; &lt;FONT color=#0000ff&gt;Integer&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face=Arial size=2&gt;&lt;FONT face="Courier New"&gt; = 0&lt;BR&gt;&lt;FONT color=#0000ff&gt;Public&lt;/FONT&gt; ClmTotBal &lt;FONT color=#0000ff&gt;As&lt;/FONT&gt; &lt;FONT color=#0000ff&gt;Integer&lt;/FONT&gt; = 0&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;Then, you'll need to populate the variable.&amp;nbsp; This is where it gets tricky.&amp;nbsp; In order for this to work, you must set the &amp;#8220;DataMember&amp;#8220; property of the MasterTableView or DetailTableView for the footer you want a total in.&amp;nbsp; You'll also need to set the ShowFooter value to true. &amp;nbsp;For instance...&lt;/FONT&gt;&lt;/P&gt;&lt;FONT color=#0000ff&gt;
&lt;P&gt;&lt;FONT face="Courier New" size=2&gt;&amp;lt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;FONT color=#800000&gt;MasterTableView &lt;/FONT&gt;&lt;FONT color=#ff0000&gt;DataMember&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="CLAIM"&lt;/FONT&gt; &lt;FONT color=#ff0000&gt;DataKeyNames&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="CLMNO"&lt;/FONT&gt; &lt;FONT color=#ff0000&gt;ShowFooter&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;="True"&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#0000ff&gt;&lt;FONT face=Arial color=#000000 size=2&gt;Next, you will need to populate the variable when a detail item is added to the grid.&amp;nbsp; You will do this in the &amp;#8220;ItemDataBound&amp;#8220; event on the grid.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;FONT color=#0000ff&gt;&lt;FONT color=#008000&gt;
&lt;P&gt;&lt;FONT face="Courier New" size=2&gt;'The following is used to update the total fields for the footer on the Claim Header grid&lt;BR&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size=2&gt;If&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size=2&gt; &lt;FONT color=#0000ff&gt;TypeOf&lt;/FONT&gt; e.Item &lt;FONT color=#0000ff&gt;Is&lt;/FONT&gt; GridDataItem &lt;FONT color=#0000ff&gt;And&lt;/FONT&gt; e.Item.OwnerTableView.DataMember = &lt;FONT color=#800000&gt;"CLAIM"&lt;/FONT&gt; &lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;FONT color=#0000ff&gt;Then&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&amp;nbsp; Dim&lt;/FONT&gt; gridItem &lt;FONT color=#0000ff&gt;As&lt;/FONT&gt; GridDataItem = &lt;FONT color=#0000ff&gt;CType&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;(e.Item, GridDataItem)&lt;BR&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&amp;nbsp; Select&lt;/FONT&gt; &lt;FONT color=#0000ff&gt;Case&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt; gridItem.ItemType&lt;BR&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Case&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt; GridItemType.AlternatingItem, GridItemType.Item&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ClmTotChg += gridItem(&lt;FONT color=#800000&gt;"CLMAMT"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size=2&gt;).Text&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ClmTotBal += gridItem(&lt;FONT color=#800000&gt;"CLMBAL"&lt;/FONT&gt;).Text&lt;BR&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&amp;nbsp; End&lt;/FONT&gt; &lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;FONT color=#0000ff&gt;Select&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;End&lt;/FONT&gt; &lt;FONT color=#0000ff&gt;If&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial color=#000000 size=2&gt;Finally, you'll need to add the totals to the footer.&lt;/FONT&gt;&lt;/P&gt;&lt;FONT color=#0000ff&gt;
&lt;P&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;FONT color=#008000&gt;'The following is used to add a footer to the Claim Header grid that will show the totals&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;If&lt;/FONT&gt; &lt;FONT color=#0000ff&gt;TypeOf&lt;/FONT&gt; e.Item &lt;FONT color=#0000ff&gt;Is&lt;/FONT&gt; GridFooterItem &lt;FONT color=#0000ff&gt;And&lt;/FONT&gt; e.Item.OwnerTableView.DataMember = &lt;FONT color=#800000&gt;"CLAIM"&lt;/FONT&gt; &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;FONT color=#0000ff&gt;Then&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&amp;nbsp; Dim&lt;/FONT&gt; footerItem &lt;FONT color=#0000ff&gt;As&lt;/FONT&gt; GridFooterItem = &lt;FONT color=#0000ff&gt;CType&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;(e.Item, GridFooterItem)&lt;BR&gt;&amp;nbsp;&amp;nbsp; footerItem(&lt;FONT color=#800000&gt;"CLMAMT"&lt;/FONT&gt;).Text = Format$(ClmTotChg, &lt;FONT color=#800000&gt;"$#,###,##0.00"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;)&lt;BR&gt;&amp;nbsp;&amp;nbsp; footerItem(&lt;FONT color=#800000&gt;"CLMBAL"&lt;/FONT&gt;).Text = Format$(ClmTotBal, &lt;FONT color=#800000&gt;"$#,###,##0.00"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;)&lt;BR&gt;&lt;FONT color=#0000ff&gt;End&lt;/FONT&gt; &lt;FONT color=#0000ff&gt;If&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial color=#000000 size=2&gt;That's all there is to it.&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;
&lt;P&gt;&lt;FONT color=#0000ff&gt;&lt;FONT face=Arial color=#000000 size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;/FONT&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=70164"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=70164" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/webblog4mapsr80/aggbug/70164.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Mark Pritchard</dc:creator>
            <guid>http://geekswithblogs.net/webblog4mapsr80/archive/2006/02/20/70164.aspx</guid>
            <pubDate>Mon, 20 Feb 2006 23:32:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/webblog4mapsr80/comments/70164.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/webblog4mapsr80/archive/2006/02/20/70164.aspx#feedback</comments>
            <slash:comments>3</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/webblog4mapsr80/comments/commentRss/70164.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/webblog4mapsr80/services/trackbacks/70164.aspx</trackback:ping>
        </item>
        <item>
            <title>GridView Uppercase Formatting </title>
            <category>Asp.Net</category>
            <category>VB.Net</category>
            <link>http://geekswithblogs.net/webblog4mapsr80/archive/2005/10/18/57320.aspx</link>
            <description>&lt;DIV class=post-body&gt;
&lt;P&gt;
&lt;DIV style="CLEAR: both"&gt;&lt;/DIV&gt;We&amp;#8217;ll it&amp;#8217;s been awhile, but I&amp;#8217;m back to the &amp;#8216;art&amp;#8217; of programming in VB.Net / ASP.Net.&lt;BR&gt;&lt;BR&gt;Today I was trying to figure out how to set data in a GridView to uppercase.&amp;nbsp;&amp;nbsp;Well, not finding any help out there, I decided to forge my own path.&amp;nbsp;&amp;nbsp;Below is what I&amp;#8217;ve discovered.&lt;BR&gt;&lt;BR&gt;The first step is to create a function that converts the cells contents into uppercase...&lt;BR&gt;I want to convert the data in the 9th cell (column) &amp;#8211; remember the grid cells are zero based, so visually this is the 10th cell (column) &amp;#8211; to uppercase&lt;BR&gt;&lt;BR&gt;&lt;FONT size=2&gt;&lt;FONT color=#006400&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Protected Sub MyGrid_DataBound(ByVal sender As Object, _&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: Courier New"&gt;ByVal e As GridViewRowEventArgs)&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;If e.Row.RowType = DataControlRowType.DataRow Then&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: Courier New"&gt;&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: Courier New"&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;' Display the cell contents in uppercase&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: Courier New"&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;e.Row.Cells(9).Text = e.Row.Cells(9).Text.ToUpper&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;End If&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: Courier New"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;End Sub&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: Courier New"&gt;&lt;/SPAN&gt;&lt;BR&gt;&lt;/FONT&gt;Then add an attribute to the grid&amp;#8217;s ASP.Net configuration that calls that function when Row Data is bound to the grid.&lt;BR&gt;&lt;FONT size=2&gt;&lt;FONT color=#a52a2a&gt;&lt;?xml:namespace prefix = asp /&gt;&lt;asp:GridView id=MyGrid OnRowDataBound="MyGrid_DataBound" ... runat="server"&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;/FONT&gt;Now, whenever a row is bound to the grid using MyGrid.DataBind(), the contents of the 9th column (cell) will be converted to uppercase.&lt;BR&gt;&lt;BR&gt;How&amp;#8217;s that for simplicity? &lt;/asp:GridView&gt;&lt;/DIV&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=57320"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=57320" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/webblog4mapsr80/aggbug/57320.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Mark Pritchard</dc:creator>
            <guid>http://geekswithblogs.net/webblog4mapsr80/archive/2005/10/18/57320.aspx</guid>
            <pubDate>Tue, 18 Oct 2005 23:05:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/webblog4mapsr80/comments/57320.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/webblog4mapsr80/archive/2005/10/18/57320.aspx#feedback</comments>
            <slash:comments>5</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/webblog4mapsr80/comments/commentRss/57320.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/webblog4mapsr80/services/trackbacks/57320.aspx</trackback:ping>
        </item>
        <item>
            <title>Empty Dataset</title>
            <category>Asp.Net</category>
            <category>VB.Net</category>
            <link>http://geekswithblogs.net/webblog4mapsr80/archive/2005/10/18/57322.aspx</link>
            <description>I was toying around today with controls from &lt;FONT color=#473624&gt;Dart Communciations&lt;/FONT&gt;. Their controls have built in callback technology. That means you don&amp;#8217;t have to write one line of code on the client-side for ASP.Net. Anyway&amp;#8230;&lt;BR&gt;&lt;BR&gt;I have these panels that are hidden on my page. When you select a menu button, the panel that corresponds to the button selected is displayed and the data is updated. The problem I was having was &amp;#8211; some of the panels have grids on them. At the time the page is rendered there is no data for the grids. So, when the page was &amp;#8220;refreshed&amp;#8221; the grids didn&amp;#8217;t show the new data.&lt;BR&gt;&lt;BR&gt;This happens because a callback will only update items that have been rendered previously. Since the grids didn&amp;#8217;t have data in them, they were never rendered. So, I put this little chunk of code in the page_load event and it solved the issue. Essentially I&amp;#8217;m creating a pseudo-empty dataset. I hope others will find use for this, too.&lt;BR&gt;&lt;BR&gt;&lt;FONT size=2&gt;&lt;FONT color=#006400&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: Courier New"&gt;SQL = "Declare @str as varchar(1) "&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: Courier New"&gt;SQL &amp;amp;= "Select @str = '' Select @str"&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: Courier New"&gt;DataSet = GetDataSet(SQL, cs, "Empty")&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: Courier New"&gt;grdToShow.DataSource = DataSet&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: Courier New"&gt;grdToShow.DataBind()&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: Courier New"&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/FONT&gt;Here&amp;#8217;s the GetDataSet function just incase you want to use it, too.&lt;BR&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: Courier New"&gt;&lt;/SPAN&gt;&lt;BR&gt;&lt;FONT size=2&gt;&lt;FONT color=#006400&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: Courier New"&gt;Private Function GetDataSet(ByVal SelectString As String, ByVal ConnectionString As String, ByVal TableName As String) As DataSet&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: Courier New"&gt;&amp;nbsp;&amp;nbsp; Dim DataSet As DataSet&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: Courier New"&gt;&amp;nbsp;&amp;nbsp; DataSet = New DataSet&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: Courier New"&gt;&amp;nbsp;&amp;nbsp; da = New SqlDataAdapter(SelectString, ConnectionString)&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: Courier New"&gt;&amp;nbsp;&amp;nbsp; da.Fill(DataSet, TableName)&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: Courier New"&gt;&amp;nbsp;&amp;nbsp; Return DataSet&lt;/SPAN&gt;&lt;BR&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: Courier New"&gt;End Function&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;SPAN style="FONT-SIZE: 85%; FONT-FAMILY: Courier New"&gt;&lt;/SPAN&gt;&lt;BR&gt;&lt;/FONT&gt;TTFN,&lt;BR&gt;&lt;BR&gt;Mark &lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=57322"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=57322" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/webblog4mapsr80/aggbug/57322.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Mark Pritchard</dc:creator>
            <guid>http://geekswithblogs.net/webblog4mapsr80/archive/2005/10/18/57322.aspx</guid>
            <pubDate>Tue, 18 Oct 2005 23:07:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/webblog4mapsr80/comments/57322.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/webblog4mapsr80/archive/2005/10/18/57322.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/webblog4mapsr80/comments/commentRss/57322.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/webblog4mapsr80/services/trackbacks/57322.aspx</trackback:ping>
        </item>
    </channel>
</rss>