Saturday, March 26, 2011
If you have an event in your area, I suggest you attend and who knows what you might get out of it :)
Wednesday, March 23, 2011
I’ve recently needed to incorporate a RadGrid in which my edit template contained two RadComboBoxes. Depending on the value of my first combo box, the second would be updated with different sets of data. The problem I ran into was how to connect to this second combo box so I can bind it with data.
Here’s the basic premise:
Good luck :)
Wednesday, March 16, 2011
I recently had to develop a web application in which a page consisted of several user controls. One of the problems I encountered during the development of this page is that I needed User Control A to perform some bit of work, then pass of results and post them into User Control B.
I spent the better part of a day trying to find decent documentation on how to achieve this feat.
You would think you can simply do something like this from User Control A during a button click for example:
And as long as both controls are referenced on the page this works fine. Unfortunately this is not the case. This would be too easy. While this may work in some situations, it doesn’t seem to hold together well if master pages are used. And in my case nested master pages.
What to do… Well I continued researching and found several interesting articles about using delegates, event bubbling and all sorts of crazy things just to do one relatively simple task. Most of these articles (mostly blog entries) were so bad and hard to follow they aren’t worth reposting here.
In any event, I finally found a solution that worked for my needs. Instead of attempting something difficult and knowing .FindControl(..) wouldn’t work I found out about using .NamingContainer.
In my case my page consisted of a master page, a nested master page, an asp:Panel with an ID=”Data” on the page itself which housed my (destination)user control, and my user control in which I want to to modify data on, and finally the control itself living in that user control.
This code snippet is something I called during an InsertCommand event for a Telerik RadGrid control I happen to be using and takes the little info I want and adds it to a CheckBoxList control housed with my other user control.
I’m amazed that people actually find the time to blog. I set this blog site up 2 or 3 weeks ago, have plenty of code to blog about but have been busy coding at my day job (and sometimes night job) that I haven’t had much time at all to even think about this.
Anyhow, the topic is about Oracle & C#, not my daily work load. I wrote up this article several years ago, when I actually did have more time and it’s apparently still getting plenty of good use today.
You can view the article here at codeproject.com: Instant Oracle Using C#
I myself haven’t worked with Oracle databases for quite some time, but if you find you need to this article will help you get a project started.