I am developing an information system that store community members details in it's municipal area. it's client server system. these data are just about members information such as name,dob,sex,no of members in the family, education level, how long living in this area...etc.same data set about members are being entered to different website everyday(this is maintaining by another authority). i dont want my client to enter same data twice. what method i can use to save web form data to disk file(directly to sql server so that local system can fetch data rather retyping).
language :c#
sql server
EF 4.0
Loading
Bin SalachevskyPosted Jun 10, 2014, 8:36 AM
I got the logic. this is the way i can handle this?. am start to code. i'l msg you if i stuck.
cheers:)
Anupam SinghPosted Jun 10, 2014, 8:16 AM
like
other dom elements and contents..
So you have to play with string here. try using substring,split to retrieve specific element value.
good luck. :)
Bin SalachevskyPosted Jun 10, 2014, 8:03 AM
string webData = System.Text.Encoding.UTF8.GetString(raw);
this line encode full we page content or can i pass them to array of string?. how to break them into individual text fields so that i can save to excel file?.
many thanks again
cheers!!
Anupam SinghPosted Jun 10, 2014, 7:51 AM
You can write this string to html file using:
you just need to append this code with above.
Bin SalachevskyPosted Jun 10, 2014, 7:24 AM
your method, isn't it save entire webpage as a html file which can be opened via browser rather save individual text elements.
Bin
Anupam SinghPosted Jun 10, 2014, 12:48 AM
In ASP.NET there is WebClient class you can use for this.
using WebClient
string webData = System.Text.Encoding.UTF8.GetString(raw);
Hope it will help.