MsgBox() Function
-
Is it right, that the MsgBox() function from asp.net 2.0 cannot be used to show a messageBox in the browser? It only works well on development systems, where server and browser are on the same system? If yes: sorry for my naivity. :-O, :-)) Plz treat this post seriously. PS. I know how to display on the browser, but I thought MsgBox() does this functionality for us per hidden script, like viewstate for example.
-
Is it right, that the MsgBox() function from asp.net 2.0 cannot be used to show a messageBox in the browser? It only works well on development systems, where server and browser are on the same system? If yes: sorry for my naivity. :-O, :-)) Plz treat this post seriously. PS. I know how to display on the browser, but I thought MsgBox() does this functionality for us per hidden script, like viewstate for example.
wilf57 wrote:
MsgBox() function from asp.net 2.0
There is no such thing. MsgBox is a hangover from VB6, in VB.NET, in WinForms. It has nothing to do with ASP.NET.
wilf57 wrote:
It only works well on development systems, where server and browser are on the same system?
Correct, because it runs on the server. You can't do stuff like that in C# or VB.NET and have them appear on the client. You need instead to use the alert function, which is a javascript API and thus can run on the client ( so you need to inject javascript into your page, so it appears on the client )
wilf57 wrote:
but I thought MsgBox() does this functionality for us per hidden script
No.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )