Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Displaying Alert window with javascript
Message
 
 
À
05/03/2005 06:49:15
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00992762
Message ID:
00993429
Vues:
13
Cetin,

Your suggestion put the ";" at the end didn't help. But I know now
what causes the problem (even though I don't understand why).
At the end of that page code I have a statement
Response.Redirect( "mypage.aspx", true );
Which does not let the Alert to show up, unless you put Return after
the Alert. Maybe I am thinking more like VFP, if you put a modal
message box (which Alert is, right), the code execution should stop
here, until user clicks Ok. But I guess in ASP.NET it does not
work that way.


>Dmitry,
>You're using javascript which like C,C# needs ; as statement end.
>
>Response.Write(@"<SCRIPT  language=javascript>alert(""Coffee is ready"");</SCRIPT>");
>
>Cetin
>
>>I want to place an alert window and then, once user clicks ok, continue with the code.
>>
>>Here is my code of the alert window:
>>
>>
>>// come code goes here
>>Response.Write(@"<SCRIPT  language=javascript>alert(""Coffee is ready"")</SCRIPT>");
>>// continue with the code ...
>>
>>
>>But the only way I see this message if I put
>>
>>
return;
>>after it.
>>
>>If "return" is not there, the alert window never shows.
>>
>>Any suggestions? Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform