Click here to Skip to main content
15,922,533 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Web services : The request failed with an empty response. Pin
Guffa9-Aug-07 0:57
Guffa9-Aug-07 0:57 
QuestionExport into Excel from GridView Pin
John.L.Ponratnam8-Aug-07 2:48
John.L.Ponratnam8-Aug-07 2:48 
I tried to generate report in Excel from Grid View using this Code in a Button Click:
Response.Clear();
Response.AddHeader("content-isposition", "attachment;filename=FileName.xls");
Response.Charset = "";
Response.ContentType = "application/vnd.xls";
System.IO.StringWriter StringWriter = new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter HtmlTextriter = new System.Web.UI.HtmlTextWriter(StringWriter);
GridView1.RenderControl(HtmlTextriter);
Response.Write(StringWriter.ToString());
Response.End();

But I get the error specifying:
System.Web.HttpException: Control 'ctl00_ContentPlaceHolder1_GridView1' of type 'GridView' must be placed inside a form tag with runat=server.

Can anyone help me to solve this problem

Regards,
LEE

AnswerRe: Export into Excel from GridView Pin
Member 173345212-Apr-10 1:56
Member 173345212-Apr-10 1:56 
QuestionHtml to database Pin
A.Muthunagai7-Aug-07 23:44
A.Muthunagai7-Aug-07 23:44 
AnswerRe: Html to database Pin
Vasudevan Deepak Kumar8-Aug-07 5:18
Vasudevan Deepak Kumar8-Aug-07 5:18 
Questionweb counter and chat Pin
michael_jhons7-Aug-07 23:39
michael_jhons7-Aug-07 23:39 
AnswerRe: web counter and chat Pin
Vasudevan Deepak Kumar8-Aug-07 5:16
Vasudevan Deepak Kumar8-Aug-07 5:16 
Questiononly horizontal scroll bar needed Pin
hkchauhan7-Aug-07 22:35
hkchauhan7-Aug-07 22:35 
GeneralRe: only horizontal scroll bar needed Pin
Guffa9-Aug-07 15:10
Guffa9-Aug-07 15:10 
Questionvisual studio can not open the application Pin
avinol7-Aug-07 22:20
avinol7-Aug-07 22:20 
QuestionHow to hack website Pin
pentecostal17-Aug-07 16:30
pentecostal17-Aug-07 16:30 
AnswerRe: How to hack website Pin
Mikeyyy7-Aug-07 17:15
Mikeyyy7-Aug-07 17:15 
AnswerRe: How to hack website Pin
Vasudevan Deepak Kumar7-Aug-07 23:31
Vasudevan Deepak Kumar7-Aug-07 23:31 
AnswerRe: How to hack website Pin
#realJSOP8-Aug-07 0:01
professional#realJSOP8-Aug-07 0:01 
AnswerRe: How to hack website Pin
scottgp8-Aug-07 3:51
professionalscottgp8-Aug-07 3:51 
AnswerRe: How to hack website Pin
leckey8-Aug-07 10:29
leckey8-Aug-07 10:29 
AnswerRe: How to hack website Pin
JimmyRopes8-Aug-07 17:51
professionalJimmyRopes8-Aug-07 17:51 
AnswerRe: How to hack website Pin
ktm TechMan8-Aug-07 23:52
ktm TechMan8-Aug-07 23:52 
QuestionResizing images retrieved from DB Pin
bryterlayter7-Aug-07 12:15
bryterlayter7-Aug-07 12:15 
AnswerRe: Resizing images retrieved from DB Pin
#realJSOP8-Aug-07 0:06
professional#realJSOP8-Aug-07 0:06 
QuestionWhy XML soap is fast Pin
dotnet3337-Aug-07 7:02
dotnet3337-Aug-07 7:02 
Questionwindow.document.thisForm.submit() Pin
ThaScorpion7-Aug-07 5:49
ThaScorpion7-Aug-07 5:49 
AnswerRe: window.document.thisForm.submit() Pin
JimmyRopes7-Aug-07 5:54
professionalJimmyRopes7-Aug-07 5:54 
GeneralRe: window.document.thisForm.submit() Pin
ThaScorpion7-Aug-07 6:07
ThaScorpion7-Aug-07 6:07 
AnswerRe: window.document.thisForm.submit() Pin
ThaScorpion8-Aug-07 3:24
ThaScorpion8-Aug-07 3:24 

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.