<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>Bunch's Blog</title>
        <link>http://geekswithblogs.net/Bunch/Default.aspx</link>
        <description> One day I'll have a catchy subtitle, one day</description>
        <language>en-US</language>
        <copyright>Bunch</copyright>
        <managingEditor>ksqcoder@gmail.com</managingEditor>
        <generator>Subtext Version 0.0.0.0</generator>
        <image>
            <title>Bunch's Blog</title>
            <url>http://geekswithblogs.net/images/RSS2Image.gif</url>
            <link>http://geekswithblogs.net/Bunch/Default.aspx</link>
            <width>77</width>
            <height>60</height>
        </image>
        <item>
            <title>RadGrid Column Sizing</title>
            <link>http://geekswithblogs.net/Bunch/archive/2012/08/31/radgrid-column-sizing.aspx</link>
            <description>&lt;p&gt;Originally posted on: &lt;a href='http://geekswithblogs.net/Bunch/archive/2012/08/31/radgrid-column-sizing.aspx'&gt;http://geekswithblogs.net/Bunch/archive/2012/08/31/radgrid-column-sizing.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;I came across this column sizing weirdness the other day. 
Using a RadGrid the headers looked great. The rows with the data however sized 
however they felt like it, usually way too small. After looking around I came 
across this that solved my problem. Adding the meta tag of &amp;lt;meta 
http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /&amp;gt; in the head section 
of my aspx page was what I needed.&lt;/p&gt;
&lt;p&gt;My issue was pretty specific since I had to target IE8 for the app I was 
working on but it may apply to other scenarios as well.&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;&lt;p&gt;Tags: &lt;a href="http://technorati.com/tag/ASP.Net" rel="tag"&gt;ASP.Net&lt;/a&gt;&lt;/p&gt; &lt;img src="http://geekswithblogs.net/Bunch/aggbug/150581.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Bunch</dc:creator>
            <guid>http://geekswithblogs.net/Bunch/archive/2012/08/31/radgrid-column-sizing.aspx</guid>
            <pubDate>Fri, 31 Aug 2012 13:54:06 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/Bunch/comments/150581.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/Bunch/archive/2012/08/31/radgrid-column-sizing.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/Bunch/comments/commentRss/150581.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Oracle and Looping Through Columns</title>
            <link>http://geekswithblogs.net/Bunch/archive/2012/07/17/oracle-and-looping-through-columns.aspx</link>
            <description>&lt;p&gt;Originally posted on: &lt;a href='http://geekswithblogs.net/Bunch/archive/2012/07/17/oracle-and-looping-through-columns.aspx'&gt;http://geekswithblogs.net/Bunch/archive/2012/07/17/oracle-and-looping-through-columns.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;I recently had to write a stored procedure that 
validated some data in a staging table. Looping through the records was pretty 
straight forward in Oracle using a loop (way easier than the SQL Server 
version). However there was set of columns in the table that were all the same 
type but different values that needed to be checked. To clarify I had a table 
setup like this:&lt;/p&gt;
&lt;p&gt;ID  Name  Number  Position1  Position2  Position3&lt;/p&gt;
&lt;p&gt;The ID is just an integer PK value, Name would be a players name, Number 
their jersey number and then Position1 - 3 the different positions the player 
knows how to play (like shortstop, second base, left field, etc.).&lt;/p&gt;
&lt;p&gt;To start with I create my outer loop that I would use to check their Name and 
Number along with getting the various Position values.&lt;/p&gt;
&lt;p&gt;for players in (select p.ID, p.Name, p.Number, p.Position1, 
p.Position2, &lt;br /&gt;                               p.Position3 &lt;br /&gt;                 
   from stage_players p) loop&lt;/p&gt;
