Click here to Skip to main content
15,909,939 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: querystring in datalist template. + asp.net2.0 +c# Pin
regin29-May-07 0:23
regin29-May-07 0:23 
Questiongridview + javascripting Pin
ritu432128-May-07 20:38
ritu432128-May-07 20:38 
AnswerRe: gridview + javascripting Pin
Russell Jones28-May-07 21:13
Russell Jones28-May-07 21:13 
QuestionHow to get form id in javascript function? Pin
Guru_yogi28-May-07 20:23
Guru_yogi28-May-07 20:23 
AnswerRe: How to get form id in javascript function? Pin
Saifi Hasan28-May-07 23:22
Saifi Hasan28-May-07 23:22 
QuestionASP.NET Pin
.NET- India 28-May-07 20:20
.NET- India 28-May-07 20:20 
AnswerRe: ASP.NET Pin
N a v a n e e t h28-May-07 20:38
N a v a n e e t h28-May-07 20:38 
AnswerRe: ASP.NET Pin
Amit Sk Sharma28-May-07 21:21
Amit Sk Sharma28-May-07 21:21 
U can use following code block to creat the output in word file.where u'll need to use the name of control in place of CTRL below, which have data to send to output file.



Response.Clear()
Response.AddHeader("content-disposition", "attachment;filename=FileName.doc")
Response.Charset = ""
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Response.Buffer = True
Response.ContentType = "application/vnd.word"

Me.EnableViewState = False

Dim oStringWrtr As New System.IO.StringWriter
Dim oHTMLTxtWrtr As New System.Web.UI.HtmlTextWriter(oStringWrtr)

CTRL.RenderControl(oHTMLTxtWrtr)
Response.Write(oStringWrtr.ToString())
Response.End()


With Thanks & Regards
Amit Sk Sharma

AnswerRe: ASP.NET Pin
Christian Graus28-May-07 23:28
protectorChristian Graus28-May-07 23:28 
Questionhow to do update Pin
kvijayajyothy28-May-07 20:09
kvijayajyothy28-May-07 20:09 
AnswerRe: how to do update Pin
SimulationofSai28-May-07 20:13
SimulationofSai28-May-07 20:13 
QuestionAll Contents in page are not coming on print paper Pin
pjc*28-May-07 20:05
pjc*28-May-07 20:05 
AnswerRe: All Contents in page are not coming on print paper Pin
SimulationofSai28-May-07 20:10
SimulationofSai28-May-07 20:10 
QuestionType is not resolved for member - CSLA.Security.BusinessPrincipal Exception Pin
JagaSoft28-May-07 19:51
JagaSoft28-May-07 19:51 
Questionhow to access listbox items filled by javascript, on code behind Pin
Amit Sk Sharma28-May-07 19:48
Amit Sk Sharma28-May-07 19:48 
AnswerRe: how to access listbox items filled by javascript, on code behind Pin
ash0428-May-07 20:20
ash0428-May-07 20:20 
QuestionInvalid postback or callback argument. Event validation is enabled using in configuration ...... Pin
vijay258328-May-07 19:32
vijay258328-May-07 19:32 
Questiondynamic image button click event Pin
harithadotnet28-May-07 19:20
harithadotnet28-May-07 19:20 
AnswerRe: dynamic image button click event Pin
VenkataRamana.Gali28-May-07 20:07
VenkataRamana.Gali28-May-07 20:07 
Questionprofessional to expert books for asp.net Pin
Balaji.K28-May-07 19:17
Balaji.K28-May-07 19:17 
AnswerRe: professional to expert books for asp.net Pin
VenkataRamana.Gali28-May-07 19:27
VenkataRamana.Gali28-May-07 19:27 
AnswerRe: professional to expert books for asp.net Pin
Sandeep Akhare28-May-07 19:42
Sandeep Akhare28-May-07 19:42 
QuestionFetching Undelivered Mail From Outllook Through ASP.NET 2.0 Pin
varshavmane28-May-07 19:13
varshavmane28-May-07 19:13 
AnswerRe: Fetching Undelivered Mail From Outllook Through ASP.NET 2.0 Pin
Sandeep Akhare28-May-07 19:39
Sandeep Akhare28-May-07 19:39 
GeneralRe: Fetching Undelivered Mail From Outllook Through ASP.NET 2.0 Pin
varshavmane28-May-07 20:01
varshavmane28-May-07 20:01 

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.