Click here to Skip to main content
13,594,948 members


AnswerRe: How can we export data into csv format in Pin
Sandeep Mewara19-Jan-13 5:54
mvpSandeep Mewara19-Jan-13 5:54 
QuestionHow to asp:Literal with more..? Pin
Jassim Rahma18-Jan-13 3:19
memberJassim Rahma18-Jan-13 3:19 
AnswerRe: How to asp:Literal with more..? Pin
Parwej Ahamad18-Jan-13 7:13
memberParwej Ahamad18-Jan-13 7:13 
AnswerRe: How to asp:Literal with more..? Pin
Nandakishorerao18-Jan-13 21:46
memberNandakishorerao18-Jan-13 21:46 
QuestionTracking Emails Pin
Jaison Joe17-Jan-13 17:49
memberJaison Joe17-Jan-13 17:49 
QuestionHow to add KML file to google Map using javascript in Pin
Trivikramarao Vurubandi17-Jan-13 0:40
memberTrivikramarao Vurubandi17-Jan-13 0:40 
QuestionExport data in Excel(xlsx) without using Excel Object from Datatable. Pin
mca_rameshkumar16-Jan-13 22:00
membermca_rameshkumar16-Jan-13 22:00 
AnswerRe: Export data in Excel(xlsx) without using Excel Object from Datatable. Pin
chester_it2118-Jan-13 6:52
groupchester_it2118-Jan-13 6:52 
Redirect/open window to pageListForExportExcel.aspx in page1.aspx
so in page1 set input button to redirect/open window to pageListForExportExcel.aspx
in page1 :

<input type="button" value="Export to Excel" onclick="ExportToExcel()"/>

and you need javascript or JQuery for create function redirect/open window to pageListForExportExcel.aspx

<script type="text/javascript">
      function ExportToExcel()
          var txt ="pageListForExportExcel.aspx");

in ASPX (pageListForExportExcel.aspx), use repeater for display you data from datatable,Example set to be this :
<%@ Page Language="C#" AutoEventWireup="true" EnableSessionState="ReadOnly" EnableViewState="false" CodeBehind="BukuInduk_exportToExcel.aspx.cs" Inherits="LimSys.Web.Laporan.BukuInduk_exportToExcel" %>
		<asp:Repeater ID="rep1" runat="server">
				<table border=1>
						<td><%# Eval("name")%></td>
						<td><%# Eval("address")%></td>
						<td><%# Eval("telp")%></td>
						<td><%# Eval("gender")%></td>

and the last,in code behind pageListForExportExcel.aspx.cs
use this :

 protected void Page_Load(object sender, EventArgs e)
    Response.Clear();// this for clear any response
    Response.Buffer = true; // and then set to Buffer is true
    Response.ContentType = "application/";// and this is for call type what you want to set File extention for can export to pdf ,if you change value Response.ContentType

    var process = new DataLayersCollections();//set here by name your BusinesLogic
    var list = process.GetListFromDataTable(); //set here by name your functions
    rep1.DataSource = list;

and the latter again .......
good luck ....
hope this help you.....Big Grin | :-D
QuestionButton or ImageButton? Pin
Jassim Rahma16-Jan-13 9:40
memberJassim Rahma16-Jan-13 9:40 
AnswerRe: Button or ImageButton? Pin
jkirkerx16-Jan-13 12:40
memberjkirkerx16-Jan-13 12:40 
QuestionGoogle Translate Pin
DotNetFellow15-Jan-13 22:31
memberDotNetFellow15-Jan-13 22:31 
AnswerRe: Google Translate Pin
Sandeep Mewara16-Jan-13 2:57
mvpSandeep Mewara16-Jan-13 2:57 
Questionunzipping file in host ? Pin
jojoba201115-Jan-13 17:59
memberjojoba201115-Jan-13 17:59 
AnswerRe: unzipping file in host ? Pin
Vani Kulkarni16-Jan-13 2:44
memberVani Kulkarni16-Jan-13 2:44 
QuestionRe: unzipping file in host ? Pin
jojoba201116-Jan-13 7:41
memberjojoba201116-Jan-13 7:41 
Questionhow to install downloaded nested master page template??? Pin
Member 876986514-Jan-13 3:25
memberMember 876986514-Jan-13 3:25 
AnswerRe: how to install downloaded nested master page template??? Pin
Brij15-Jan-13 18:10
mentorBrij15-Jan-13 18:10 
AnswerRe: how to install downloaded nested master page template??? Pin
Sandeep Mewara15-Jan-13 18:19
mvpSandeep Mewara15-Jan-13 18:19 
QuestionImage Export Issue Pin
ashu_12311-Jan-13 6:54
memberashu_12311-Jan-13 6:54 
AnswerRe: Image Export Issue Pin
jkirkerx13-Jan-13 13:29
memberjkirkerx13-Jan-13 13:29 
QuestionDisable Pop-up Blocker Pin
arunmisra10-Jan-13 8:32
memberarunmisra10-Jan-13 8:32 
AnswerRe: Disable Pop-up Blocker Pin
jkirkerx10-Jan-13 12:46
memberjkirkerx10-Jan-13 12:46 
AnswerRe: Disable Pop-up Blocker Pin
Richard MacCutchan10-Jan-13 21:54
mvpRichard MacCutchan10-Jan-13 21:54 
GeneralRe: Disable Pop-up Blocker Pin
arunmisra11-Jan-13 11:22
memberarunmisra11-Jan-13 11:22 
JokeRe: Disable Pop-up Blocker Pin
jkirkerx13-Jan-13 13:31
memberjkirkerx13-Jan-13 13:31 

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.

Advertise | Privacy | Cookies | Terms of Service
Web04-2016 | 2.8.180621.3 | Last Updated 19 Jun 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid