Imports System.Data.SqlClient Public Class dt Inherits System.Web.UI.Page Dim ds As New dsAster Dim dtable As DataTable Dim r As DataRow Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load End Sub Protected Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click dtable = ds.Tables("dt1") r = dtable.NewRow r("col1") = Me.TextBox1.Text r("col2") = "string=" + Me.TextBox2.Text.ToString dtable.Rows.Add(r) Me.DataList1.DataSource = dtable Me.DataList1.DataBind()
DataTable
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)