Click here to Skip to main content
15,904,494 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Password Blocking Pin
T M Gray25-Mar-10 8:29
T M Gray25-Mar-10 8:29 
GeneralRe: Password Blocking Pin
Pradeep kumar.V25-Mar-10 18:09
Pradeep kumar.V25-Mar-10 18:09 
QuestionJavascript printing question Pin
Jack Vanderhorst24-Mar-10 14:47
Jack Vanderhorst24-Mar-10 14:47 
AnswerRe: Javascript printing question Pin
Not Active24-Mar-10 15:17
mentorNot Active24-Mar-10 15:17 
GeneralRe: Javascript printing question Pin
Jack Vanderhorst24-Mar-10 15:19
Jack Vanderhorst24-Mar-10 15:19 
AnswerRe: Javascript printing question Pin
daveyerwin24-Mar-10 16:02
daveyerwin24-Mar-10 16:02 
GeneralRe: Javascript printing question Pin
Jack Vanderhorst24-Mar-10 16:03
Jack Vanderhorst24-Mar-10 16:03 
QuestionServer header-asp.net problem Pin
balu1234524-Mar-10 8:15
balu1234524-Mar-10 8:15 
Hi All,

In my Webpage i have a Button control.

On the button Click i have following functionalities

1.To show the "progress bar" Icon during retrieving data from Sqlserver Database..
2.After retrieving a Data from DB a csv report will be generated.



For Point 1--the below is the code i have used

Code snippet for busy Icon:

============================
Response.Write("<div ID='mydiv' STYLE='position:absolute;z-index:5000;top ;left ;width:100%;height:100%;'><table cellspacing='0' cellpadding='0' border='0' align='center'><tr><td class='copy' align='right' height='260'><img src='./processingimage.gif' width='0' align='absmiddle'></td></tr><tr><td class='copyblack' style='font-family:arial;font-size:14px' align='center'><img src='./processingimage.gif' border='0' align='absmiddle'><br><br>" + strBusyMessage + "<br>" + strReportCreteria + "</td></tr></table>")
Response.Write("&nbsp;")
Response.Write("</div>")
Response.Write("<script> var mydiv = document.getElementById('mydiv');</script>")
Response.Write("<script language=javascript>")
Response.Write("function StartShowWait(){mydiv.style.visibility ='visible';}")
Response.Write("function HideWait(){mydiv.style.visibility = 'hidden';}")
Response.Write("StartShowWait();</script>")
'Page.Session.Add("SessionID", Session.SessionID)
Response.Flush()
=================================

For point 2: please see the below code snippet

Code snippet to generate CSV report.

==================================================
Response.AddHeader("Content-Disposition", "attachment; filename=" + CSVName) Response.ContentType = "application/csv"
Response.Write(CSVContent)
Response.Flush()
Response.Close()
=====================================================
when coming to above mention code line(bold one in above snippet) i am getting the below error
"Server cannot append header after HTTP headers have been sent"


Please help me in resolving the above error.
AnswerRe: Server header-asp.net problem Pin
Martin Jarvis13-Apr-10 10:28
Martin Jarvis13-Apr-10 10:28 
QuestionCreating a html cookie Pin
esebagel24-Mar-10 6:28
esebagel24-Mar-10 6:28 
Questionbackground thread Pin
hb5213421424-Mar-10 6:26
hb5213421424-Mar-10 6:26 
QuestionTemplates in DW CS3 Pin
Razanust24-Mar-10 3:10
Razanust24-Mar-10 3:10 
AnswerRe: Templates in DW CS3 Pin
daveyerwin24-Mar-10 4:38
daveyerwin24-Mar-10 4:38 
QuestionBrowser Compatibility Issue? Pin
Razanust24-Mar-10 3:05
Razanust24-Mar-10 3:05 
AnswerRe: Browser Compatibility Issue? Pin
daveyerwin24-Mar-10 4:08
daveyerwin24-Mar-10 4:08 
QuestionJavascript IE 8 Issue Pin
salmonraju23-Mar-10 20:35
salmonraju23-Mar-10 20:35 
AnswerRe: Javascript IE 8 Issue Pin
daveyerwin24-Mar-10 2:59
daveyerwin24-Mar-10 2:59 
QuestionHow to pass form data to another form. Pin
esebagel23-Mar-10 9:28
esebagel23-Mar-10 9:28 
AnswerRe: How to pass form data to another form. Pin
Not Active23-Mar-10 9:38
mentorNot Active23-Mar-10 9:38 
GeneralRe: How to pass form data to another form. Pin
esebagel23-Mar-10 11:06
esebagel23-Mar-10 11:06 
GeneralRe: How to pass form data to another form. Pin
Not Active23-Mar-10 13:30
mentorNot Active23-Mar-10 13:30 
GeneralRe: How to pass form data to another form. Pin
esebagel24-Mar-10 2:14
esebagel24-Mar-10 2:14 
Questionhelp me .. need uplaod center! Pin
PHP_Guy23-Mar-10 8:35
PHP_Guy23-Mar-10 8:35 
AnswerRe: help me .. need uplaod center! Pin
Not Active23-Mar-10 9:13
mentorNot Active23-Mar-10 9:13 
AnswerRe: help me .. need uplaod center! Pin
Jayapal Chandran4-Apr-10 7:36
Jayapal Chandran4-Apr-10 7: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.