select from DataTable
-
Hi all, I create a DataTable as follows:
objUrlTable = New System.Data.DataTable("urlGrid") 'add column Url to urlGrid objUrlTable.Columns.Add("Url", GetType(String)) 'put datatable into Session Session("urlGrid") = objUrlTable
Then I add a row dynamicallyobjUrlRow = objUrlTable.NewRow objUrlRow("Url") = UploadFile() objUrlTable.Rows.Add(objUrlRow) 'add image-url 'put datatable in Session Session("urlGrid") = objUrlTable
Suppose that after adding a few lines, I want to select the second "url" from the table and put it into a String. How can I do this? Hope anyone can help me out! Thank you already respect 2B respected -
Hi all, I create a DataTable as follows:
objUrlTable = New System.Data.DataTable("urlGrid") 'add column Url to urlGrid objUrlTable.Columns.Add("Url", GetType(String)) 'put datatable into Session Session("urlGrid") = objUrlTable
Then I add a row dynamicallyobjUrlRow = objUrlTable.NewRow objUrlRow("Url") = UploadFile() objUrlTable.Rows.Add(objUrlRow) 'add image-url 'put datatable in Session Session("urlGrid") = objUrlTable
Suppose that after adding a few lines, I want to select the second "url" from the table and put it into a String. How can I do this? Hope anyone can help me out! Thank you already respect 2B respectedHi, Can you try using the following code. objUrlTable.rows[i].Item["Url"] = "sbd"; Thanks and Regards SGS