Click here to Skip to main content
15,896,269 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Masterpage and Content page Pin
minhpc_bk11-Oct-06 16:19
minhpc_bk11-Oct-06 16:19 
GeneralRe: Masterpage and Content page Pin
Ken.A11-Oct-06 23:51
Ken.A11-Oct-06 23:51 
Questiondisplay image in asp image control Pin
saravanan0510-Oct-06 12:07
saravanan0510-Oct-06 12:07 
AnswerRe: display image in asp image control Pin
minhpc_bk10-Oct-06 15:09
minhpc_bk10-Oct-06 15:09 
QuestionUsing MS Access database with medium trust level Pin
Fedor Hajdu10-Oct-06 10:05
professionalFedor Hajdu10-Oct-06 10:05 
AnswerRe: Using MS Access database with medium trust level Pin
minhpc_bk10-Oct-06 15:12
minhpc_bk10-Oct-06 15:12 
GeneralRe: Using MS Access database with medium trust level Pin
Fedor Hajdu11-Oct-06 8:34
professionalFedor Hajdu11-Oct-06 8:34 
QuestionExport GridView to Word Pin
RadioButton10-Oct-06 9:55
RadioButton10-Oct-06 9:55 
Hello,

I am using the basic export to Word code for my GridView below. I am trying to figure out how to remove the hidden input field that gets added to the output from the StringWriter.

Response.Clear();
Response.AddHeader("content-disposition", "attachment;filename=TheFile" + FileDateTime("doc"));
Response.Buffer = true;
Response.ContentType = "application/vnd.word";
Response.Charset = "";
this.EnableViewState = false;

System.IO.StringWriter oStringWriter = new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter oHtmlTextWriter = new System.Web.UI.HtmlTextWriter(oStringWriter);
HtmlForm fakeForm = new HtmlForm();
this.Controls.Add(fakeForm);
fakeForm.Controls.Add(gvMine);
fakeForm.RenderControl(oHtmlTextWriter);
Response.Write(oStringWriter.ToString());

Thanks for the help.
RB
AnswerRe: Export GridView to Word Pin
minhpc_bk10-Oct-06 15:17
minhpc_bk10-Oct-06 15:17 
QuestionRadio Button in a Repeater Question...Urgent! Pin
just3ala210-Oct-06 8:37
just3ala210-Oct-06 8:37 
AnswerRe: Radio Button in a Repeater Question... Pin
minhpc_bk10-Oct-06 15:21
minhpc_bk10-Oct-06 15:21 
GeneralRe: Radio Button in a Repeater Question... Pin
just3ala210-Oct-06 19:48
just3ala210-Oct-06 19:48 
GeneralRe: Radio Button in a Repeater Question... Pin
minhpc_bk10-Oct-06 20:04
minhpc_bk10-Oct-06 20:04 
GeneralRe: Radio Button in a Repeater Question... Pin
just3ala210-Oct-06 20:32
just3ala210-Oct-06 20:32 
GeneralRe: Radio Button in a Repeater Question... Pin
minhpc_bk10-Oct-06 21:53
minhpc_bk10-Oct-06 21:53 
GeneralRe: Radio Button in a Repeater Question... Pin
just3ala211-Oct-06 0:15
just3ala211-Oct-06 0:15 
GeneralRe: Radio Button in a Repeater Question... Pin
minhpc_bk11-Oct-06 2:00
minhpc_bk11-Oct-06 2:00 
GeneralRe: Radio Button in a Repeater Question... [modified] Pin
just3ala211-Oct-06 2:26
just3ala211-Oct-06 2:26 
GeneralRe: Radio Button in a Repeater Question... Pin
minhpc_bk11-Oct-06 2:46
minhpc_bk11-Oct-06 2:46 
GeneralRe: Radio Button in a Repeater Question... Pin
just3ala211-Oct-06 3:02
just3ala211-Oct-06 3:02 
GeneralRe: Radio Button in a Repeater Question... Pin
minhpc_bk11-Oct-06 16:56
minhpc_bk11-Oct-06 16:56 
GeneralRe: Radio Button in a Repeater Question... Pin
just3ala211-Oct-06 20:52
just3ala211-Oct-06 20:52 
GeneralRe: Radio Button in a Repeater Question... Pin
minhpc_bk12-Oct-06 0:51
minhpc_bk12-Oct-06 0:51 
GeneralRe: Radio Button in a Repeater Question... Pin
just3ala212-Oct-06 4:29
just3ala212-Oct-06 4:29 
GeneralRe: Radio Button in a Repeater Question... Pin
minhpc_bk12-Oct-06 15:11
minhpc_bk12-Oct-06 15:11 

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.