Posted on: 5/2/2011 1:37:49 AM | Views : 215

Hi everyone.
This could be something small, like a little code alteration, as I don't know much about the classes I'm working with.
So, I'm trying to get a list of Subscribers to appear in a new tab, as currently it opens in the current window. I have tried putting the HTML code around the button for a new tab ( <a target="_blank" .. etc. ). However, this does now work. This lead me to believe it is something in the code which I can attach as a string maybe, but im not sure where - if at all possible.
I'll provide the button event code then the method of importance within it. This is coded in C#.
Button Event:
 
protected void btnHTML_Click(object sender, EventArgs e) { List<Newsletter> list = new List<Newsletter>(); list = Newsletter.GetAll(); HTMLExporter.WriteToCSV(list); }  
HTMLExporter.WriteToCSV Method
 

Go to the complete details ...