Welcome to AspAdvice Sign in | Join | Help

Browse by Tags

All Tags » .NET: C#   (RSS)

New Additions at By the Community, For the Community

If you have not seen the two new additions titled ITracker: Inventory Tracking System and Extended Club Site Starter Kit give them a look. Also seperate from By the Community, For the Community there is a new starter kit available titlted Small Business

Monitor a specified file location for changes

Assume for a moment that you need to monitor a specific folder and its subfolders for incoming files such as a FTP transfer and you wanted to accomplish such a task without an type of action from the system administrator. To accomplish this I will employ

How to use a MemoryStream to Perform Downloads and Bypass the File System and the Problems Between Browsers and Servers

I was recently was tasked to develop a solution to download data from an Oracle database and allow the client to save the data as an XML document without the use of the file system. I turned to the System.IO Namespace to accomplish this specifically using
Posted by sswafford | (Comments Off)
Filed under: , ,

Tired of creating your custom membership provider from the ground up?

Today Microsoft has released the source code for the built-in ASP.NET 2.0 Membership, Role Management, Site Navigation, Session State, Profile, Web Events, and Web Part Personalization providers. [ Download Here ] Check out Scott's blog which contains

How to edit an XML file that contains a namespace

I must admit using xpath to query and find a specific node in an XML file is not my strongest point and when a namespace was part of the XML file it threw me off even more. A huge thank you goes out to Adam Sills for pointing out my errors. Take the following
Posted by sswafford | (Comments Off)
Filed under: , ,

CodeSnip: Validate Image Size, Dimension, and Type Uploads

Do you allow your users to upload images? If so would you like to place some restrictions on the size, dimensions, and type of image that is acceptable? Accomplishing this is much easier than you may think. Let us say we have the following business rules
Posted by sswafford | (Comments Off)
Filed under: ,

Generate thumbnails via your images

Here is the code to stream the images to the client or save to a local file system. using System; using System.IO; namespace Swafford { /// <summary> /// Creates a thumbnail image from a file spec in the calling URL. /// </summary> public
Posted by sswafford | (Comments Off)
Filed under: ,

Dynamically building controls in .NET 1.1

Say you need to dynamically build a group of controls and render them in a web form. One method that has worked for my was to use a PlaceHolder and add the generated controls to the placeholder. For example: /// <summary> /// Generates the control.
Posted by sswafford | (Comments Off)
Filed under: ,

Don't forget to document your code

If you have not seen the article Code Documentation in .NET be sure to take the time to give it a once over and to assist in this process be sure to grab Roland Weigelts' GhostDoc . There are versions for both Visual Studio .NET 2003 and 2005 so you have

Congratulations on your MVP award nomination

I was extremely surprised to return home from work and check my email only to find that I have been nominated for the Microsoft MVP Award. I am honored just to have been nominated for such an award. I have been working as a web developer since 1995 and

Hot Off The Press!

Jump on over to MSDN for: SQL Server 2005 Developer Edition Visio for Enterprise Architects (vs2005) Visual SourceSafe 2005 Visual Studio 2005 Professional Edition Visual Studio 2005 Tools for the Microsoft Office System Share this post: email it! | bookmark

Populate Dropdown List Via Image Names On The Local File System

Just thought I would share this example since some asked on the ASP.NET DataGrid, DataList, Repeater listserv. .csharpcode { font-size: small; color: black; font-family: Courier New , Courier, Monospace; background-color: #ffffff; /*white-space: pre;*/
Posted by sswafford | (Comments Off)
Filed under: ,

Database Connection Errors with VB.NET and not C# code

Today while I was in the process of writing the code for an article I am about to release at ASPAlliance I ran into a problem that was driving me crazy. I spoke to other developers and some seemed to think it was a permissions issue but I said it could

New Article Titled Retrieving Database Schema Information Using The OleDbSchemaGuid Class

As well as querying and inserting data into a database, there also may be a need to retrieve information about the database schema. This article will discuss such a task by utilizing the System.Data.OleDb class and the OleDbSchemaGuid Class. [ Read More
Posted by sswafford | (Comments Off)
Filed under: ,

New Article Titled Understanding The Web Configuration File - Part 1

Many of the configuration settings for an ASP.NET application that you may be working on can be maintained in a distinct XML based text file named Web.config. If you are familiar with XML then you will discover that this file is easy to follow and understand.
More Posts Next page »