Archive for 'code'

Knee Deep in CVent API, Logging in

Image via CrunchBase I have to admit, I’ve never worked with an API before, ok I’ve pulled an image from flickr or the twitter feed on the side bar with API but someone else showed me how to do that. For work I had to write vb.net code to work with CVent’s API. So over [...]

IIS and redirecting a page with a Query String

Microsoft has added to the redirect function in IIS to allow for Query Strings. Example: In the Redirect to box, enter the domain you wish to move to (no trailing slash), plus $S$Q – for example, http://www.tek-works.com$S$Q What does this $S$Q do? These are tags that IIS will automatically replace – $S will be replaced [...]

What if SQL DataSource returns null or nothing

I had a SQLDataSource and wanted to show a message that nothing matches the search if the source didn’t return any rows of data. here’s how.. add to the sqldatasource and then in the code behind. Technorati Tags: code, Tech, VB.NET

Adding List All to a Drop Down List

I had a dropdownlist that listed all the states, when a state was chosen the SQLDataSource would return the data that matched the states column like this: Problem was when I added a -List All- choice to the dropdownlist, where I wanted to list all the data about all states. This was easily done with [...]

Add Item to DropDownList w/ DataSource

If you’re having problems adding an item to a dropdownlist because that ddl has a Datasource then this should work. You need to set AppendDataBoundItems=”true” to add items to a datasource bound DropDownlist. Technorati Tags: code, VB.NET

A Day of Array

I knew today’s online app would be a pain, because I more/less learned .net from playing around there are many things that I’ve skipped because I haven’t needed them. Array’s is one of those things, I know their a huge part of working with data but so far I’ve only had to read them, loop [...]

.Net Make CheckBox List act like RadioButtons

I had a site that I wanted to add a list of checkboxes but I wanted them to act like radiobuttons, which means I wanted the user to only be able to check one box and the others would clear out. thanks to Mudassar Khan at aspsnippets.com he shows how this can be done with [...]

ASP.NET MultiLine TextBox, Wrap Doesn’t Work

So a short post on something I came across today at work. The title of this post is ASP.NET MultiLine TextBox, Wrap Doesn’t Work because that’s what I searched for and it took me forever to find the answer. Everyone wants to tell me to add the property of multiline, well I had that.. What [...]

Old School ASP

Taking a break from my .net. A company that we worked with decided to give up an old ASP site that we had been using on their domains, problem is that some of it wasn’t working correctly, so it was up to me to fix it. I’ve never messed with ASP before but it’s pretty [...]

Keeping your code managed with an SVN

For those that don’t know what an SVN is, it’s a successor to a Concurrent Versions System (CVS), but what is that and how can it help me? What an SVN does When I would do just small changes to a site or a small piece of code, I would usually just make a copy [...]