asp.net - Get DataTable from aspx using VB 2010 -


i creating vb 2010 desktop application. use lines below string response aspx page use collect online data application.

dim response byte() = mywebclient.uploadvalues(myweb & "/default.aspx", "post", nmv) dim str string = replace(system.text.encoding.ascii.getstring(response), "<(.|\n)*?>", "") system.text.encoding.ascii.getstring(response) 

'nmv' defined namevaluecollection variable

now need data aspx page either nmv or datatable. possible? how go doing it? thinking key in system.'array'... or can't figure out , don't search results on web.

getting data string array me, getting nmv better; getting datatable perfect! able deal aspx page giving data in format, need vb app know how collect it.

thank you

maybe easiest way use *.ashx http handler (generic handler) , save datatable xml, :

server:

  public class handler1 : ihttphandler   {     public void processrequest(httpcontext context)     {       /// if needed request data in context.request       datatable tbl = getdatatable();       /// table must have name, if not writexml fail       tbl.tablename = "tablename";       tbl.writexml(context.response.outputstream);     }      public bool isreusable     {             {         return false;       }     } 

then on client should use readxml datatable method populate datatable on client.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -