Sign in to follow this  
Reddy

Fusion Charts Asp.Net

Recommended Posts

I need to generate the XML dynamically from a dataset for

FCF_MSLine.swf

where i need to generate tags <Categories></categories> and <Dataset></Dataset> dynamically .Please find my code and help me out...

strXML +=

"<categories>";

while (oRs.ReadData.Read())

{

strXML += "<category name='" + oRs.ReadData["Day Name"].ToString() + "' />";

}

strXML +=

"</categories>";

strXML +=

"<dataset seriesName='For Sample Test' color='1D8BD1' anchorBorderColor='1D8BD1' anchorBgColor='1D8BD1'>";

while (oRs.ReadData.Read())

{

strXML +=

"<set value='" + oRs.ReadData["Estimated Efforts"].ToString() + "' />";

}

strXML +=

" </dataset>";

 

but the value of oRs.ReadData.Read() becomes false and the second condtion is not executing faling to generate the <dataset > tag...

 

please help me out.....

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this