ASP.NET example code modification

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
THoMaSiN
Newbie
Newbie
Posts: 36
Joined: Mon Apr 14, 2008 12:00 am

ASP.NET example code modification

Post by THoMaSiN » 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:

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));

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed May 21, 2008 1:49 pm

Hi THoMaSiN,

Thanks for your suggestion. I've added it to our wish-list to be reviewed.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply