Click here to Skip to main content
15,886,026 members
Home / Discussions / C#
   

C#

 
QuestionUpdate Table Pin
kibromg24-Jun-09 2:13
kibromg24-Jun-09 2:13 
AnswerRe: Update Table Pin
ScottM124-Jun-09 2:21
ScottM124-Jun-09 2:21 
GeneralRe: Update Table Pin
kibromg24-Jun-09 2:35
kibromg24-Jun-09 2:35 
AnswerYou can use an insert statement Pin
Ennis Ray Lynch, Jr.24-Jun-09 3:08
Ennis Ray Lynch, Jr.24-Jun-09 3:08 
GeneralRe: You can use an insert statement Pin
kibromg24-Jun-09 4:00
kibromg24-Jun-09 4:00 
GeneralRe: You can use an insert statement Pin
Ennis Ray Lynch, Jr.24-Jun-09 4:03
Ennis Ray Lynch, Jr.24-Jun-09 4:03 
GeneralRe: You can use an insert statement Pin
kibromg24-Jun-09 6:35
kibromg24-Jun-09 6:35 
AnswerRe: Update Table Pin
PIEBALDconsult24-Jun-09 7:09
mvePIEBALDconsult24-Jun-09 7:09 
Dunno, depends on how the information is presented on the page. One such page I scrape for data has the data I want in a table. The code I use to get the page is:

System.Net.HttpWebRequest req = (System.Net.HttpWebRequest) System.Net.HttpWebRequest.Create ( theurl ) ;
                
req.CachePolicy = new System.Net.Cache.RequestCachePolicy ( System.Net.Cache.RequestCacheLevel.NoCacheNoStore ) ;
 
using ( System.Net.HttpWebResponse rsp = (System.Net.HttpWebResponse) req.GetResponse() )
{
    string res = ( new System.IO.StreamReader ( rsp.GetResponseStream() ) ).ReadToEnd() ;
 
    // Then I use a Regular Expression to extract what I want
    // and insert it to the database.
}


I make no claims that this technique is "good", only that it does what I want for a rather unimportant Windows Service.
GeneralRe: Update Table Pin
kibromg24-Jun-09 11:21
kibromg24-Jun-09 11:21 
GeneralRe: Update Table Pin
PIEBALDconsult24-Jun-09 13:45
mvePIEBALDconsult24-Jun-09 13:45 
GeneralRe: Update Table Pin
kibromg24-Jun-09 23:19
kibromg24-Jun-09 23:19 
QuestionI Want Get Thread Object Pin
Dong Cher, Ryu24-Jun-09 1:42
Dong Cher, Ryu24-Jun-09 1:42 
AnswerRe: I Want Get Thread Object Pin
stancrm24-Jun-09 1:56
stancrm24-Jun-09 1:56 
QuestionAdding dates Pin
kanchoette24-Jun-09 1:05
kanchoette24-Jun-09 1:05 
AnswerRe: Adding dates Pin
SeMartens24-Jun-09 1:07
SeMartens24-Jun-09 1:07 
GeneralRe: Adding dates Pin
kanchoette24-Jun-09 1:10
kanchoette24-Jun-09 1:10 
AnswerRe: Adding dates Pin
Pete O'Hanlon24-Jun-09 1:09
mvePete O'Hanlon24-Jun-09 1:09 
AnswerRe: Adding dates Pin
DaveyM6924-Jun-09 1:09
professionalDaveyM6924-Jun-09 1:09 
QuestionHow to get or set the innerText of an HTMLElement at runtime using c# Pin
svt gdwl24-Jun-09 0:57
svt gdwl24-Jun-09 0:57 
QuestionFind the not-existing element in int arrays. Pin
CodingLover24-Jun-09 0:52
CodingLover24-Jun-09 0:52 
AnswerRe: Find the not-existing element in int arrays. Pin
Calla24-Jun-09 1:00
Calla24-Jun-09 1:00 
NewsRe: Find the not-existing element in int arrays. Pin
CodingLover24-Jun-09 3:28
CodingLover24-Jun-09 3:28 
AnswerRe: Find the not-existing element in int arrays. Pin
Dust Signs24-Jun-09 1:01
Dust Signs24-Jun-09 1:01 
GeneralRe: Find the not-existing element in int arrays. Pin
himanshu256124-Jun-09 1:12
himanshu256124-Jun-09 1:12 
GeneralRe: Find the not-existing element in int arrays. Pin
CodingLover28-Jun-09 20:44
CodingLover28-Jun-09 20:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.