Click here to Skip to main content
15,890,512 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionDeployment/publishing queries Pin
Alice@mywonderland10-Oct-06 22:39
Alice@mywonderland10-Oct-06 22:39 
Questionhtml to pdf Pin
TintinV3ck10-Oct-06 22:20
TintinV3ck10-Oct-06 22:20 
AnswerRe: html to pdf Pin
Andrei_KS10-Oct-06 23:29
Andrei_KS10-Oct-06 23:29 
GeneralRe: html to pdf Pin
TintinV3ck11-Oct-06 1:18
TintinV3ck11-Oct-06 1:18 
AnswerRe: html to pdf Pin
Vasudevan Deepak Kumar12-Oct-06 4:50
Vasudevan Deepak Kumar12-Oct-06 4:50 
QuestionIs it possible to make a directory not under the application directroy in www.root ? Pin
King Shez10-Oct-06 21:46
King Shez10-Oct-06 21:46 
AnswerRe: Is it possible to make a directory not under the application directroy in www.root ? Pin
perlmunger12-Oct-06 5:19
perlmunger12-Oct-06 5:19 
QuestionAccess to Excel Pin
aaraaayen10-Oct-06 21:20
aaraaayen10-Oct-06 21:20 
Hi friends,

In my asp.net application, I want to convert ms-access data to excel. for this first i get the access data to gridview and from this i am fetching into excel. Its working well for smaller number of records. (say for eg. 5000). But for me in access there are 2 lacs records. While fetching these its giving problem. i am using the following code. Please can anyone help me is there are any alternatives for this.

DataSet ds = new DataSet();
protected void Page_Load(object sender, EventArgs e)
{
OleDbConnection cn = new OleDbConnection("Provider=Microsoft.Jet.Oledb.4.0;Data Source=D:/Database/Viewer.mdb;");
cn.Open();
OleDbDataAdapter da = new OleDbDataAdapter("select Parcel,Land,LandUse from Collection where class='E'", cn);
da.MissingSchemaAction = MissingSchemaAction.AddWithKey;
// DataSet ds = new DataSet();
da.Fill(ds, "Collection");
GridView1.DataSource = ds.Tables[0].DefaultView;
GridView1.DataBind();
}
protected void Button1_Click(object sender, EventArgs e)
{
Response.Clear();
Response.AddHeader("content-disposition", "attachment;filename=FileName.xls");
Response.Charset = "";

Response.ContentType = "application/vnd.xls";

System.IO.StringWriter stringWrite = new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite);

GridView1.RenderControl(htmlWrite);
Response.Write(stringWrite.ToString());
Response.End();
}
public override void VerifyRenderingInServerForm(Control control)
{
return;
}

Thanks in advance

Thanks and Regards,


Prya

AnswerRe: Access to Excel Pin
perlmunger12-Oct-06 5:27
perlmunger12-Oct-06 5:27 
QuestionMenu control or load data from dataset to linbutton Pin
Vipin.d10-Oct-06 21:16
Vipin.d10-Oct-06 21:16 
QuestionContext Menu on Tree view node Pin
joe_elsy10-Oct-06 20:48
joe_elsy10-Oct-06 20:48 
QuestionIssues in VS 2005+Crystal Report+Atlas Pin
skannapiran10-Oct-06 20:29
skannapiran10-Oct-06 20:29 
QuestionHow to connect ASP.NET to Lotus Notes Pin
justprashant10-Oct-06 20:15
justprashant10-Oct-06 20:15 
Questionjavascript error Pin
srilu nagalla10-Oct-06 20:06
srilu nagalla10-Oct-06 20:06 
AnswerRe: javascript error Pin
CWIZO10-Oct-06 22:59
CWIZO10-Oct-06 22:59 
QuestionASP.Net Uploading Problem Pin
King Shez10-Oct-06 19:59
King Shez10-Oct-06 19:59 
AnswerRe: ASP.Net Uploading Problem Pin
Andrei_KS10-Oct-06 20:09
Andrei_KS10-Oct-06 20:09 
GeneralRe: ASP.Net Uploading Problem Pin
King Shez10-Oct-06 20:40
King Shez10-Oct-06 20:40 
GeneralRe: ASP.Net Uploading Problem Pin
Andrei_KS10-Oct-06 20:50
Andrei_KS10-Oct-06 20:50 
GeneralRe: ASP.Net Uploading Problem Pin
Andrei_KS10-Oct-06 21:01
Andrei_KS10-Oct-06 21:01 
GeneralRe: ASP.Net Uploading Problem Pin
_AK_10-Oct-06 21:11
_AK_10-Oct-06 21:11 
GeneralRe: ASP.Net Uploading Problem Pin
Andrei_KS10-Oct-06 21:39
Andrei_KS10-Oct-06 21:39 
GeneralRe: ASP.Net Uploading Problem Pin
King Shez10-Oct-06 22:40
King Shez10-Oct-06 22:40 
QuestionJavascript based Annotation tool Pin
sribachana10-Oct-06 19:55
sribachana10-Oct-06 19:55 
QuestionHow can read GridView Column Index? Pin
Haridas.R10-Oct-06 19:52
Haridas.R10-Oct-06 19:52 

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.