Page 1 of 1

ASP.NET example code modification

Posted: Wed May 21, 2008 1:28 pm
by 13048857
Hello,

I just want to suggest to modify the code of the example project that you ship with your installer, this would work for the development and runtime environment; (changes to the file Content.aspx.cs). That way, the users won't have to personalize their code when they want to load this project and execute it or publish it for testing.

this is for the page to redirect to:

Code: Select all

string fname = (string)Session["fileName"];
string path = "~/TeeChartForNET/" + fname;	
Response.Redirect(path);
and this works for when you get the xml file.

Code: Select all

string xmlFile = Server.MapPath("~/SampleList.xml");
//HttpWebRequest rqst = (HttpWebRequest)WebRequest.Create(xmlFile);
//rqst.Credentials = CredentialCache.DefaultCredentials;
//HttpWebResponse rsp = (HttpWebResponse)rqst.GetResponse();

XmlTextReader reader = new XmlTextReader(new System.IO.StreamReader(xmlFile));

Posted: Wed May 21, 2008 1:49 pm
by narcis
Hi THoMaSiN,

Thanks for your suggestion. I've added it to our wish-list to be reviewed.