Click here to Skip to main content
15,917,991 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionpaging in GRidView when I bind it with an object Pin
indian14315-Apr-09 1:42
indian14315-Apr-09 1:42 
AnswerRe: paging in GRidView when I bind it with an object Pin
Vimalsoft(Pty) Ltd15-Apr-09 2:49
professionalVimalsoft(Pty) Ltd15-Apr-09 2:49 
GeneralRe: paging in GRidView when I bind it with an object Pin
Ian McCaul15-Apr-09 3:50
Ian McCaul15-Apr-09 3:50 
AnswerRe: paging in GRidView when I bind it with an object Pin
Vimalsoft(Pty) Ltd15-Apr-09 4:04
professionalVimalsoft(Pty) Ltd15-Apr-09 4:04 
GeneralRe: paging in GRidView when I bind it with an object Pin
indian14315-Apr-09 7:40
indian14315-Apr-09 7:40 
GeneralRe: paging in GRidView when I bind it with an object Pin
Vimalsoft(Pty) Ltd15-Apr-09 19:57
professionalVimalsoft(Pty) Ltd15-Apr-09 19:57 
Questionwebfarm with state server session mode Pin
tejesh12315-Apr-09 0:39
tejesh12315-Apr-09 0:39 
AnswerRe: webfarm with state server session mode Pin
Colin Angus Mackay15-Apr-09 0:48
Colin Angus Mackay15-Apr-09 0:48 
GeneralRe: webfarm with state server session mode Pin
tejesh12315-Apr-09 1:44
tejesh12315-Apr-09 1:44 
GeneralRe: webfarm with state server session mode Pin
Yusuf15-Apr-09 4:11
Yusuf15-Apr-09 4:11 
AnswerRe: webfarm with state server session mode Pin
Abhijit Jana15-Apr-09 1:50
professionalAbhijit Jana15-Apr-09 1:50 
GeneralRe: webfarm with state server session mode Pin
tejesh12315-Apr-09 2:00
tejesh12315-Apr-09 2:00 
GeneralRe: webfarm with state server session mode Pin
Abhijit Jana15-Apr-09 2:27
professionalAbhijit Jana15-Apr-09 2:27 
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 

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.