Hi Mike,
Kevin was wrong ... I was busy going out for a run and eating lunch and didn't even see your post, so I wasn't in the process of replying with exactly the same advice (to use XML) ... but NOW I will. <g>
You definitely should consider using XML and there's no reason you can't, given your current method. Just alter it slightly, something like this:
Public Function GetUserByUserName(ByVal userName As String) As String
Dim userAdapter As New UserDatasetTableAdapters.UserTableAdapter
Dim users As New UserDataset
users.UserDataTable = userAdapter.GetDataByUserName(userName)
Return users.GetXml()
End Function
~~Bonnie
>Well, I was thinking that too, but the problem is with the typed dataset I am filling a datatable, not a dataset. Should I just create a temp dataset in code and add my datatable to it? Doesn't doing it that was defeat the purpose of a typed dataset?
>
>Edit: BTW, thanks for the help.