VB.NET
ASP.NET Application Folders
by Heidi Bautista - 25-Aug-06
Reader Level:
If you've worked with ASP.NET version 2.0 sites, you've probably seen folders like App_Themes and App_Data. But what are they and how are they used? Read on to find out.
File Uploading in ASP.NET - Part 3
by Heidi Bautista - 12-Jul-06
Reader Level:
The File Uploading in ASP.NET series has covered the following aspects so far:
- Part 1 - upload three files at the same time and allow the user to change the filename before the upload occurs.
- Part 2 - upload a single file and then insert the name of the uploaded file into the database.
In Part 3 we'll upload a single file again but this time we'll automatically rename the file after uploading it. We'll use the Stored Procedure server behavior rather than the Insert Record server behavior (used in Part 2) so that we can insert the row and change the filename in a single round trip to the database.
Along the way you'll get a chance to use the File and Path classes, both from the System.IO namespace and you'll see another example of controlling the execute of the MM:DataSet using its Expression attribute.
The File Uploading in ASP.NET Series:
File Uploading in ASP.NET - Part 1
File Uploading in ASP.NET - Part 2
File Uploading in ASP.NET - Part 3
File Uploading in ASP.NET - Part 2
by Heidi Bautista - 16-Jun-06
Reader Level:
In this tutorial, we'll extend the file uploading paradigm to include simultaneously updating the database to record the name of the uploaded file. Of course, it only makes sense to update the database if the file upload was successful. So we'll first upload the file and then update the database, if appropriate, using the Insert Record server behavior.
Code is presented in C# and VB.
The File Uploading with .NET Series:
File Uploading with ASP.NET
File Uploading in ASP.NET - Part 2
File Uploading with ASP.NET - Part 3
Converting from C# to VB
by Heidi Bautista - 05-Jun-06
Reader Level:
Face it. All programmers have a favorite language. And, we're usually pretty vehement about why it's the best choice, too! But it can be a real problem when you're searching for examples and all you find is code written in the other language! This article introduces you to a free online (and downloadable) tool that does a pretty good job of converting C# code into VB. The article also includes general and DW-specific tips to keep in mind when converting code by hand.
Searching for Data Using Wildcards in a Stored Procedure
by Heidi Bautista - 09-Nov-05
Reader Level:
This tutorial demonstrates how to create an ASP.NET page that searches for data in specific columns of a table. The technique described has the added advantage that the user can enter just a fragment corresponding to the data that resides in the table. You'll learn how to use the LIKE keyword and % wildcard in a stored procedure. And you'll see how the use of three Dreamweaver server behaviors nearly eliminates the need for you to write any code yourself!
Using the MM:If Custom Control on ASP.NET pages
by Heidi Bautista - 20-Oct-05
Reader Level:
The <MM:If> custom control included in DreamweaverCtrls.dll is handy when you need a quick and dirty way to show/hide a section of your page. It has limitations, which we'll get into, but on the positive side, it's very easy to use. This article discusses how to use the <MM:If> control, where it works well and where it fails, and how the <asp:Panel> control can be used when the <MM:If> is unsuitable.
Uploading Files with ASP.NET
by Heidi Bautista - 24-Aug-05
Reader Level:
In this article you'll learn how to upload files to your web server using ASP.NET. Back in the old classic ASP days, this was a fairly difficult job. Not anymore!
Read on to learn how to upload one or multiple files, all files types or just certain kinds (based on the MIME type), and how to save the file using the original name or a user-specified name.
The code is presented in C# and VB.
The File Uploading with .NET Series:
File Uploading with ASP.NET
File Uploading in ASP.NET - Part 2
File Uploading with ASP.NET - Part 3
Sending Email From Your ASP.NET Application - Part 4
by Heidi Bautista - 28-Jun-05
Reader Level:
In this installment of the ASP.NET email series, you'll learn how to send messages that include text and/or binary attachments.
The Sending Email From Your ASP.NET Application Series
Part 1
Part 2
Part 3
Part 4
Using the ASP.NET Insert Record Server Behavior - Part 2
by Heidi Bautista - 10-Jun-05
Reader Level:
This article picks up where Part 1 left off. You'll get a better understanding of how to use the Insert Record server behavior with datatypes other than just strings and you'll learn how to add the necessary modifications to the MM:Insert tag so that it handles the ASP.NET validators that have been added to the form. The sample pages are provided in C# and VB.NET.
Using the ASP.NET Insert Record Server Behavior - Part 1
by Heidi Bautista - 31-May-05
Reader Level:
This article shows you how to use the Insert Record server behavior to take data collected with a form and insert it into a table in a SQL Server database. It's fast and easy. You're likely to spend more time styling the form than doing the coding!
ASP.NET Snippet - ShortenString
by Heidi Bautista - 13-May-05
Reader Level:
Snippets on ASP.NET pages are great time-savers. This tutorial uses a snippet called ShortenString. The snippet contains a function wrapped in a server-side script block. ShortenString takes a long string and shortens it to a practical length. The tutorial includes the snippet (in C# and VB.NET) plus sample pages that use the snippet in an editable DataGrid. Rather than displaying a long cumbersome text block, the DataGrid shows abbreviated versions of the strings. Thus, the DataGrid takes up less space on the page and is easier to read. In edit mode, the DataGrid shows the complete, unabbreviated string in a multi-line textbox.
Formatting Dates, Numeric Values, and Text on Your ASP.NET Pages - Part 2
by Heidi Bautista - 08-Apr-05
Reader Level:
Formatting strings in ASP.NET - without help from Dreamweaver. DW offers several built-in formatting options for many common formatting patterns for dates, numbers, and text, but sometimes you need uncommon formatting. That's when it's convenient to know how to apply your own standard and custom formats. In the second half of this two-part series, you'll learn how to create custom formatting for numbers and date/time values.
Formatting Dates, Numeric Values, and Text on Your ASP.NET Pages - Part 1
by Heidi Bautista - 30-Mar-05
Reader Level:
Formatting values on your ASP.NET pages is easier than you might think. Dreamweaver offers built-in formatting options for many common formatting patterns for dates, numbers, and text. But sometimes you need uncommon formatting or maybe it's just plain easier to bypass DW and do it yourself in code view.
Learn when and how to use DW's built-in formatting options in Part 1. Part 2 will explore customizing your own date/time, number, and text formats.
Sending Email From Your ASP.NET Application - Part 2
by Heidi Bautista - 07-Mar-05
Reader Level:
In this installment of the ASP.NET email series, you'll learn how to address your messages using friendly names in addition to the email addresses, use the MailMessage.UrlContentBase property to easily include images and links with relative paths, and send to a mailing list retrieved using a MM:DataSet tag.
Sample code in C# and VB.
The Sending Email From Your ASP.NET Application Series:
Part 1
Part 2
Part 3
Part 4
Sending Email From Your ASP.NET Application - Part 1
by Heidi Bautista - 24-Feb-05
Reader Level:
This is one of the most common tasks for an ASP.NET developer. Fortunately, it's quick and easy. In this series of tutorials, we'll walk through the process of creating and sending email messages for a variety of scenarios.
Part 1 introduces you to the two ASP.NET classes used (MailMessage and SmtpMail) and demonstrates how to
create a simple feedback form for your site. Later on we'll
explore how to create nice-looking HTML messages that include images, links, and attachments. Sample code
written in both C# and VB is included.
The Sending Email From Your ASP.NET Application Series:
Part 1
Part 2
Part 3
Part 4
Using DropdownLists, CheckBoxes, and TextBoxes in an Editable ASP.NET DataGrid
by Heidi Bautista - 09-Feb-05
Reader Level:
Learn how to easily add data-bound dropdown lists, checkboxes, and single and multi-line textboxes to your editable DataGrids. If you stick with these three types of controls you can still leverage Dreamweaver's built-in functionality provided by DreamweaverCtrls.dll to handle updating and deleting from your database. It's easier than you might think. Read on to learn this "trick of the trade."
Fundamentally VB.NET: Part 5 - Conditional Branching
by Val Tobin - 28-Sep-04
Reader Level:
In Part 1 of this series, you were introduced to VB.NET built-in data types. In Part 2, you learned how to create variables for these data types. Part 3 in this series on VB.NET taught you about Enumerated Constants, what they are and how to use them. Part 4 discussed the operators at your disposal. This article, Part 5 in the series, will cover Conditional Branching using If...Else and Select Case.
Fundamentally VB.NET - Part 4: VB.NET Operators
by Val Tobin - 15-Sep-04
Reader Level:
In Part 1 of this series, you were introduced to VB.NET built-in data types. In Part 2, you learned how to create variables for these data types. Part 3 in this series on VB.NET taught you about Enumerated constants, what they are and how to use them. Now, in Part 4, you will learn about the various types of operators VB.NET provides for your use. This series is meant to be a growing reference guide to VB.NET.
Fundamentally VB.NET - Part 3: VB.NET Enumerations
by Val Tobin - 02-Sep-04
Reader Level:
An alternative to regular constants, enumerations allow you to declare a list of constants. This article explains how to create and use them in VB.NET and explains why they are so useful. This is Part 3 in a series of articles on the mechanics of using VB.NET. Part 1 of this series introduced VB .NET built-in data types. Part 2 discussed how to create variables for these data types. This series is meant to be a growing reference guide to VB.NET.
Fundamentally VB.NET - Part 2: VB.NET Variables and Constants
by Val Tobin - 20-Aug-04
Reader Level:
In Part
1 of this series, you were introduced to VB.NET
built-in data types. In this article, you'll learn
how to create variables for these data types.
You'll learn the syntax for declaring variables and
assigning
values to them. The entire series of articles will
take you through the VB.NET mechanics that you'll
need
in order to use it.
Once you've learned all the key concepts, we'll go
through tutorials that put all that learning to work.
Fundamentally VB.NET: Part I - VB .NET Built-in Data Types
by Val Tobin - 04-Aug-04
Reader Level:
Are you a Java developer wishing to expand your repertoire of skills to include VB .NET? It's easier than you might think. You have an understanding of the programming principles involved; you already know what try-catch-finally means, and garbage collection, and Object Oriented Programming. You only need to learn the syntax and a few incidentals, and you're there. This is the first in a series of articles that covers the fundamentals of VB .NET syntax. This theory will then be followed by a tutorial series that puts all your learning to practical use.
ASP.NET Session State and the web.config - Part 2
by Heidi Bautista - 03-Jun-04
Reader Level:
ASP.NET session state made simple. In this 2-part article you'll learn how to set and use session variables; why session state management in ASP.NET is superior to classic ASP; and what to do with your web.config file to make it all work.
Part 2 covers how to enable StateServer and SQLServer session state storage and the pros and cons of all three types of session state management.
ASP.NET Session State and the web.config - Part 1
by Heidi Bautista - 21-May-04
Reader Level:
ASP.NET session state made simple. In this 2-part article you'll learn how to set and use session variables; why session state management in ASP.NET is superior to classic ASP; and what to do with your web.config file to make it all work.
Part 1 covers the basics of session state managment and the web.config.
Creating a Simple Horizontal Looper in ASP.NET
by Tom Muck - 13-May-04
Reader Level:
There is no horizontal looper extension for Dreamweaver in ASP.NET, but there is no need for the extension because looping is built into the DataList Application object. This tutorial will show you how to create a simple Horizontal Looper using the DataList, including recordset navigation for the loop.
VB's IIf Function vs C#'s Ternary Operator
by Heidi Bautista - 23-Feb-04
Reader Level:
What's better? C# or VB? It depends on a lot of factors. You can nearly always accomplish your objectives in either language but sometimes one is better suited than the other. Read on to learn about the similarities and differences between VB's IIf function and C#'s ternary operator.
Customized ASP.NET DataGrid: Making One Column Dependent Upon Another
by Heidi Bautista - 10-Feb-04
Reader Level:
Learn how to use Dreamweaver to customize the display and functionality of your DataGrid. Along the way you'll learn about these other useful techniques:using the DataSet tag's Expression attribute to control when it gets executed; using a Free form column in a DataGrid; using a ternary expression (C#) / IIf function (VB) to control logic flow; using the MM:If server behavior to control what gets displayed.
Automatic Thumbnail Generation with ASP.NET
by Heidi Bautista - 29-Jan-04
Reader Level:
Thumbnail generation is something all of us have to do at some time or another, so why not make it as simple and automated as possible? This ASP.NET tutorial shows you how to automatically generate and display thumbnail images.



