Click here to Skip to main content
15,922,894 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionUse propaganda in my site (VS2010 – C#) Pin
armm138823-May-12 18:40
armm138823-May-12 18:40 
AnswerRe: Use propaganda in my site (VS2010 – C#) Pin
Not Active24-May-12 2:07
mentorNot Active24-May-12 2:07 
GeneralRe: Use propaganda in my site (VS2010 – C#) Pin
ZurdoDev25-May-12 4:48
professionalZurdoDev25-May-12 4:48 
QuestionLimit size of pictures for upload in my web site (VS2010 – C#) Pin
armm138823-May-12 18:40
armm138823-May-12 18:40 
AnswerRe: Limit size of pictures for upload in my web site (VS2010 – C#) Pin
Not Active24-May-12 2:11
mentorNot Active24-May-12 2:11 
AnswerRe: Limit size of pictures for upload in my web site (VS2010 – C#) Pin
Jack Li24-May-12 5:14
Jack Li24-May-12 5:14 
AnswerRe: Limit size of pictures for upload in my web site (VS2010 – C#) Pin
jkirkerx25-May-12 7:42
professionaljkirkerx25-May-12 7:42 
QuestionDon’t Export Persian fields finely from ASP.NET to Excel (VS2010 – C#) Pin
armm138823-May-12 18:38
armm138823-May-12 18:38 
Hi I export my GrideView from asp.net to excel but the fields which contain Persian character don’t export finely (VS2010 – C#). HOW CAN I DO IT?
My code is :
HttpContext.Current.Response.Clear();
HttpContext.Current.Response.AddHeader("content-disposition",
string.Format("attachment;filename={0}.xls", "Exported"));
HttpContext.Current.Response.Charset = "";
HttpContext.Current.Response.ContentType = "application/ms-excel";

using (StringWriter sw = new StringWriter())
{
using (HtmlTextWriter htw = new HtmlTextWriter(sw))
{
// Create a table to contain the grid
Table table = new Table();

foreach (GridViewRow row in GridView1.Rows)
{
table.Rows.Add(row);
}

// render the table into the htmlwriter
table.RenderControl(htw);

// render the htmlwriter into the response
HttpContext.Current.Response.Write(sw.ToString());
HttpContext.Current.Response.End();
}
}

Thanks very much
GeneralRe: Don’t Export Persian fields finely from ASP.NET to Excel (VS2010 – C#) Pin
Not Active24-May-12 2:08
mentorNot Active24-May-12 2:08 
AnswerRe: Don’t Export Persian fields finely from ASP.NET to Excel (VS2010 – C#) Pin
Jack Li24-May-12 5:21
Jack Li24-May-12 5:21 
GeneralRe: Don’t Export Persian fields finely from ASP.NET to Excel (VS2010 – C#) Pin
Not Active24-May-12 5:53
mentorNot Active24-May-12 5:53 
AnswerRe: Don’t Export Persian fields finely from ASP.NET to Excel (VS2010 – C#) Pin
Not Active24-May-12 5:50
mentorNot Active24-May-12 5:50 
QuestionSystem.OutOfMemoryException Pin
rakeshkmr198523-May-12 9:05
rakeshkmr198523-May-12 9:05 
AnswerRe: System.OutOfMemoryException Pin
jkirkerx23-May-12 9:20
professionaljkirkerx23-May-12 9:20 
AnswerRe: System.OutOfMemoryException Pin
Fabio Franco24-May-12 2:30
professionalFabio Franco24-May-12 2:30 
AnswerRe: System.OutOfMemoryException Pin
RichardGrimmer25-May-12 4:24
RichardGrimmer25-May-12 4:24 
QuestionXML tag & recordset not working in firefox Pin
Member 819658023-May-12 1:19
Member 819658023-May-12 1:19 
AnswerRe: XML tag & recordset not working in firefox Pin
jkirkerx23-May-12 9:16
professionaljkirkerx23-May-12 9:16 
QuestionCheck for repeated characters Pin
padmanabhan N22-May-12 22:10
padmanabhan N22-May-12 22:10 
AnswerRe: Check for repeated characters Pin
Not Active23-May-12 2:32
mentorNot Active23-May-12 2:32 
AnswerRe: Check for repeated characters Pin
jkirkerx23-May-12 13:01
professionaljkirkerx23-May-12 13:01 
GeneralRe: Check for repeated characters Pin
Not Active23-May-12 13:16
mentorNot Active23-May-12 13:16 
GeneralRe: Check for repeated characters Pin
jkirkerx24-May-12 5:10
professionaljkirkerx24-May-12 5:10 
AnswerRe: Check for repeated characters Pin
markovl23-May-12 21:07
markovl23-May-12 21:07 
QuestionScope For Hospital Management Pin
santosh_pathak22-May-12 21:51
santosh_pathak22-May-12 21:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.