Click here to Skip to main content
15,905,785 members
Home / Discussions / C#
   

C#

 
QuestionWindows 'flash' event Pin
Eduard Keilholz19-Aug-07 19:56
Eduard Keilholz19-Aug-07 19:56 
QuestionForeach statement Pin
T4AMD19-Aug-07 19:19
T4AMD19-Aug-07 19:19 
AnswerRe: Foreach statement Pin
Eduard Keilholz19-Aug-07 19:50
Eduard Keilholz19-Aug-07 19:50 
QuestionRe: Foreach statement Pin
T4AMD19-Aug-07 20:21
T4AMD19-Aug-07 20:21 
AnswerRe: Foreach statement Pin
Eduard Keilholz19-Aug-07 20:34
Eduard Keilholz19-Aug-07 20:34 
QuestionRe: Foreach statement Pin
T4AMD19-Aug-07 21:40
T4AMD19-Aug-07 21:40 
AnswerRe: Foreach statement Pin
Colin Angus Mackay19-Aug-07 22:30
Colin Angus Mackay19-Aug-07 22:30 
Questiongdtwain Pin
chehreghany19-Aug-07 18:50
chehreghany19-Aug-07 18:50 
QuestionQuestion about Maskedtextbox Pin
cyhsu99919-Aug-07 12:59
cyhsu99919-Aug-07 12:59 
AnswerRe: Question about Maskedtextbox Pin
Rocky#19-Aug-07 21:27
Rocky#19-Aug-07 21:27 
GeneralRe: Question about Maskedtextbox Pin
cyhsu99919-Aug-07 22:15
cyhsu99919-Aug-07 22:15 
Questiondrawing with GDI+ on top of controls Pin
JVilmaire19-Aug-07 11:39
JVilmaire19-Aug-07 11:39 
AnswerRe: drawing with GDI+ on top of controls Pin
Christian Graus19-Aug-07 11:48
protectorChristian Graus19-Aug-07 11:48 
GeneralRe: drawing with GDI+ on top of controls Pin
JVilmaire19-Aug-07 11:54
JVilmaire19-Aug-07 11:54 
GeneralRe: drawing with GDI+ on top of controls Pin
Luc Pattyn19-Aug-07 12:23
sitebuilderLuc Pattyn19-Aug-07 12:23 
GeneralRe: drawing with GDI+ on top of controls Pin
JVilmaire19-Aug-07 15:27
JVilmaire19-Aug-07 15:27 
GeneralRe: drawing with GDI+ on top of controls Pin
Dave Kreskowiak19-Aug-07 15:42
mveDave Kreskowiak19-Aug-07 15:42 
QuestionHow to process a ms-word Doc? Pin
moomoori19-Aug-07 10:56
moomoori19-Aug-07 10:56 
AnswerRe: How to process a ms-word Doc? Pin
Luc Pattyn19-Aug-07 11:01
sitebuilderLuc Pattyn19-Aug-07 11:01 
AnswerRe: How to process a ms-word Doc? Pin
Christian Graus19-Aug-07 11:25
protectorChristian Graus19-Aug-07 11:25 
AnswerRe: How to process a ms-word Doc? Pin
originSH19-Aug-07 22:19
originSH19-Aug-07 22:19 
AnswerRe: How to process a ms-word Doc? Pin
moomoori20-Aug-07 12:24
moomoori20-Aug-07 12:24 
Questiondeleting items from listbox with DEL Pin
mizitras19-Aug-07 10:53
mizitras19-Aug-07 10:53 
AnswerRe: deleting items from listbox with DEL Pin
Luc Pattyn19-Aug-07 10:59
sitebuilderLuc Pattyn19-Aug-07 10:59 
QuestionMOVED TO ASP.NET FORUM [modified] Pin
Malcolm Smart19-Aug-07 10:52
Malcolm Smart19-Aug-07 10:52 
I can't delete it as it has been answered....

Hi - gone totally blank on this, up against the clock, and hoping somebody can patronisingly explain this one...

I have a Button on a webpage, which when clicked, generates a word doc, via automation, and saves it to a share. All done server side. Code simlar to the following (which doesn't work):-
protected void OnGenerateDoc( object sender , EventArgs args )
{
  MyDocGen gen = new MyDocGen();
  gen.CreateDocAndSaveHere(@"\\publicserver\publicshare\wellknownfilename.doc");
  //code above works, code below does b****r all.
 (HttpContext.Current.CurrentHandler as Page).ClientScript.RegisterClientScriptBlock(this.GetType()
, "myScriptKey", "alert('your document is ready');");
}


The alert command should be any javascript function that can be called. I just want it called when my stuff is complete. Any ideas? This is all in a custom control, in a DLL , hence the long winded way to get to the ClientScript. Is this the correct way of getting a reference to the page?

Last modified: 54mins after originally posted --


"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF


"I haven't spoken to my wife now for 48 hours. I don't like to interrupt her.

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.