ASP.NET example code modification
Posted: Wed May 21, 2008 1:28 pm
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:
and this works for when you get the xml file.
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);
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));