Click here to Skip to main content
15,888,610 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Image Viewer in asp.net C# Pin
Member 1029206123-Sep-13 21:21
Member 1029206123-Sep-13 21:21 
QuestionAfter Binding 1000+ Records In Gridview Other Events Not Firing Pin
Arunkumar.23-Sep-13 1:59
Arunkumar.23-Sep-13 1:59 
AnswerRe: After Binding 1000+ Records In Gridview Other Events Not Firing Pin
Richard MacCutchan23-Sep-13 2:58
mveRichard MacCutchan23-Sep-13 2:58 
GeneralRe: After Binding 1000+ Records In Gridview Other Events Not Firing Pin
Arunkumar.23-Sep-13 20:07
Arunkumar.23-Sep-13 20:07 
QuestionRe: After Binding 1000+ Records In Gridview Other Events Not Firing Pin
Richard MacCutchan23-Sep-13 20:32
mveRichard MacCutchan23-Sep-13 20:32 
AnswerRe: After Binding 1000+ Records In Gridview Other Events Not Firing Pin
Arunkumar.23-Sep-13 20:41
Arunkumar.23-Sep-13 20:41 
Questioni have a web site with some sub domain for rewriting i use this code in web confic: Pin
Uthman Rahimi22-Sep-13 10:48
professionalUthman Rahimi22-Sep-13 10:48 
Questionexception of type 'system.outofmemoryexception' was thrown Pin
ptvce22-Sep-13 1:04
ptvce22-Sep-13 1:04 
Im writing this code for display data in excel,

try
{
string Path = "G:\\AjanceReport\\TotalReportExcelfile_" + DateTime.Now.Day.ToString() + "_" + DateTime.Now.Month.ToString() + ".xls";
FileInfo FI = new FileInfo(Path);
StringWriter stringWriter = new StringWriter();
HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWriter);
DataGrid DataGrd = new DataGrid();
DataGrd.DataSource = dsGrid;
DataGrd.DataBind();

DataGrd.RenderControl(htmlWrite);
string directory = Path.Substring(0, Path.LastIndexOf("\\"));// GetDirectory(Path);
if (!Directory.Exists(directory))
{
Directory.CreateDirectory(directory);
}

System.IO.StreamWriter vw = new System.IO.StreamWriter(Path, true);
stringWriter.ToString().Normalize();
vw.Write(stringWriter.ToString());
vw.Flush();
vw.Close();
WriteAttachment(FI.Name, "application/vnd.ms-excel", stringWriter.ToString());
}
catch (Exception ex)
{
//throw new Exception(ex.Message);
}


but i see this error : exception of type 'system.outofmemoryexception' was thrown

any body know what can i do???
AnswerRe: exception of type 'system.outofmemoryexception' was thrown Pin
Anurag Sinha V25-Sep-13 23:36
Anurag Sinha V25-Sep-13 23:36 
Questionasp.net Pin
Member 1028943021-Sep-13 20:23
Member 1028943021-Sep-13 20:23 
QuestionRe: asp.net Pin
David C# Hobbyist.22-Sep-13 1:12
professionalDavid C# Hobbyist.22-Sep-13 1:12 
AnswerRe: asp.net Pin
Abhinav S23-Sep-13 20:32
Abhinav S23-Sep-13 20:32 
AnswerRe: asp.net Pin
Jagz W24-Sep-13 2:09
professionalJagz W24-Sep-13 2:09 
QuestionImage locking Pin
Dholakiya Ankit19-Sep-13 18:26
Dholakiya Ankit19-Sep-13 18:26 
AnswerRe: Image locking Pin
Bernhard Hiller19-Sep-13 21:35
Bernhard Hiller19-Sep-13 21:35 
GeneralRe: Image locking Pin
Dholakiya Ankit19-Sep-13 22:35
Dholakiya Ankit19-Sep-13 22:35 
AnswerRe: Image locking Pin
David Mujica20-Sep-13 2:20
David Mujica20-Sep-13 2:20 
GeneralRe: Image locking Pin
Dholakiya Ankit20-Sep-13 2:24
Dholakiya Ankit20-Sep-13 2:24 
QuestionDisplay images from server folder Pin
SAM_India19-Sep-13 8:20
SAM_India19-Sep-13 8:20 
AnswerRe: Display images from server folder Pin
jkirkerx19-Sep-13 13:20
professionaljkirkerx19-Sep-13 13:20 
AnswerRe: Display images from server folder Pin
Pratik Bhuva24-Sep-13 21:21
professionalPratik Bhuva24-Sep-13 21:21 
GeneralRe: Display images from server folder Pin
SAM_India1-Oct-13 14:54
SAM_India1-Oct-13 14:54 
GeneralRe: Display images from server folder Pin
Pratik Bhuva4-Oct-13 23:17
professionalPratik Bhuva4-Oct-13 23:17 
AnswerRe: Display images from server folder Pin
Vishnu Prajapati24-Sep-13 22:38
professionalVishnu Prajapati24-Sep-13 22:38 
QuestionI need a free hosting for asp.net with sql server, is it possible? Pin
Member 1028433219-Sep-13 0:51
Member 1028433219-Sep-13 0: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.