views:

42

answers:

2

So here's the code in C# .Net.

        string linie = txtFirstName.Text + "," + txtLastName.Text + "," + txtBirthday.Text + "," + txtEmail.Text + ",";

        StreamWriter write = new StreamWriter(@"D:/Hosting/2691577/html/gshccadmin/site1/excel_formdata/birthday_club.csv", true);
        write.WriteLine(linie);
        write.Flush();
        write.Close();`

Anyone know why this code behind function works in Firefox but not IE. Thanks in advance.

A: 

This is server-side code that is not dependent on the browser.

I'm guessing whatever is triggering this code from the client-side has a browser specific bug that is causing the code to not be called (or be called with incorrect parameters).

Justin Niessner
A: 

What does the content of your csv file look like? IE likes to auto-format XML and other types data to "look nicer" for the user, which sometimes removes the actual intent of the data to be rendered/displayed.

You may need to change the structure/content of the data in the source file, or dump the contents into an HTML literal control in order to get it to render properly.

Dillie-O
Well it's just basic info the titles of the ID's say it all. Name info a birthday and email address.
Ricky
If you right click on the page and "view source" do you see any data there, or is it a blank page?
Dillie-O