Click here to Skip to main content
15,904,416 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: A server control have not post back and have click event Pin
Parwej Ahamad6-Jul-07 0:48
professionalParwej Ahamad6-Jul-07 0:48 
GeneralRe: A server control have not post back and have click event Pin
Piyush Vardhan Singh6-Jul-07 0:57
Piyush Vardhan Singh6-Jul-07 0:57 
GeneralRe: A server control have not post back and have click event Pin
Sathesh Sakthivel6-Jul-07 0:59
Sathesh Sakthivel6-Jul-07 0:59 
GeneralRe: A server control have not post back and have click event Pin
Piyush Vardhan Singh6-Jul-07 1:11
Piyush Vardhan Singh6-Jul-07 1:11 
GeneralRe: A server control have not post back and have click event Pin
Parwej Ahamad6-Jul-07 2:00
professionalParwej Ahamad6-Jul-07 2:00 
AnswerRe: A server control have not post back and have click event Pin
Tirthadip6-Jul-07 1:02
Tirthadip6-Jul-07 1:02 
GeneralRe: A server control have not post back and have click event Pin
Piyush Vardhan Singh6-Jul-07 1:23
Piyush Vardhan Singh6-Jul-07 1:23 
QuestionExport to Excel Problem [modified] Pin
Jay_se6-Jul-07 0:37
Jay_se6-Jul-07 0:37 
I used the below code to Export my gridview to excel. I have paging set to true. I am facing 2 problems. (1)Error: RegisterForEventValidation can only be called during Render(). This error got resolved when I turned the EventValidation to false. This could be a security risk. Can u help me with this? (2) After the 1st problem is resolved temporarily, the next problem is that the entire DataSet doesn't get exported. Only the current page gets exported. I need paging, so is there a way where I can get the entire DataSet which is bound to the gridview control exported to excel . Please help....Let me know if you need any of my code snippet. Thanks..

Response.Clear();
Response.AddHeader("content-disposition", "attachment;filename=Test.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()


I have got the Idea from here[^] for my Qn. #1

-- modified at 7:44 Friday 6th July, 2007

Jey
AnswerRe: Export to Excel Problem Pin
DKalepu6-Jul-07 0:53
DKalepu6-Jul-07 0:53 
GeneralRe: Export to Excel Problem Pin
Jay_se6-Jul-07 0:58
Jay_se6-Jul-07 0:58 
GeneralRe: Export to Excel Problem Pin
DKalepu6-Jul-07 1:00
DKalepu6-Jul-07 1:00 
GeneralRe: Export to Excel Problem Pin
Jay_se6-Jul-07 1:06
Jay_se6-Jul-07 1:06 
GeneralRe: Export to Excel Problem Pin
DKalepu6-Jul-07 1:09
DKalepu6-Jul-07 1:09 
QuestionRounding of double into whole number Pin
softengg1236-Jul-07 0:28
softengg1236-Jul-07 0:28 
AnswerRe: Rounding of double into whole number Pin
rah_sin6-Jul-07 0:44
professionalrah_sin6-Jul-07 0:44 
GeneralRe: Rounding of double into whole number Pin
softengg1236-Jul-07 1:05
softengg1236-Jul-07 1:05 
AnswerRe: Rounding of double into whole number Pin
softengg1236-Jul-07 1:44
softengg1236-Jul-07 1:44 
QuestionFlash Button Doesn't work Pin
Sarfaraj Ahmed6-Jul-07 0:28
Sarfaraj Ahmed6-Jul-07 0:28 
QuestionNavaneeth. web services Pin
Piyush Vardhan Singh5-Jul-07 23:49
Piyush Vardhan Singh5-Jul-07 23:49 
AnswerRe: Navaneeth. web services Pin
Sathesh Sakthivel5-Jul-07 23:54
Sathesh Sakthivel5-Jul-07 23:54 
GeneralRe: Navaneeth. web services Pin
Piyush Vardhan Singh6-Jul-07 0:09
Piyush Vardhan Singh6-Jul-07 0:09 
GeneralRe: Navaneeth. web services Pin
Sathesh Sakthivel6-Jul-07 0:10
Sathesh Sakthivel6-Jul-07 0:10 
AnswerRe: Navaneeth. web services Pin
Sylvester george6-Jul-07 0:10
Sylvester george6-Jul-07 0:10 
GeneralRe: Navaneeth. web services Pin
Sathesh Sakthivel6-Jul-07 0:17
Sathesh Sakthivel6-Jul-07 0:17 
GeneralRe: Navaneeth. web services Pin
Piyush Vardhan Singh6-Jul-07 0:36
Piyush Vardhan Singh6-Jul-07 0:36 

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.