Protected Member Functions | |
| void | Page_Load (object sender, EventArgs e) |
| void | Button1_Click (object sender, EventArgs e) |
Private Member Functions | |
| void | InitializeDataSetDdl () |
| Initialize the drop down list on UserDefine_2.aspx with name of data table in DB. | |
| void | InitializeData (string strSchemaID) |
| Read data schema from DB, according the ID of schema user selected in the previous page. | |
| DataTable | GetDataSet (string strDataTableName) |
| Read data from DB according to the user's selection on data table in the drop down list. | |
| DataTable | ReadFile2Table (string[] strFileContent, DataTable dtData) |
| Read data from the user text file and also do the bulk upload if necessary. | |
| bool | blnBulk2DB (DataTable dtSource, string strTblName) |
| Bulk add data using SqlBulkCopy in .NET 2.0. | |
<author>Jarod Wen</author> <Date>20:18pm, Nov 26th, 2006</Date>
| void UserDefine_2.Page_Load | ( | object | sender, | |
| EventArgs | e | |||
| ) | [protected] |
| void UserDefine_2.InitializeDataSetDdl | ( | ) | [private] |
Initialize the drop down list on UserDefine_2.aspx with name of data table in DB.
| void UserDefine_2.InitializeData | ( | string | strSchemaID | ) | [private] |
Read data schema from DB, according the ID of schema user selected in the previous page.
| strSchemaID | Schema ID |
| void UserDefine_2.Button1_Click | ( | object | sender, | |
| EventArgs | e | |||
| ) | [protected] |
| DataTable UserDefine_2.GetDataSet | ( | string | strDataTableName | ) | [private] |
Read data from DB according to the user's selection on data table in the drop down list.
| strDataTableName |
| DataTable UserDefine_2.ReadFile2Table | ( | string[] | strFileContent, | |
| DataTable | dtData | |||
| ) | [private] |
Read data from the user text file and also do the bulk upload if necessary.
| strFileContent | Contents of the file user uploaded | |
| dtData | The structure of the table for storing |
| bool UserDefine_2.blnBulk2DB | ( | DataTable | dtSource, | |
| string | strTblName | |||
| ) | [private] |
Bulk add data using SqlBulkCopy in .NET 2.0.
| dtSource | Data Table containing data which will be added into database | |
| strTblName | The name of table user want to store as. |
1.5.1-p1