I have a question on the WebRequest WebResponse thingee..
This is my code:

public void showDateRange()
        {
            FromDate = DateTime.ParseExact(txtFromDate.Text, "M/d/yyyy", null);
            ToDate = DateTime.ParseExact(txtToDate.Text, "M/d/yyyy", null);
            WebRequest request = (WebRequest)WebRequest.Create(@"D:\Final Charts\LineGraph\linexml.aspx");
            WebResponse response = request.GetResponse();
            while (reader.Read())
            {
                if (reader.Name == "category")
                {
                    xmlDate = DateTime.ParseExact(reader.GetAttribute("name"), "M/d/yyyy", null);
                    hffromPoint.Value = (FromDate >= xmlDate ? Convert.ToInt32((FromDate - xmlDate).TotalDays) + 1 : 1).ToString();
                    break;
                }
            }
            hftoPoint.Value = (Convert.ToInt32((ToDate - xmlDate).TotalDays) + 1).ToString();
        }

I was wondering how can I read from .aspx(which is also my xml see http://imgur.com/GJwVMSm)
To act as XML:
This is my original hardcode xml:

public void showDateRange()
        {
            FromDate = DateTime.ParseExact(txtFromDate.Text, "M/d/yyyy", null);
            ToDate = DateTime.ParseExact(txtToDate.Text, "M/d/yyyy", null);
            XmlTextReader reader = new XmlTextReader(@"D:\Old\Final Shit\FinalLine\WebApplication1\cashflowdata.xml");
            while (reader.Read())
            {
                if (reader.Name == "category")
                {
                    xmlDate = DateTime.ParseExact(reader.GetAttribute("name"), "M/d/yyyy", null);
                    hffromPoint.Value = (FromDate >= xmlDate ? Convert.ToInt32((FromDate - xmlDate).TotalDays) + 1 : 1).ToString();
                    break;
                }
            }
            hftoPoint.Value = (Convert.ToInt32((ToDate - xmlDate).TotalDays) + 1).ToString();
        }

how do I get use my aspx data as if I'm using XML?
Please respond.. Thank you!!!

i am loading from a database coding with XSLT also.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.