&lt;p&gt;After checking the Name and Number I needed now to loop through the three 
possible Positions for the player's record or loop through that record's 
columns. To do this I setup an inner loop like this.&lt;/p&gt;
&lt;p&gt;for positions in (select players.Position1 as pos from 
dual&lt;br /&gt;                       union &lt;br /&gt;                       select 
players.Position2 as pos from dual&lt;br /&gt;                       union&lt;br /&gt;                       select players.Position3 as pos from dual) 
loop&lt;/p&gt;
&lt;p&gt;Now I can use this loop to check each positions.pos to make sure they are 
valid.&lt;/p&gt;&lt;p&gt;Tags: &lt;a href="http://technorati.com/tag/PLSQL" rel="tag"&gt;PLSQL&lt;/a&gt;&lt;/p&gt; &lt;img src="http://geekswithblogs.net/Bunch/aggbug/150251.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Bunch</dc:creator>
            <guid>http://geekswithblogs.net/Bunch/archive/2012/07/17/oracle-and-looping-through-columns.aspx</guid>
            <pubDate>Tue, 17 Jul 2012 19:24:37 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/Bunch/comments/150251.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/Bunch/archive/2012/07/17/oracle-and-looping-through-columns.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/Bunch/comments/commentRss/150251.aspx</wfw:commentRss>
        </item>
        <item>
            <title>SSMS Slow To Save</title>
            <link>http://geekswithblogs.net/Bunch/archive/2012/05/29/ssms-slow-to-save.aspx</link>
            <description>&lt;p&gt;Originally posted on: &lt;a href='http://geekswithblogs.net/Bunch/archive/2012/05/29/ssms-slow-to-save.aspx'&gt;http://geekswithblogs.net/Bunch/archive/2012/05/29/ssms-slow-to-save.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;When using SSMS 2008 I found it to be really slow when 
trying to save a file, even a small one with just some simple SELECT statements 
on it. The symptoms were the flashing save disk icons in the lower right corner 
and selecting the location to save in the Save File dialog would hang each time 
I picked a location (e.g. Libraries, a folder). This was the first I had seen 
anything like this where it was really, really slow. It ended up that a server 
had died last week and I was still mapping a drive to it. SSMS was still trying 
to connect to it causing the slow down (further information &lt;a href="http://www.sqlskills.com/BLOGS/PAUL/post/Ever-had-poor-performance-saving-files-in-SSMS-over-slow-network.aspx"&gt;here&lt;/a&gt; and 
&lt;a href="https://connect.microsoft.com/SQLServer/feedback/details/651176/ssms-tries-to-access-disconnected-network-drives-when-in-the-save-file-as-wizard"&gt;here&lt;/a&gt;). 
Once I removed that the save functionality worked like it should.&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;&lt;p&gt;Tags: &lt;a href="http://technorati.com/tag/SQL" rel="tag"&gt;SQL&lt;/a&gt;&lt;/p&gt; &lt;img src="http://geekswithblogs.net/Bunch/aggbug/149759.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Bunch</dc:creator>
            <guid>http://geekswithblogs.net/Bunch/archive/2012/05/29/ssms-slow-to-save.aspx</guid>
            <pubDate>Tue, 29 May 2012 17:52:45 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/Bunch/comments/149759.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/Bunch/archive/2012/05/29/ssms-slow-to-save.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/Bunch/comments/commentRss/149759.aspx</wfw:commentRss>
        </item>
        <item>
            <title>New Window Via JavaScript Clears Parent</title>
            <link>http://geekswithblogs.net/Bunch/archive/2012/05/25/new-window-via-javascript-clears-parent.aspx</link>
            <description>&lt;p&gt;Originally posted on: &lt;a href='http://geekswithblogs.net/Bunch/archive/2012/05/25/new-window-via-javascript-clears-parent.aspx'&gt;http://geekswithblogs.net/Bunch/archive/2012/05/25/new-window-via-javascript-clears-parent.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;This is not a new item at all but I came across it 
