Exploring the depths and potentials of ASP.NET RSS 2.0 or Subscribe to .BenRush by Email
 Thursday, March 09, 2006

....then don't hard-code your connection strings into the data source control. For example, rather than writing:

    <asp:SqlDataSource ID="SqlDataSource_Checkbox" runat="server" SelectCommand="select friendly_rolename from roles"
        ConnectionString="Data Source=blah;Persist Security Info=True;User ID=blah;Password=blahblah" ProviderName="Oracle.Data.DataClient">
    </asp:SqlDataSource>

...place everything in a web.config file and do this instead:

    <asp:SqlDataSource ID="SqlDataSource_Checkbox" runat="server" SelectCommand="select friendly_rolename from roles"
        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>">
    </asp:SqlDataSource>

If I see another instance of someone thinking "no code" means "no brains" and copy a damn connection string to forty places in the declarative statements, I'm going to scream....


kick it on DotNetKicks.com
Thursday, March 09, 2006 11:55:38 AM (Central Standard Time, UTC-06:00)  #    Comments [0] - Trackback
Computing

....someone created an interesting post reflecting on his experience with Expression. Read it here.


kick it on DotNetKicks.com
Thursday, March 09, 2006 1:45:42 AM (Central Standard Time, UTC-06:00)  #    Comments [0] - Trackback
Computing

.....check this out if you're interested in Gadgets.


kick it on DotNetKicks.com
Thursday, March 09, 2006 1:40:16 AM (Central Standard Time, UTC-06:00)  #    Comments [0] - Trackback
Computing

Excuse me 'mam, would you mind helping me with my furry lobster?


kick it on DotNetKicks.com
Thursday, March 09, 2006 12:57:39 AM (Central Standard Time, UTC-06:00)  #    Comments [0] - Trackback

 Wednesday, March 08, 2006

...sometimes I hear people talk about not writing any code to get something accomplished, particular in respect to binding a control to a datasource. They say something like, "...and it took no code to write". For the longest time I was very leery of this particular statement because, often, code is still required. The idea of simply dragging and dropping something and simply expecting it to work seemed bad to me. But, I'm starting to see things a bit differently (but not as I thought I would have had to in order to completely agree with these people).

...first, let's re- (or more clearly) phrase "...and it took no code to write" to "....and it took me, personally, no code to write", and even more precisely "...and it took me,personally, less code to write". There will always be code whenever there is a need to specialize something; and regardless - somebody, SOMEWHERE had to write code (which, again, means bugs). The benefit, however, is that it was written and tested many, many times over - your code, however, rarely is.

The reason why you can never say NO code is because, even when you're jumping through a wizard, you still are required to insert SQL statements, or piece together various statement fragments that eventually combine to offer the solution. This, in a sense, is still code - just declarative and not VB.Net or C# or whatever. It lacks algorithmic fortitude, I guess - but there is still CODE.

Anyway, I'm sure you've read through it before, but check out this article by Dino. Try doing some of this stuff and see how it doesen't prevent code, but simply forces you to think more about the code that you do, eventually, write.


kick it on DotNetKicks.com
Wednesday, March 08, 2006 5:01:51 PM (Central Standard Time, UTC-06:00)  #    Comments [0] - Trackback
Computing

    ....I have a thing for the Simpson's. Check out this page of Homer quotes. Serious blast from the past.


kick it on DotNetKicks.com
Wednesday, March 08, 2006 12:31:09 PM (Central Standard Time, UTC-06:00)  #    Comments [0] - Trackback
Personal Adventures

    CLR Via C#.


kick it on DotNetKicks.com
Wednesday, March 08, 2006 12:41:30 AM (Central Standard Time, UTC-06:00)  #    Comments [0] - Trackback


    ....okay, I'm not sure what was leaking on this damn thing now. I pulled the entire pump assembly apart now, and have all the pieces strewn apart and inspected all the seals I could find - only one looks as though it is cracked and might otherwise cause problems - so I'll have to check to see if I can get a replacement (if you look on the previous blog post at the picture there, you'll see a large rubber ring on the left hand portion of the picture - that's the seal). If that's the problem - then I'm done, if not, then I have no freakin' clue what's going wrong. The seal is large and goes around the entire pump base, preventing water from seaping out between it and the cover (both of which combine to produce the large plastic case the entire pump assembly sits within). The bad part is that I don't recall water leaking from that particular part of the device - so unless it was trickling down the side unnoticed, I'm still screwed (I seem to remember the leak occuring near the base).

    In either case, I took some interesting pictures of the inside of this thing. Two things really struck me as interesting - first was the size of the electromagnetic motor; all of the wiring impressed me:



....and finally I was really struck with the reality that the dishwasher is also a mini garbage disposal. This makes sense as pieces of food and debri fall into the thing, but for some reason I was interested that there was something called a "chopper" inside it:



....hopefully I'll have the replacement part by tomorrow and can find time to put it all back together again......


kick it on DotNetKicks.com
Wednesday, March 08, 2006 12:28:14 AM (Central Standard Time, UTC-06:00)  #    Comments [0] - Trackback
Personal Adventures

Computers Blogs - Blog Top Sites

Archive
<March 2006>
SunMonTueWedThuFriSat
2627281234
567891011
12131415161718
19202122232425
2627282930311
2345678
Blogroll
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2009
Benjamin Rush
Sign In
Statistics
Total Posts: 444
This Year: 0
This Month: 0
This Week: 0
Comments: 128
Themes
Pick a theme:
All Content © 2009, Benjamin Rush
DasBlog theme 'Business' created by Christoph De Baene (delarou)