Click here to Skip to main content
15,911,030 members
Home / Discussions / C#
   

C#

 
QuestionAlert message script Pin
Member 120161066-Oct-15 15:31
Member 120161066-Oct-15 15:31 
AnswerRe: Alert message script Pin
Richard Andrew x646-Oct-15 16:22
professionalRichard Andrew x646-Oct-15 16:22 
GeneralRe: Alert message script Pin
Member 120161066-Oct-15 16:31
Member 120161066-Oct-15 16:31 
AnswerRe: Alert message script Pin
Richard Andrew x646-Oct-15 16:36
professionalRichard Andrew x646-Oct-15 16:36 
GeneralRe: Alert message script Pin
Member 120161066-Oct-15 16:53
Member 120161066-Oct-15 16:53 
AnswerRe: Alert message script Pin
Afzaal Ahmad Zeeshan6-Oct-15 22:12
professionalAfzaal Ahmad Zeeshan6-Oct-15 22:12 
GeneralRe: Alert message script Pin
Member 120161066-Oct-15 23:04
Member 120161066-Oct-15 23:04 
GeneralRe: Alert message script Pin
Afzaal Ahmad Zeeshan6-Oct-15 23:18
professionalAfzaal Ahmad Zeeshan6-Oct-15 23:18 
Only the language being used is C#, the framework that you are using is ASP.NET Web Forms. So, consider looking for an answer in ASP.NET Web Forms framework, not C#. In C# there are many ways to show a dialog,
C#
// .NET
new MessageBox("Hello").Show();

// Windows Runtime
new MessageDialog("Hello").ShowAsync();

// etc

The one you are looking for is ASP.NET based, which is for sure, alert('hello'). The thing is that you are sending the alert box to the client, do not do this. Alerts must be shown once the page has been loaded, in case if there is an error. Do not show a popup as soon as the page loads.

Try this:
  1. Send an ajax request to the web page, to find the files.
  2. Send a response, if that response fails
    • Show the alert box.
This way you will implement what you want, it would allow you to use plain-JavaScript to do this.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~

Generalabout backend Pin
bittuu6-Oct-15 8:51
bittuu6-Oct-15 8:51 
GeneralRe: about backend Pin
dlhale6-Oct-15 8:56
dlhale6-Oct-15 8:56 
GeneralRe: about backend Pin
Mycroft Holmes6-Oct-15 14:17
professionalMycroft Holmes6-Oct-15 14:17 
GeneralRe: about backend Pin
bittuu6-Oct-15 19:00
bittuu6-Oct-15 19:00 
QuestionWhat happen when use 2 timer on a form. Pin
LeHuuTien5-Oct-15 21:13
LeHuuTien5-Oct-15 21:13 
AnswerRe: What happen when use 2 timer on a form. Pin
Pete O'Hanlon5-Oct-15 21:29
mvePete O'Hanlon5-Oct-15 21:29 
QuestionMessage Removed Pin
5-Oct-15 6:49
professionalN_tro_P5-Oct-15 6:49 
AnswerRe: How to SET Geo Location Pin
Gerry Schmitz5-Oct-15 7:55
mveGerry Schmitz5-Oct-15 7:55 
GeneralMessage Removed Pin
5-Oct-15 8:13
professionalN_tro_P5-Oct-15 8:13 
GeneralRe: How to SET Geo Location Pin
Gerry Schmitz5-Oct-15 9:33
mveGerry Schmitz5-Oct-15 9:33 
GeneralMessage Removed Pin
5-Oct-15 9:37
professionalN_tro_P5-Oct-15 9:37 
GeneralRe: How to SET Geo Location Pin
Gerry Schmitz5-Oct-15 10:00
mveGerry Schmitz5-Oct-15 10:00 
GeneralMessage Removed Pin
5-Oct-15 11:54
professionalN_tro_P5-Oct-15 11:54 
GeneralRe: How to SET Geo Location Pin
Gerry Schmitz5-Oct-15 12:24
mveGerry Schmitz5-Oct-15 12:24 
Questionrecursive function to print data in the console in the output of a tree structure in c# Pin
darkyMats5-Oct-15 4:13
darkyMats5-Oct-15 4:13 
AnswerRe: recursive function to print data in the console in the output of a tree structure in c# Pin
CHill605-Oct-15 4:20
mveCHill605-Oct-15 4:20 
GeneralRe: recursive function to print data in the console in the output of a tree structure in c# Pin
darkyMats5-Oct-15 4:26
darkyMats5-Oct-15 4:26 

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.