Click here to Skip to main content
15,867,308 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: webfarm with state server session mode Pin
tejesh12315-Apr-09 18:58
tejesh12315-Apr-09 18:58 
Questionproblem while reading an appending file in asp.net 2005 Pin
sanjubaba15-Apr-09 0:35
sanjubaba15-Apr-09 0:35 
QuestionRe: problem while reading an appending file in asp.net 2005 Pin
Ian McCaul15-Apr-09 3:52
Ian McCaul15-Apr-09 3:52 
AnswerRe: problem while reading an appending file in asp.net 2005 Pin
sanjubaba15-Apr-09 18:13
sanjubaba15-Apr-09 18:13 
QuestionUpdate panel and Link button problem Pin
meeram39515-Apr-09 0:32
meeram39515-Apr-09 0:32 
AnswerRe: Update panel and Link button problem Pin
Spunky Coder15-Apr-09 1:18
Spunky Coder15-Apr-09 1:18 
Questiongridviw data export to excel and save as zip format?? urgent!!! Pin
anujchetan15-Apr-09 0:17
anujchetan15-Apr-09 0:17 
AnswerRe: gridviw data export to excel and save as zip format?? urgent!!! Pin
kishorgh15-Apr-09 1:09
kishorgh15-Apr-09 1:09 
Take one image..on clcik of tht right following code
its save gridview data as .xls
not in zip file

protected void imgBtnExport_Click(object sender, ImageClickEventArgs e)
{
System.IO.StringWriter stringWrite = new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter htmlWrite = new System.Web.UI.HtmlTextWriter(stringWrite);

try
{
DateTime dtFromDate, dtToDate;

dtFromDate = Convert.ToDateTime(txtFromDate.Text);
dtToDate = Convert.ToDateTime(txtToDate.Text);

Response.Clear();
Response.AddHeader("content-disposition", "attachment;filename=ExcelName.xls");
Response.Charset = "";

// If you want the option to open the Excel file without saving then
// comment out the line below
Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache);
Response.ContentType = "application/vnd.xls";
this.EnableViewState = false;

GridView grdExp = new GridView();
grdExp.AllowPaging = false;
grdExp.AllowSorting = false;
DataSet dsRawProd = objReportBL.GetRawProductivityData(dtFromDate.ToShortDateString(), dtToDate.ToShortDateString(), 0, 0);
if (dsRawProd.Tables.Count > 0 && dsRawProd.Tables[0].Rows.Count > 0)
{
DataTable dtRowPrd = dsRawProd.Tables[0];
DataView dv = new DataView(dtRowPrd);
grdExp.DataSource = dv;
grdExp.DataBind();
//grdExp.Columns.
grdExp.RenderControl(htmlWrite);
}
}
catch (Exception)
{
}
Response.Write(stringWrite.ToString());
Response.End();
}
GeneralRe: gridviw data export to excel and save as zip format?? urgent!!! Pin
anujchetan15-Apr-09 1:19
anujchetan15-Apr-09 1:19 
AnswerRe: gridviw data export to excel and save as zip format?? urgent!!! Pin
Yusuf15-Apr-09 4:40
Yusuf15-Apr-09 4:40 
QuestionSystem.OutOfMemoryException [modified] Pin
bikash pattanayak15-Apr-09 0:02
bikash pattanayak15-Apr-09 0:02 
AnswerRe: System.OutOfMemoryException Pin
Colin Angus Mackay15-Apr-09 0:53
Colin Angus Mackay15-Apr-09 0:53 
QuestionFile uploading stuck Pin
Hristiyan14-Apr-09 23:41
Hristiyan14-Apr-09 23:41 
AnswerRe: File uploading stuck Pin
Yusuf15-Apr-09 4:33
Yusuf15-Apr-09 4:33 
AnswerRe: File uploading stuck Pin
Hristiyan15-Apr-09 6:15
Hristiyan15-Apr-09 6:15 
Questionusing Ajax timer control Pin
Member 447022314-Apr-09 23:22
Member 447022314-Apr-09 23:22 
AnswerRe: using Ajax timer control Pin
Yusuf15-Apr-09 4:37
Yusuf15-Apr-09 4:37 
QuestionState maintanence? Pin
Karthick_gc14-Apr-09 22:46
Karthick_gc14-Apr-09 22:46 
AnswerRe: State maintanence? Pin
Yusuf15-Apr-09 4:39
Yusuf15-Apr-09 4:39 
Questionobject tag problem Pin
naveen attri14-Apr-09 22:39
naveen attri14-Apr-09 22:39 
AnswerRe: object tag problem Pin
Spunky Coder15-Apr-09 1:02
Spunky Coder15-Apr-09 1:02 
QuestionClose window? Pin
Karthick_gc14-Apr-09 22:09
Karthick_gc14-Apr-09 22:09 
AnswerRe: Close window? Pin
SeMartens14-Apr-09 22:11
SeMartens14-Apr-09 22:11 
GeneralRe: Close window? Pin
Karthick_gc14-Apr-09 22:15
Karthick_gc14-Apr-09 22:15 
GeneralRe: Close window? Pin
Christian Graus14-Apr-09 22:19
protectorChristian Graus14-Apr-09 22:19 

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.