With ASP.NET WebForms, How to Keep / Stop a Data Control Like GridView From Retrieving Data

The What and Where Something that may not be obvious is if are creating an asp.net WebForms project and you put a datasource such as SqlDataSource or ObjectDataSource for example on the page, how can you prevent the SqlSelect associated with that datasource from being triggered. The answer is to set the control’s visible property to false.  That’s it! … Continue Reading

Adding a List of Recent Posts To The Silicon Valley Code Camp Home Page (From RSS Feed)

There are 10,000 ways to do this.  Back way back when (ASP.NET 1.1) days, we would have created either a custom control to do this, then added a Repeater control on the page to display it.  Well, the Silicon Valley Code Camp Website was started back in those days and since what I want is so simple, I decided to do just that (minus the custom control).  I really only wanted to spend about 10 minutes doing this, and as it turned out, it took about 30.  Oh well, 3x plan verses execution.  Could do better next time. So, here is basically what I want on the left side bar of the home page of Silicon Valley Code Camp: … Continue Reading

ExtJS Meetup Tonight in San Francisco, Sample URLs of Running Code Here


At tonight's meet up, we will be having several short presentations on the new features in ExtJS version 3.0.  For my short presentation, I will be showing how to build a simple asp.net application that lets you Create, Update, Delete and Edit Membership data using the ASP.NET built in membership providers.  I will be leverage code from an MSDN article I wrote a while back here along with the URL to the meetup location. http://www.meetup.com/The-San-Francisco-ExtJS-Meetup-Group/calendar/10302891/ http://msdn.microsoft.com/en-us/library/aa478947.aspx My plan is to do a progression where I start with a trivial GridPanel, then work myself in 5 steps to a full working membership editor that looks like this: … Continue Reading

How to Retrieve a GridView Based on a CheckBoxList of Items with Asp.Net using ObjectDataSource with a little LINQ Thrown In


So, the problem is you have a list that you want to retrieve from that contains multiple values.  Say for example, you have a list of 5 cities and you want to retrieve a list of people in some combination of those cities.  If you use the class SelectValue method with GridView you run out of steam because it's only one value.  What you'd really like to do is pass the CheckBoxList into the GridView as a selection parameter, but unfortunately, when you do that, you just get the one selected value from the CheckBoxList, not all the values. I'm sure you can make a custom ControlParameter in ObjectDataSource to solve this, but I really don't have time for that.  I just wanted something quick (which I now have and thought I'd … Continue Reading


Get every new post delivered to your Inbox

Join other followers: