Click here to Skip to main content
15,895,370 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: writing in texbox thru coding is a problem Pin
RepliCrux18-Jun-07 19:43
RepliCrux18-Jun-07 19:43 
GeneralRe: writing in texbox thru coding is a problem Pin
Hemant Garg18-Jun-07 19:50
Hemant Garg18-Jun-07 19:50 
GeneralRe: writing in texbox thru coding is a problem Pin
RepliCrux18-Jun-07 19:56
RepliCrux18-Jun-07 19:56 
AnswerRe: writing in texbox thru coding is a problem Pin
N a v a n e e t h18-Jun-07 19:53
N a v a n e e t h18-Jun-07 19:53 
AnswerRe: writing in texbox thru coding is a problem Pin
Sathesh Sakthivel18-Jun-07 19:54
Sathesh Sakthivel18-Jun-07 19:54 
AnswerRe: writing in texbox thru coding is a problem Pin
Venkatesh Mookkan18-Jun-07 20:13
Venkatesh Mookkan18-Jun-07 20:13 
AnswerRe: writing in texbox thru coding is a problem Pin
Sylvester george18-Jun-07 23:25
Sylvester george18-Jun-07 23:25 
QuestionResponse from Class Library Pin
jain.ashish2118-Jun-07 19:21
jain.ashish2118-Jun-07 19:21 
I have a web project which writes something in a Response object and displays to the user in an excel file. The code looks like:

<br />
Response.Clear();<br />
Response.ContentType = "application/vnd.ms-excel";<br />
Response.Charset = "";<br />
Response.AddHeader("content-disposition", "attachment; filename=abc.xls");<br />
this.EnableViewState = false;<br />
<br />
XmlTextWriter xml = new XmlTextWriter(Response.OutputStream, Encoding.UTF8);<br />
<br />
//Code to write something to XMLTextwriter object.<br />
...<br />
...<br />
...<br />
...<br />
<br />
Response.Flush();<br />
Response.End();<br />


When I try to run this code it runs perfectly. But when I try to excapsulate it in a Class Library, it says Response object cannot be used in the context. True, I understand. But then is there a way I can response the following in memory text to user to display excel.

If my mind can conceive it, and my heart can believe it, I know I can achieve it.

AnswerRe: Response from Class Library Pin
Not Active18-Jun-07 19:28
mentorNot Active18-Jun-07 19:28 
GeneralRe: Response from Class Library Pin
jain.ashish2118-Jun-07 20:14
jain.ashish2118-Jun-07 20:14 
AnswerRe: Response from Class Library Pin
Venkatesh Mookkan18-Jun-07 19:33
Venkatesh Mookkan18-Jun-07 19:33 
GeneralRe: Response from Class Library Pin
Not Active19-Jun-07 1:59
mentorNot Active19-Jun-07 1:59 
QuestionHow to add Controls to Gridview at runtime Pin
raju124818-Jun-07 19:18
raju124818-Jun-07 19:18 
AnswerRe: Please Help Me Pin
Sathesh Sakthivel18-Jun-07 19:21
Sathesh Sakthivel18-Jun-07 19:21 
GeneralRe: Please Help Me Pin
raju124818-Jun-07 19:48
raju124818-Jun-07 19:48 
GeneralRe: Please Help Me Pin
Sathesh Sakthivel18-Jun-07 19:50
Sathesh Sakthivel18-Jun-07 19:50 
AnswerRe: Please Help Me Pin
RepliCrux18-Jun-07 19:35
RepliCrux18-Jun-07 19:35 
GeneralRe: How to add controls to gridview at runtime Pin
Sathesh Sakthivel18-Jun-07 19:49
Sathesh Sakthivel18-Jun-07 19:49 
QuestionWriting in textbox thru coding [modified] Pin
Hemant Garg18-Jun-07 19:15
Hemant Garg18-Jun-07 19:15 
AnswerRe: Writing in textbox thru coding Pin
Not Active18-Jun-07 19:24
mentorNot Active18-Jun-07 19:24 
GeneralRe: Writing in textbox thru coding [modified] Pin
Hemant Garg18-Jun-07 19:29
Hemant Garg18-Jun-07 19:29 
GeneralRe: Writing in textbox thru coding Pin
Not Active19-Jun-07 2:00
mentorNot Active19-Jun-07 2:00 
QuestionUploading of a file to web server Pin
sudidelaravindra18-Jun-07 19:15
sudidelaravindra18-Jun-07 19:15 
QuestionHow to end Cookie's Session? Pin
vijay_8318-Jun-07 19:03
vijay_8318-Jun-07 19:03 
AnswerRe: How to end Cookie's Session? Pin
manojch218-Jun-07 19:18
manojch218-Jun-07 19:18 

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.