Click here to Skip to main content
16,005,222 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Populate Treeview with xmlnodes Pin
N a v a n e e t h2-Jan-08 23:26
N a v a n e e t h2-Jan-08 23:26 
QuestionRe: Populate Treeview with xmlnodes Pin
Sonia Gupta2-Jan-08 23:50
Sonia Gupta2-Jan-08 23:50 
GeneralRe: Populate Treeview with xmlnodes Pin
N a v a n e e t h2-Jan-08 23:58
N a v a n e e t h2-Jan-08 23:58 
QuestionRe: Populate Treeview with xmlnodes Pin
Sonia Gupta3-Jan-08 0:14
Sonia Gupta3-Jan-08 0:14 
GeneralRe: Populate Treeview with xmlnodes Pin
Christian Graus2-Jan-08 22:21
protectorChristian Graus2-Jan-08 22:21 
GeneralRe: Populate Treeview with xmlnodes Pin
Michael Sync2-Jan-08 23:14
Michael Sync2-Jan-08 23:14 
GeneralCreate text image using handler Pin
Imran Khan Pathan2-Jan-08 20:05
Imran Khan Pathan2-Jan-08 20:05 
GeneralOWC webchart issue Pin
uglyeyes2-Jan-08 20:01
uglyeyes2-Jan-08 20:01 
Hi I am trying use OWC chart component to draw a comparative graph that will show

list of years and sales actual and sales budgeted. so i have three columsn

year actual budgeted
2004 20 30
2005 21 32

now i am trying to show year in x axis and have seperate graphs for 20 and 30 in year 2004 and 2005. I am not getting able to show both i can only show one can any please help me with it i have attached the code for easy understanding

------
Dim dsPropertyCapex As DataSet = myDAL.getBudgetVsActual(domainid, locationid, buildingcomponentid, PortfolioId, userId)
If Not dsPropertyCapex Is Nothing Then
gvPropertyHisex.DataSource = dsPropertyCapex
gvPropertyHisex.DataBind()
'Now Build a graph from the dataset

Dim oChartSpace As New Owc11.ChartSpaceClass()
Dim objChart As Owc11.ChChart = oChartSpace.Charts.Add(0)
objChart.HasTitle = True
objChart.Title.Caption = "Capital Expenditure Graph"
objChart.HasLegend = True
objChart.Legend.Border.DashStyle = Owc11.ChartLineDashStyleEnum.chLineDash
objChart.Legend.Position = Owc11.ChartLegendPositionEnum.chLegendPositionRight

Dim sw As New System.IO.StringWriter()
Dim xDoc As New XmlDocument()
dsPropertyCapex.WriteXml(sw)
' clean up

xDoc.LoadXml(sw.ToString())
sw.Close()
Dim nodes As System.Xml.XmlNodeList
nodes = xDoc.ChildNodes.Item(0).ChildNodes
Dim nCount As Integer = nodes.Count
Dim aActual As String() = New String(nCount - 1) {}
Dim aBudgeted As String() = New String(nCount - 1) {}
Dim aEOY As String() = New String(nCount - 1) {}
Dim Actual As String = [String].Empty
Dim Budgeted As String = [String].Empty
Dim EOY As String = [String].Empty
Dim i As Integer = 0
For i = 1 To nCount
aActual(i - 1) = nodes.Item(i - 1).ChildNodes.Item(0).InnerText
aBudgeted(i - 1) = nodes.Item(i - 1).ChildNodes.Item(1).InnerText
aEOY(i - 1) = nodes.Item(i - 1).ChildNodes.Item(2).InnerText

Next

Actual = [String].Join("" & Chr(9) & "", aActual)
Budgeted = [String].Join("" & Chr(9) & "", aBudgeted)
'Chart control accepts tab-delimited string of values
EOY = [String].Join("" & Chr(9) & "", aEOY)

