Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
dsEmptyDatasetSP.Tables.Add(makeTable1)
dsEmptyDatasetSP.Tables.Add(makeTable)
dtOriginalDataTable = dsEmptyDatasetSP.Tables(0).Copy ‘copy into other table
dsEmptyDatasetSP.Tables(0).Merge(dsEmptyDatasetSP.Tables(1).Copy, True)‘copying one datatable into some specific index table with dataset
End Sub
Dim dsEmptyDatasetSP As New DataSet
Dim dtOriginalDataTable As DataTable
Private Function makeTable() As DataTable
Dim result As New DataTable
For i As Integer = 0 To 1
Dim dc As New DataColumn
dc.ColumnName =“Col”& [...]
February 10, 2009
Categories: .NET Component, .net 1.0, Net 2.0 . . Author: bimal4u . Comments: Leave a Comment
Value Types:
For value types, “==” and Equals() works same way : Compare two objects by VALUE
Example:
int i = 5;
int k= 5;
i == k > True
i.Equals(k) > True
Reference Types:
For reference types, both works differently :
“==” compares reference – you can say identity of objects and returns true if and only if both references point to the [...]
March 29, 2007
Categories: .net 1.0 . . Author: bimal4u . Comments: Leave a Comment
- Yes. They will run side-by-side with no adverse affects to the ASP pages at all.
- You can easily use ASP and ASP.NET code running in parallel on the same web site.
- ASP.NET files use a .aspx extension while classic ASP uses a .asp extension, allowing classic ASP and ASP.NET code to run happily on [...]
March 29, 2007
Categories: .net 1.0 . . Author: bimal4u . Comments: Leave a Comment