Expand|Select|Wrap|Line Numbers
- StringBuilder HTML = new StringBuilder();
- String NewLine = System.Environment.NewLine;
- HTML.Append("<HTML>" + NewLine + "<head>" + NewLine);
- HTML.Append("<title>" + client_name + "</title>" + NewLine + "</head>" + NewLine);
- HTML.Append("<body style='FONT-FAMILY: verdana'>" + NewLine);
- HTML.Append("</body>" + NewLine + "</html>");
- Response.AppendHeader("content-disposition", "attachment; filename=" + userfilename);
- Response.ContentType = "text/plain";
- Response.Write(HTML.ToString());
- Response.Flush();
- Response.End();
if i keep this code inside a loop,only the first file is created and dialog box does not asks for second file. my requirement is as follows:-
if a person selects 25 records then i don't want this prompt to come up,instead the 25HTML files should be created automatically and saved in the specified folder( to be provided by the user).
it should not ask the suer whether to save or open.