Nannette Thacker ShiningStar.net
<a href="http://weblogs.asp.net/nannettethacker/pages/senior-web-application-developer-consultant.aspx">ASP.net Web Application Development</a>
-
Section 7: C# and VB Project: TableAdapter Select and Insert Queries with Parameters
In Section 7 of this tutorial by Nannette Thacker, we learn how to create a select query statement in our table adapter and pass parameters to it. We learn how to create an insert query, use a "SELECT SCOPE_IDENTITY()" to retrieve the identity key value returned, and set our ExecuteMode to "Scalar" in our properties sheet.
-
Section 6: C# and VB Project: Data Access Layer DataSet TableAdapters
In Section 6 of this tutorial by Nannette Thacker, we learn how to retrieve data from an uploaded spreadsheet, and import it into a SQL Server database. We will create a Data Access Layer DataSet and some TableAdapters. We will learn how to add a data connection to our web.config. We will learn how to create SQL Statements in our TableAdapters and use the Query Builder.
-
Section 5: Bind the Excel Data to a GridView using an OleDbDataAdapter
In Section 5 of this tutorial by Nannette Thacker, we will learn how to create a connection to our Excel Spreadsheet using an OleDbConnection with a Microsoft.Jet.OLEDB Connection String. We will learn how to create a SELECT query to retrieve data from a given Excel worksheet using an OleDbCommand. We will populate and bind our data to our GridView using an OleDbDataAdapter and DataSet.
We will also look at using Server.MapPath to find a physical directory on the server. -
Section 4: Auto Formatting a Web Form GridView
In Section 4 of this tutorial by Nannette Thacker, we will learn how to add and Auto Format a GridView in our WebForm. We will also learn how to create and add a Cascading Style Sheet to our project.
We will learn more about the Design view, and look at applying a scheme via the AutoFormat functionality of the GridView. -
Section 3: FileUpload Control and Functionality
In Section 3 of this tutorial by Nannette Thacker, we are going to look at the "FileUpload" control. We will discuss how to set a Label text value and set Panel visibility from Codebehind. We will also learn how to use the Handles key word at the end of our procedure declarations to handle our Button Click events. We will also view a snippet of code that uses error handling through Try/Catch/Finally.
-
Section 2: WebForm: Table, Label, and Panel Controls
In Section 2 of this tutorial by Nannette Thacker, we learn how to work with our WebForm and define the properties of an ASP.NET Table control to layout our buttons. We will learn how to add controls for Buttons, Panels and Labels.
We will learn a little bit about the Design mode, by creating our Tables using the Design mode. -
Section 1: Creating Our Project, Database and Tables
In Section 1 of this tutorial by Nannette Thacker, we learn how to create a project and our SQL Server Database Tables using Visual Web Developer or Visual Studio 2005 or 2008. We will look at the design of our Excel Spreadsheet and create a new database and tables for our imported data.
We learn how to use the Solution Explorer (Solution Explorer in VWD and Server Explorer in Visual Studio), and use the Database Explorer. We learn how to add a table, set a primary key, and use the Identity Specifications property when creating a table column. -
Guids – Unique or not?
A GUID, (which may be pronounced goo-id or gwid), is a globally unique identifier.
The guid is a sequence of hexademical digits and looks something like this:
4F3104E0-3F89-12D3-7A0C-0405A82D3402
I’ve heard developers say that it is unique world-wide, yep, globally. But is it? I decided to do some research and find out based on other’s experience.
Wikipedia says “While each generated GUID is not guaranteed to be unique, the total number of unique keys (2128 or 3.4×1038) is so large that the probability of the same number being generated twice is very small.”
Hmm. Okay. But how about real-world experience? I am still skeptical. I find this sentence about GUIDs in an article by Scott Mitchell. A reader of Scott’s, Rusty Alderson, shares:
"In creating very large databases, GUIDs (as generated by MS's NEWID() function) WILL have collisions, or duplicates. In a previous project where I was building a large Customer ODS (Operational Data Store), I typically found about 4 collisions per million rows. Code has to be developed to handle this. This was in SQL Server 2000. Perhaps SQL Server 2005 has remedied this."
So there you have it. GUIDs are not globally unique. So now that we are in SQL Server 2008, what’s the verdict? Anyone working with millions of rows having collisions? -
Stored Procedures: CommandType.StoredProcedure, Insert/Update/Rollback/Select.
Here is a great example of working with stored procedures in your asp.net code.
-
Product Review: TredoSoft Multiple IEs
By Nannette Thacker
When developing, client specifications often include a requirement to support not only the Internet Explorer 7 (IE7) browser, but also Internet Explorer 6 (IE6). If you have IE7 installed on your PC and you try to find a version of IE6 to install, good luck with a successfull installation. I don't know how they do it, but the folks over at http://tredosoft.com/Multiple_IE have created a great program called Multiple IE's that installs not only IE6, but also optionally IE5, IE4, and IE3.
This is donation-ware and I do highly encourage you to donate if you use this program, for after all, the "laborer is worthy of his hire."
Installation is quite simple. Download. Click the EXE. Select which IE versions you want to install. You're done. The icons are on your desktop ready to use.
Note, the installer does not work with Windows Vista. But this blog post explains how to make IE6 work in Vista.
May your dreams be in ASP.net!
Nannette Thacker