LoadDataRow!

altaibskt

New Member
Has anybody successfully used this?<BR><BR>According to MSDN, it's supposed to search the primary key of a datatable and update any records it finds with values from an array. If it doesn't find any matching values it's supposed to create a new row and insert it into the datatable, but just like my last post (see relational dataTables) it's not giving me an error, it's just doing NOTHING. I've gotten absolutely nowhere with this stuff in the last 10 hours of work and it's driving me insane. I've got two .net books and have read everything on all the sites I can find and none of them give me anything useful regarding loadDataRow.<BR><BR>Running out of places to turn *sigh*<BR><BR>Here's a code snippet, probably around the 500th iteration of it:<BR><BR>protected function loadLinks(pageID AS integer)<BR> dim pageSet AS dataSet = Session("sitePages" & session.Sessionid)<BR> dim linkTable AS dataTable = pageSet.Tables("linkTable")<BR> dim myRow AS dataRow<BR> <BR> dim updArray(2) AS object<BR> updArray(0) = lstPageNames.SelectedItem.Value<BR> updArray(1) = lstTemplates.SelectedItem.Value<BR> updArray(2) = curSlotID.Value<BR><BR> linkTable.BeginLoadData()<BR> myRow = linkTable.LoadDataRow(updArray, True)<BR> linkTable.EndLoadData()<BR><BR> Session("sitePages" & session.Sessionid) = pageSet<BR>end function<BR><BR>Thanks,<BR><BR>])ry<BR><BR>
 
Back
Top