Click here to Skip to main content
15,914,943 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionCreate and Download CSV file in asp.net Pin
HatakeKaKaShi19-Aug-07 16:40
HatakeKaKaShi19-Aug-07 16:40 
AnswerRe: Create and Download CSV file in asp.net Pin
Christian Graus19-Aug-07 16:56
protectorChristian Graus19-Aug-07 16:56 
GeneralRe: Create and Download CSV file in asp.net Pin
HatakeKaKaShi19-Aug-07 17:18
HatakeKaKaShi19-Aug-07 17:18 
Questionneed help on Image control in the datalist Pin
hurrem19-Aug-07 15:25
hurrem19-Aug-07 15:25 
AnswerRe: need help on Image control in the datalist Pin
Rama Krishna Vavilala19-Aug-07 15:32
Rama Krishna Vavilala19-Aug-07 15:32 
GeneralRe: need help on Image control in the datalist Pin
hurrem19-Aug-07 15:56
hurrem19-Aug-07 15:56 
QuestionGoDaddy Email problem [modified] Pin
John Andrew19-Aug-07 13:31
John Andrew19-Aug-07 13:31 
GeneralCalling ClientSide Script 'after' handling server side [modified] Pin
Malcolm Smart19-Aug-07 11:58
Malcolm Smart19-Aug-07 11:58 
Hi - gone totally blank on this, up against the clock, and hoping somebody can patronisingly explain this...

I have a Button on a webpage, which when clicked, generates a word doc, via automation, and saves it to a share, and then 'should' call a client side script (to do some really secret stuff!). My code (C#) is similar 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');" , true);
}



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: 1hr 21mins after originally posted --



GeneralRe: Calling ClientSide Script 'after' handling server side Pin
Fred_Smith19-Aug-07 12:45
Fred_Smith19-Aug-07 12:45 
GeneralRe: Calling ClientSide Script 'after' handling server side Pin
Malcolm Smart19-Aug-07 13:31
Malcolm Smart19-Aug-07 13:31 
QuestionHow to call javascript function from aspx page Pin
beish119-Aug-07 7:36
beish119-Aug-07 7:36 
AnswerRe: How to call javascript function from aspx page Pin
Bassam Saoud19-Aug-07 7:52
Bassam Saoud19-Aug-07 7:52 
GeneralRe: How to call javascript function from aspx page Pin
beish119-Aug-07 13:02
beish119-Aug-07 13:02 
GeneralRe: How to call javascript function from aspx page Pin
Christian Graus19-Aug-07 13:17
protectorChristian Graus19-Aug-07 13:17 
GeneralRe: How to call javascript function from aspx page Pin
beish119-Aug-07 13:50
beish119-Aug-07 13:50 
GeneralRe: How to call javascript function from aspx page Pin
beish119-Aug-07 14:01
beish119-Aug-07 14:01 
QuestionNeed Suggestions before starting... Pin
just3ala219-Aug-07 4:11
just3ala219-Aug-07 4:11 
AnswerRe: Need Suggestions before starting... Pin
Not Active19-Aug-07 5:09
mentorNot Active19-Aug-07 5:09 
Questiondrag and drop element with javascript !!!!!!!!!!!! Pin
mr.mohsen19-Aug-07 3:37
mr.mohsen19-Aug-07 3:37 
AnswerRe: drag and drop element with javascript !!!!!!!!!!!! Pin
Michael Sync19-Aug-07 4:59
Michael Sync19-Aug-07 4:59 
AnswerRe: drag and drop element with javascript !!!!!!!!!!!! Pin
Not Active19-Aug-07 5:00
mentorNot Active19-Aug-07 5:00 
QuestionDataList Edit and Update please help very urgent.. Pin
bijeshputhalath19-Aug-07 1:32
bijeshputhalath19-Aug-07 1:32 
AnswerRe: DataList Edit and Update please help very urgent.. [modified] Pin
John-ph19-Aug-07 4:51
John-ph19-Aug-07 4:51 
AnswerRe: DataList Edit and Update please help very urgent.. Pin
Michael Sync19-Aug-07 4:53
Michael Sync19-Aug-07 4:53 
QuestionHttpWebRequest in medium trust Pin
daniel__c18-Aug-07 21:40
daniel__c18-Aug-07 21:40 

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.