- 1). Click the Windows "Start" button and select "All Programs." Click "Microsoft .NET Framework," then click "Visual Studio" to open your programming interface.
- 2). Click the "File" menu item. Click "Open" from the drop-down menu options. Double-click your project file to open the code in Visual Studio.
- 3). Create the variable that holds the DataSet values. In this example, the first value in the DataSet is saved to a variable. To create a variable for your DataSet, type the following code:
Dim data As String - 4). Assign the DataSet value to the variable. Type the following code after the variable declaration in Step 3:
data = dataset.Fields(0).Item
This code assigns the first item in the DataSet named "dataset" to the variable named "data." - 5). Display the information to the user by using the "Response.Write" function. The following code shows the result of the DataSet code:
Response.Write(data)
SHARE