'oChartSpace.Charts.Add(0)
objChart.SeriesCollection.Add(0)
objChart.SeriesCollection(0).SetData(Owc11.ChartDimensionsEnum.chDimValues, Convert.ToInt32(Owc11.ChartSpecialDataSourcesEnum.chDataLiteral), Actual)
objChart.SeriesCollection(0).SetData(Owc11.ChartDimensionsEnum.chDimCategories, Convert.ToInt32(Owc11.ChartSpecialDataSourcesEnum.chDataLiteral), EOY)
'objChart.SeriesCollection(0).SetData(Owc11.ChartDimensionsEnum.chDimCategories, Convert.ToInt32(Owc11.ChartSpecialDataSourcesEnum.chDataLiteral), Actual)
'objChart.SeriesCollection(0).SetData(Owc11.ChartDimensionsEnum.chDimCategories, Convert.ToInt32(Owc11.ChartSpecialDataSourcesEnum.chDataLiteral), Budgeted)

objChart.SeriesCollection.Add(1)
objChart.SeriesCollection(1).SetData(Owc11.ChartDimensionsEnum.chDimValues, Convert.ToInt32(Owc11.ChartSpecialDataSourcesEnum.chDataLiteral), Budgeted)


Dim strFullPathAndName As String = Server.MapPath(System.DateTime.Now.Ticks.ToString() + ".gif")
oChartSpace.ExportPicture(strFullPathAndName, "gif", 600, 400)
imgCapexGraph.ImageUrl = Server.UrlEncode(Path.GetFileName(strFullPathAndName))
imgCapexGraph.Visible = True
RemoveFiles(Server.MapPath("."))
Questionfaster execution in case of anchor tags , link buttons Pin
Sonia Gupta2-Jan-08 19:58
Sonia Gupta2-Jan-08 19:58 
GeneralRe: faster execution in case of anchor tags , link buttons Pin
N a v a n e e t h2-Jan-08 20:00
N a v a n e e t h2-Jan-08 20:00 
GeneralRe: faster execution in case of anchor tags , link buttons Pin
Sonia Gupta2-Jan-08 20:09
Sonia Gupta2-Jan-08 20:09 
GeneralRe: faster execution in case of anchor tags , link buttons Pin
Christian Graus2-Jan-08 22:10
protectorChristian Graus2-Jan-08 22:10 
GeneralCreating a directory or folder ` Pin
.NET- India 2-Jan-08 19:57
.NET- India 2-Jan-08 19:57 
GeneralRe: Creating a directory or folder ` Pin
N a v a n e e t h2-Jan-08 19:59
N a v a n e e t h2-Jan-08 19:59 
GeneralRe: Creating a directory or folder ` Pin
.NET- India 2-Jan-08 20:23
.NET- India 2-Jan-08 20:23 
GeneralRe: Creating a directory or folder ` Pin
N a v a n e e t h2-Jan-08 20:27
N a v a n e e t h2-Jan-08 20:27 
GeneralDropdown Textbox in asp.net Pin
anujose2-Jan-08 19:51
anujose2-Jan-08 19:51 
GeneralRe: Dropdown Textbox in asp.net Pin
N a v a n e e t h2-Jan-08 19:55
N a v a n e e t h2-Jan-08 19:55 
GeneralRe: Dropdown Textbox in asp.net Pin
anujose2-Jan-08 20:21
anujose2-Jan-08 20:21 
GeneralRe: Dropdown Textbox in asp.net Pin
Michael Sync2-Jan-08 21:09
Michael Sync2-Jan-08 21:09 
GeneralRe: Dropdown Textbox in asp.net Pin
Vasudevan Deepak Kumar2-Jan-08 19:58
Vasudevan Deepak Kumar2-Jan-08 19:58 
GeneralRe: Dropdown Textbox in asp.net Pin
rahul.net112-Jan-08 20:04
rahul.net112-Jan-08 20:04 
Generalproblems in using servlets and applets in asp Pin
chanzeb2-Jan-08 19:50
chanzeb2-Jan-08 19:50 
GeneralRe: problems in using servlets and applets in asp Pin
Vasudevan Deepak Kumar2-Jan-08 19:57
Vasudevan Deepak Kumar2-Jan-08 19:57 
GeneralRe: problems in using servlets and applets in asp Pin
N a v a n e e t h2-Jan-08 19:57
N a v a n e e t h2-Jan-08 19:57 

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.