Click here to Skip to main content
15,887,135 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Updating Control outside Update pannel Pin
Nishant Singh25-Nov-09 19:41
Nishant Singh25-Nov-09 19:41 
QuestionSetting active link bold in html Pin
shankbond25-Nov-09 2:34
shankbond25-Nov-09 2:34 
AnswerRe: Setting active link bold in html Pin
Abhishek Sur25-Nov-09 3:44
professionalAbhishek Sur25-Nov-09 3:44 
GeneralRe: Setting active link bold in html Pin
shankbond25-Nov-09 4:27
shankbond25-Nov-09 4:27 
GeneralRe: Setting active link bold in html Pin
Abhishek Sur25-Nov-09 10:25
professionalAbhishek Sur25-Nov-09 10:25 
QuestionQuestion about converting CSV stream to XML Format Pin
James Shao25-Nov-09 2:33
James Shao25-Nov-09 2:33 
AnswerRe: Question about converting CSV stream to XML Format Pin
Abhishek Sur25-Nov-09 3:47
professionalAbhishek Sur25-Nov-09 3:47 
GeneralRe: Question about converting CSV stream to XML Format Pin
James Shao25-Nov-09 5:14
James Shao25-Nov-09 5:14 
Thank you so much Abhishek for your help. Smile | :) I actually have thought about using for-next loops before, but when seeing the example posted on MSDN is doing it using a simple "GenerateDataSet" function, I thought it's a shortcut.

The original CSV file from Yahoo Finance looks like the following:

Date,Open,High,Low,Close,Volume,Adj Close
2009-10-23,15.91,16.10,15.41,15.48,27610400,15.48
2009-10-22,15.15,15.51,15.01,15.43,17517400,15.43


Basically I'm just having problem with the "result = GenerateDataSet(yData)" line, because I couldn't find the namespace that "GenerateDataSet" is under. Frown | :( If you could please give me the code for writing that csv stream into a dataset, that would be great!


Public Function getStockXML(ByVal strTicker As String, ByVal strStartDate As String, ByVal strEndDate As String) As XmlDocument<br />
        Dim xReturn As New XmlDocument()<br />
        Dim result As New DataSet()<br />
        Dim wc As New WebClient()<br />
        Dim yData As Stream = wc.OpenRead(sYahooURI)<br />
        result = GenerateDataSet(yData)<br />
        Dim stringWriter As New StringWriter()<br />
        Dim xmlTextwriter As New XmlTextWriter(stringWriter)<br />
        result.WriteXml(xmlTextwriter, XmlWriteMode.IgnoreSchema)<br />
        Dim xRoot As XmlNode = xReturn.CreateElement("root")<br />
        xReturn.AppendChild(xRoot)<br />
        xReturn.LoadXml(stringWriter.ToString())<br />
        Return (xReturn)<br />
End Function



For your information, here's the link to that MSDN website:

http://msdn.microsoft.com/en-us/magazine/ee294455.aspx[^]

Thanks again for your help!
QuestionI want to implement Windows authentication. Pin
skcdac25-Nov-09 2:14
skcdac25-Nov-09 2:14 
AnswerRe: I want to implement Windows authentication. Pin
Abhishek Sur25-Nov-09 2:17
professionalAbhishek Sur25-Nov-09 2:17 
AnswerRe: I want to implement Windows authentication. Pin
Vimalsoft(Pty) Ltd25-Nov-09 2:19
professionalVimalsoft(Pty) Ltd25-Nov-09 2:19 
QuestionFree WYSIWYG Editors Pin
Abbas_here25-Nov-09 1:36
Abbas_here25-Nov-09 1:36 
AnswerRe: Free WYSIWYG Editors Pin
sashidhar25-Nov-09 1:41
sashidhar25-Nov-09 1:41 
GeneralRe: Free WYSIWYG Editors Pin
Abbas_here25-Nov-09 2:05
Abbas_here25-Nov-09 2:05 
AnswerRe: Free WYSIWYG Editors Pin
Gamzun25-Nov-09 1:55
Gamzun25-Nov-09 1:55 
GeneralRe: Free WYSIWYG Editors Pin
Abbas_here25-Nov-09 2:06
Abbas_here25-Nov-09 2:06 
AnswerRe: Free WYSIWYG Editors Pin
Abhishek Sur25-Nov-09 2:20
professionalAbhishek Sur25-Nov-09 2:20 
AnswerRe: Free WYSIWYG Editors Pin
saini arun25-Nov-09 2:23
saini arun25-Nov-09 2:23 
GeneralRe: Free WYSIWYG Editors Pin
Abbas_here25-Nov-09 3:33
Abbas_here25-Nov-09 3:33 
QuestionDiable the Refresh button ! Pin
Jacobb Michael24-Nov-09 23:37
Jacobb Michael24-Nov-09 23:37 
AnswerRe: Diable the Refresh button ! Pin
sashidhar25-Nov-09 0:11
sashidhar25-Nov-09 0:11 
AnswerRe: Diable the Refresh button ! Pin
Kannan Ar25-Nov-09 0:58
professionalKannan Ar25-Nov-09 0:58 
AnswerRe: Diable the Refresh button ! Pin
Abhishek Sur25-Nov-09 1:27
professionalAbhishek Sur25-Nov-09 1:27 
QuestionSession management only single user Pin
Amit Patel198524-Nov-09 23:28
Amit Patel198524-Nov-09 23:28 
AnswerRe: Session management only single user Pin
Jörgen Andersson24-Nov-09 23:36
professionalJörgen Andersson24-Nov-09 23:36 

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.