recently. For an app I had been using some JavaScript like:&lt;/p&gt;
&lt;p&gt;javascript:window.open(someurl.aspx here)&lt;/p&gt;
&lt;p&gt;to open a new window via a button. That bit of code had been working great in 
several other apps. Then in one app that same code decided to open the new 
window correctly while clearing the parent of everything but [object]. The fix 
ended up being simple, change the javascript to:&lt;/p&gt;
&lt;p&gt;javascript:void(window.open(someurl.aspx here);&lt;/p&gt;
&lt;p&gt;Then it worked like I thought it should.&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;&lt;p&gt;Tags: &lt;a href="http://technorati.com/tag/ASP.Net" rel="tag"&gt;ASP.Net&lt;/a&gt;, &lt;a href="http://technorati.com/tag/JavaScript" rel="tag"&gt;JavaScript&lt;/a&gt;&lt;/p&gt; &lt;img src="http://geekswithblogs.net/Bunch/aggbug/149734.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Bunch</dc:creator>
            <guid>http://geekswithblogs.net/Bunch/archive/2012/05/25/new-window-via-javascript-clears-parent.aspx</guid>
            <pubDate>Fri, 25 May 2012 17:28:35 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/Bunch/comments/149734.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/Bunch/archive/2012/05/25/new-window-via-javascript-clears-parent.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/Bunch/comments/commentRss/149734.aspx</wfw:commentRss>
        </item>
        <item>
            <title>BoundField Formatting</title>
            <link>http://geekswithblogs.net/Bunch/archive/2012/05/23/boundfield-formatting.aspx</link>
            <description>&lt;p&gt;Originally posted on: &lt;a href='http://geekswithblogs.net/Bunch/archive/2012/05/23/boundfield-formatting.aspx'&gt;http://geekswithblogs.net/Bunch/archive/2012/05/23/boundfield-formatting.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;If you have a GridView that uses BoundFields but does not display line breaks 
or a lot of spaces quite right here is a way to get around that. This example 
uses a GridView with one BoundField that uses a DataField of comments. The 
comments are stored in a database and entered from another page which displays 
the comments properly in a textbox with all the spaces and line breaks you 
intended. The trick to get a BoundField to show those items is to take the item 
and replace the \r\n with a &amp;lt;br /&amp;gt; and the spaces with &amp;amp;nbsp. Also you 
need to set the HtmlEncode property of the BoundField to false. &lt;/p&gt;
&lt;p&gt;This example shows the data being returned to a DataView which is the 
DataSource for the GridView. &lt;/p&gt;
&lt;p&gt;The GridView:&lt;/p&gt;
&lt;p&gt;&amp;lt;asp:GridView ID="gvComments" runat="server" AutoGenerateColumns="false" 
&amp;gt;&lt;br /&gt;   &amp;lt;Columns&amp;gt;&lt;br /&gt;      &amp;lt;asp:BoundField DataField="comments" 
HtmlEncode="false" /&amp;gt;&lt;br /&gt;   &amp;lt;/Columns&amp;gt;&lt;br /&gt;&amp;lt;/asp:GridView&amp;gt;&lt;/p&gt;
&lt;p&gt;The code (assumes the DataView dv is already filled):&lt;/p&gt;
&lt;p&gt;int i = 0;&lt;br /&gt;foreach (DataRow dr in dv.Table.Rows)&lt;br /&gt;{&lt;br /&gt;   string comment 
= dr.Field&amp;lt;string&amp;gt;(6);&lt;br /&gt;   comment = comment.Replace(" ", 
"&amp;amp;nbsp;");&lt;br /&gt;   comment = comment.Replace("\r\n", "&amp;lt;br /&amp;gt;");&lt;br /&gt;   
dv.Table.Rows[i][6] = comment;&lt;br /&gt;   i++;&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;&lt;p&gt;Tags: &lt;a href="http://technorati.com/tag/ASP.Net" rel="tag"&gt;ASP.Net&lt;/a&gt;, &lt;a href="http://technorati.com/tag/CSharp" rel="tag"&gt;CSharp&lt;/a&gt;&lt;/p&gt; &lt;img src="http://geekswithblogs.net/Bunch/aggbug/149717.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Bunch</dc:creator>
            <guid>http://geekswithblogs.net/Bunch/archive/2012/05/23/boundfield-formatting.aspx</guid>
            <pubDate>Wed, 23 May 2012 20:24:33 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/Bunch/comments/149717.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/Bunch/archive/2012/05/23/boundfield-formatting.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/Bunch/comments/commentRss/149717.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Old SQL, Top and a Variable</title>
            <link>http://geekswithblogs.net/Bunch/archive/2012/05/15/old-sql-top-and-a-variable.aspx</link>
            <description>&lt;p&gt;Originally posted on: &lt;a href='http://geekswithblogs.net/Bunch/archive/2012/05/15/old-sql-top-and-a-variable.aspx'&gt;http://geekswithblogs.net/Bunch/archive/2012/05/15/old-sql-top-and-a-variable.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;I came across this the other day. Using SQL 2000 I could 
not get a Top statement to work with a variable. I had forgotten that only with 
SQL 2005 and higher could you do this trick. I found a good way around it, you 
can &lt;a href="http://sqlserver2000.databases.aspfaq.com/how-do-i-use-a-variable-in-a-top-clause-in-sql-server.html"&gt;read 
about it here&lt;/a&gt;. Anyway this works on SQL 2000:&lt;/p&gt;
&lt;p&gt;declare @top int&lt;br /&gt;set @top = 5 &lt;/p&gt;
&lt;p&gt;BEGIN&lt;br /&gt;set rowcount @top&lt;br /&gt; select Some_ID&lt;br /&gt; from tblStuff&lt;br /&gt;set 
rowcount 0&lt;br /&gt;END&lt;/p&gt;
&lt;p&gt;The code above would return the first five records from tblStuff. For any of 
the newer SQL Server version you can simply use the @top variable in Top 
like:&lt;/p&gt;
&lt;p&gt;select top (@top) Some_ID&lt;br /&gt;from tblStuff&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;&lt;p&gt;Tags: &lt;a href="http://technorati.com/tag/SQL" rel="tag"&gt;SQL&lt;/a&gt;&lt;/p&gt; &lt;img src="http://geekswithblogs.net/Bunch/aggbug/149660.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Bunch</dc:creator>
            <guid>http://geekswithblogs.net/Bunch/archive/2012/05/15/old-sql-top-and-a-variable.aspx</guid>
            <pubDate>Tue, 15 May 2012 17:48:32 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/Bunch/comments/149660.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/Bunch/archive/2012/05/15/old-sql-top-and-a-variable.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/Bunch/comments/commentRss/149660.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Searching SQL Server Objects</title>
            <link>http://geekswithblogs.net/Bunch/archive/2012/05/08/searching-sql-server-objects.aspx</link>
            <description>&lt;p&gt;Originally posted on: &lt;a href='http://geekswithblogs.net/Bunch/archive/2012/05/08/searching-sql-server-objects.aspx'&gt;http://geekswithblogs.net/Bunch/archive/2012/05/08/searching-sql-server-objects.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;I came across this tool the other day and found it to be 
very useful. In the past if I needed to search within all the stored procedures 
or views in a database I would use some SQL to run a query using sysobjects and 
syscomments. That worked well but this is a bit slicker. The tool is redgate's 
SQL Search and it is available (for now at least) as a free stand alone tool. 
You can &lt;a href="http://www.red-gate.com/products/sql-development/sql-search/" target="_blank"&gt;download it here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;It supports SQL 2005 and later and I found it to 
integrate with the SSMS IDE well. It will add a red binocular SQL Search icon in 
your tool bar. Clicking that will open a nice tab with the searching fields. You 
can easily search for some value within a view then switch to a stored 
procedure. I found it to be really useful when setting up a test database and I 
needed to search for names of objects that might have changed for the new test 
environment. You search for a value then double click the item on the list which 
opens the item within Object Explorer.&lt;/p&gt;
&lt;p&gt;Tags: &lt;a href="http://technorati.com/tag/SQL" rel="tag"&gt;SQL&lt;/a&gt;&lt;/p&gt; &lt;img src="http://geekswithblogs.net/Bunch/aggbug/149565.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Bunch</dc:creator>
            <guid>http://geekswithblogs.net/Bunch/archive/2012/05/08/searching-sql-server-objects.aspx</guid>
            <pubDate>Tue, 08 May 2012 13:41:07 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/Bunch/comments/149565.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/Bunch/archive/2012/05/08/searching-sql-server-objects.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/Bunch/comments/commentRss/149565.aspx</wfw:commentRss>
        </item>
        <item>
            <title>ORA-00900 Super Easy Fix (for some cases)</title>
            <link>http://geekswithblogs.net/Bunch/archive/2012/04/13/ora-00900-super-easy-fix-for-some-cases.aspx</link>
            <description>&lt;p&gt;Originally posted on: &lt;a href='http://geekswithblogs.net/Bunch/archive/2012/04/13/ora-00900-super-easy-fix-for-some-cases.aspx'&gt;http://geekswithblogs.net/Bunch/archive/2012/04/13/ora-00900-super-easy-fix-for-some-cases.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Here is a really easy fix for some ORA-00900 errors. 
Well at least the one I saw the other day. This was something that I did not 
come across when searching either. I found lots of other ideas on what the 
problem might be but not the fix. Since I am fairly new to PL/SQL (TSQL only for 
a long time) this one stumped me for a while. Until I asked someone and they saw 
the error in about two seconds.&lt;/p&gt;
&lt;p&gt;When using the Command Window to add a view I was receiving an ORA-00900 
error. So I checked that everything the view was referencing was there and that 
the permissions looked OK. The code for the view was fairly simple and it ran 
just fine in a regular SQL Window. It ended up that the Command Window did not 
like the space I had between the list of items in the select before the 
from.&lt;/p&gt;
&lt;p&gt;Bad:&lt;/p&gt;
&lt;p&gt;col1,&lt;br /&gt;col2,&lt;br /&gt;                               &amp;lt;--- does not like 
the empty line&lt;br /&gt;from tblSomething&lt;/p&gt;
&lt;p&gt;Good:&lt;/p&gt;
&lt;p&gt;col1,&lt;br /&gt;col2,&lt;br /&gt;from tblSomething&lt;/p&gt;
&lt;p&gt;I will just chalk that up to my familiarity with PL/SQL.&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;&lt;p&gt;Tags: &lt;a href="http://technorati.com/tag/PLSQL" rel="tag"&gt;PLSQL&lt;/a&gt;&lt;/p&gt; &lt;img src="http://geekswithblogs.net/Bunch/aggbug/149311.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Bunch</dc:creator>
            <guid>http://geekswithblogs.net/Bunch/archive/2012/04/13/ora-00900-super-easy-fix-for-some-cases.aspx</guid>
            <pubDate>Fri, 13 Apr 2012 20:25:40 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/Bunch/comments/149311.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/Bunch/archive/2012/04/13/ora-00900-super-easy-fix-for-some-cases.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/Bunch/comments/commentRss/149311.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Finding Buried Controls</title>
            <link>http://geekswithblogs.net/Bunch/archive/2012/03/28/finding-buried-controls.aspx</link>
            <description>&lt;p&gt;Originally posted on: &lt;a href='http://geekswithblogs.net/Bunch/archive/2012/03/28/finding-buried-controls.aspx'&gt;http://geekswithblogs.net/Bunch/archive/2012/03/28/finding-buried-controls.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;This post is pretty specific to an issue I had but still 
has some ideas that could be applied in other scenarios. The problem I had was 
updating a few buttons so their Text values could be set in the code behind 
which had a method to grab the proper value from an external source. This was so 
that if the application needed to be installed by a customer using a language 
other than English or needed a different notation for the button's Text they 
could simply update the database.&lt;/p&gt;
&lt;p&gt;Most of the time this was no big deal. However I had one instance where the 
button was part of a control, the button had no set ID and that control was only 
found in a dll. So there was no markup to edit for the Button. Also updating the 
dll was not an option so I had to make the best of what I had to work with. &lt;/p&gt;
&lt;p&gt;In the cs file for the aspx file with the control on it I added the 
Page_LoadComplete. The problem button was within a GridView so I added a foreach 
to go through each GridViewRow and find the button I needed. Since I did not 
have an ID to work with besides a random 
ctl00$main$DllControl$gvStuff$ctl03$ctl05 using the GridView's FindControl was 
out. I ended up looping through each GridViewRow, then if a RowState equaled 
Edit loop through the Cells, each control in the Cell and check each control to 
see if it held a Panel that contained the button. If the control was a Panel I 
could then loop through the controls in the Panel, find the Button that had text 
of "Update" (that was the hard coded part) and change it using the method to 
return the proper value from the database.&lt;/p&gt;
&lt;p&gt;if (rowState.Contains("Edit"))&lt;br /&gt;{&lt;br /&gt;  foreach (DataControlFieldCell 
rowCell in gvr.Cells)&lt;br /&gt;  {&lt;br /&gt;   foreach (Control ctrl in 
rowCell.Controls)&lt;br /&gt;   {&lt;br /&gt;    if (ctrl.GetType() == typeof(Panel)) &lt;br /&gt;    
{&lt;br /&gt;     foreach (Control childCtrl in ctrl.Controls)&lt;br /&gt;     {&lt;br /&gt;      if 
(childCtrl.GetType() == typeof(Button))&lt;br /&gt;      {&lt;br /&gt;       Button update = 
(Button)childCtrl;&lt;br /&gt;       if (update.Text == "Update")&lt;br /&gt;       {&lt;br /&gt;        
update.Text = method to return the external value for the button's 
text;&lt;br /&gt;       }&lt;br /&gt;      }&lt;br /&gt;     }&lt;br /&gt;    }&lt;br /&gt;   }&lt;br /&gt;  }&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;&lt;p&gt;Tags: &lt;a href="http://technorati.com/tag/ASP.Net" rel="tag"&gt;ASP.Net&lt;/a&gt;, &lt;a href="http://technorati.com/tag/CSharp" rel="tag"&gt;CSharp&lt;/a&gt;&lt;/p&gt; &lt;img src="http://geekswithblogs.net/Bunch/aggbug/149132.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Bunch</dc:creator>
            <guid>http://geekswithblogs.net/Bunch/archive/2012/03/28/finding-buried-controls.aspx</guid>
            <pubDate>Wed, 28 Mar 2012 18:27:01 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/Bunch/comments/149132.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/Bunch/archive/2012/03/28/finding-buried-controls.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/Bunch/comments/commentRss/149132.aspx</wfw:commentRss>
        </item>
        <item>
            <title>RadGrid PagerStyle in Code Behind</title>
            <link>http://geekswithblogs.net/Bunch/archive/2012/03/06/radgrid-pagerstyle-in-code-behind.aspx</link>
            <description>&lt;p&gt;Originally posted on: &lt;a href='http://geekswithblogs.net/Bunch/archive/2012/03/06/radgrid-pagerstyle-in-code-behind.aspx'&gt;http://geekswithblogs.net/Bunch/archive/2012/03/06/radgrid-pagerstyle-in-code-behind.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Recently I ran into an issue where the paging text in a 
RadGrid control needed to be customizable. In my case I was specifically looking 
at the "Page size" and "xx items in yy pages" text. Getting around it for the 
"Page size" was a snap. If your RadGrid is called rgTest one line would do 
it:&lt;/p&gt;
&lt;p&gt;rgTest.PagerStyle.PageSizeLabelText = "your text 
here";&lt;/p&gt;
&lt;p&gt;The "xx items in yy pages" was a bit trickier, but still 
handled in one line of code.&lt;/p&gt;
&lt;p&gt;rgTest.PagerStyle.PagerTextFormat = "{4} {5} things in 
{1} my pages";&lt;/p&gt;
&lt;p&gt;The tricky part was determining which items to use, 
there are five in total ({1} through {5}). The {4} needs to be first otherwise 
the rest will not show up. A good guide (but not for my particular situation) is 
&lt;a href="http://www.telerik.com/help/aspnet-ajax/grid-using-pagertextformat.html"&gt;found here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;&lt;p&gt;
&lt;/p&gt;&lt;p&gt;Tags: &lt;a href="http://technorati.com/tag/ASP.Net" rel="tag"&gt;ASP.Net&lt;/a&gt;, &lt;a href="http://technorati.com/tag/CSharp" rel="tag"&gt;CSharp&lt;/a&gt;&lt;/p&gt; &lt;img src="http://geekswithblogs.net/Bunch/aggbug/148917.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Bunch</dc:creator>
            <guid>http://geekswithblogs.net/Bunch/archive/2012/03/06/radgrid-pagerstyle-in-code-behind.aspx</guid>
            <pubDate>Tue, 06 Mar 2012 20:56:43 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/Bunch/comments/148917.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/Bunch/archive/2012/03/06/radgrid-pagerstyle-in-code-behind.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/Bunch/comments/commentRss/148917.aspx</wfw:commentRss>
        </item>
    </channel>
</rss>