473,382 Members | 1,349 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Msgbox to asp client?

I have inherited a VB.NET dll that I am using from common asp.

My problem is to get the messages from the dll to the Ie client, I can see the messages in the Eventlog on the IIS server so I know they are there, but how do I get them to show in IE?

The original code was:
MsgBox("Kunne ikke finde databasenavn udfra den angivne DSN: " & DSN)
I tried to change that to:

Result = MessageBox.Show("Kunne ikke finde databasenavn udfra den angivne DSN: " & DSN, "Fejl", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly, False)

But they still dont show up on the client, so how do I do that?

Thanks

Betina

Jul 21 '06 #1
10 2078
Keep in mind that the DLL runs server side so the message box is "shown"
server side (actually written in the log as it runs in a non interactive
context).

To show a message client side you have to send it to the browser in the
response (either as plain HTML or as a client side script that display this
in a message box).
The DLL could raise an exception to signal it has a problem.

In this particular case (looks like a technical error message), my personal
preference is rather to display a generic message to the user and to warn
the support team (after all the user won't be able to do anything else than
calling the support team if the DSN is not defined).

--
Patrice

"Betina Andersen" <by*@invalid.coma écrit dans le message de news:
OL**************@TK2MSFTNGP04.phx.gbl...
I have inherited a VB.NET dll that I am using from common asp.

My problem is to get the messages from the dll to the Ie client, I can see
the messages in the Eventlog on the IIS server so I know they are there, but
how do I get them to show in IE?

The original code was:
MsgBox("Kunne ikke finde databasenavn udfra den angivne DSN: " & DSN)
I tried to change that to:

Result = MessageBox.Show("Kunne ikke finde databasenavn udfra den angivne
DSN: " & DSN, "Fejl", MessageBoxButtons.OK, MessageBoxIcon.Error,
MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly,
False)

But they still dont show up on the client, so how do I do that?

Thanks

Betina
Jul 21 '06 #2
In order to use the same code for winforms and webforms one must not
use directly controls (labels, progressbars, textboxes) or msgboxes.

You can define an abract messenger which issue messages (ex: statusmsg,
errormsg, logmsg, etc ).
Depending on the context (winforms/webforms) you will bind the events
(or delegates) of the messenger to controls (winforms) or
to some kind of web output (response, labels on web forms, etc.) ...

I find very convenient this kind of mechanism, as it allows to use the
same code for winforms or webforms.
It separates clearly the program logic from the GUIs.

-tom

Betina Andersen ha scritto:
I have inherited a VB.NET dll that I am using from common asp.

My problem is to get the messages from the dll to the Ie client, I can see the messages in the Eventlog on the IIS server so I know they are there, but how do I get them to show in IE?

The original code was:
MsgBox("Kunne ikke finde databasenavn udfra den angivne DSN: " & DSN)
I tried to change that to:

Result = MessageBox.Show("Kunne ikke finde databasenavn udfra den angivne DSN: " & DSN, "Fejl", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly, False)

But they still dont show up on the client, so how do I do that?

Thanks

Betina

------=_NextPart_000_0006_01C6ACB4.CDF36910
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-Google-AttachSize: 1521

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=Arial size=2>I have inherited a VB.NET dll that I am using from
common asp.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>My problem is to get the messages from the dll to
the Ie client, I can see the messages in the Eventlog on the IIS server so I
know they are there, but how do I get them to show in IE?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>The original code was:</FONT></DIV>
<DIV><FONT face=Arial size=2>MsgBox("Kunne ikke finde databasenavn udfra den
angivne DSN: " &amp; DSN)</FONT></DIV>
<P><FONT face=Arial size=2>I tried to change that to:</FONT></P>
<P><FONT face=Arial size=2>Result = MessageBox.Show("Kunne ikke finde
databasenavn udfra den angivne DSN: " &amp; DSN, "Fejl", MessageBoxButtons.OK,
MessageBoxIcon.Error, MessageBoxDefaultButton.Button1,
MessageBoxOptions.DefaultDesktopOnly, False)</FONT></P>
<P><FONT face=Arial size=2>But they still dont show up on the client, so how do
I do that?</FONT></P>
<P><FONT face=Arial size=2></FONT>&nbsp;</P>
<P><FONT face=Arial size=2>Thanks </FONT></P>
<P><FONT face=Arial size=2>Betina</FONT></P></BODY></HTML>

------=_NextPart_000_0006_01C6ACB4.CDF36910--
Jul 21 '06 #3
So will I have to send the Response Object to my DLL and return it on error,
is that what you are saying?

Regards Betina

"Patrice" <sc****@chez.comskrev i en meddelelse
news:%2******************@TK2MSFTNGP05.phx.gbl...
Keep in mind that the DLL runs server side so the message box is "shown"
server side (actually written in the log as it runs in a non interactive
context).

To show a message client side you have to send it to the browser in the
response (either as plain HTML or as a client side script that display
this in a message box).
The DLL could raise an exception to signal it has a problem.

In this particular case (looks like a technical error message), my
personal preference is rather to display a generic message to the user and
to warn the support team (after all the user won't be able to do anything
else than calling the support team if the DSN is not defined).

--
Patrice

"Betina Andersen" <by*@invalid.coma écrit dans le message de news:
OL**************@TK2MSFTNGP04.phx.gbl...
I have inherited a VB.NET dll that I am using from common asp.

My problem is to get the messages from the dll to the Ie client, I can see
the messages in the Eventlog on the IIS server so I know they are there,
but how do I get them to show in IE?

The original code was:
MsgBox("Kunne ikke finde databasenavn udfra den angivne DSN: " & DSN)
I tried to change that to:

Result = MessageBox.Show("Kunne ikke finde databasenavn udfra den angivne
DSN: " & DSN, "Fejl", MessageBoxButtons.OK, MessageBoxIcon.Error,
MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly,
False)

But they still dont show up on the client, so how do I do that?

Thanks

Betina


Jul 24 '06 #4
I do not use controls in my DLL, the idea with a messenger sounds
interestering, but my problem is that I am not very good in .NET, so can you
supply an example?

Regards Betina

<to**************@uniroma1.itskrev i en meddelelse
news:11**********************@i3g2000cwc.googlegro ups.com...
In order to use the same code for winforms and webforms one must not
use directly controls (labels, progressbars, textboxes) or msgboxes.

You can define an abract messenger which issue messages (ex: statusmsg,
errormsg, logmsg, etc ).
Depending on the context (winforms/webforms) you will bind the events
(or delegates) of the messenger to controls (winforms) or
to some kind of web output (response, labels on web forms, etc.) ...

I find very convenient this kind of mechanism, as it allows to use the
same code for winforms or webforms.
It separates clearly the program logic from the GUIs.

-tom

Betina Andersen ha scritto:
>I have inherited a VB.NET dll that I am using from common asp.

My problem is to get the messages from the dll to the Ie client, I can
see the messages in the Eventlog on the IIS server so I know they are
there, but how do I get them to show in IE?

The original code was:
MsgBox("Kunne ikke finde databasenavn udfra den angivne DSN: " & DSN)
I tried to change that to:

Result = MessageBox.Show("Kunne ikke finde databasenavn udfra den angivne
DSN: " & DSN, "Fejl", MessageBoxButtons.OK, MessageBoxIcon.Error,
MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly,
False)

But they still dont show up on the client, so how do I do that?

Thanks

Betina

------=_NextPart_000_0006_01C6ACB4.CDF36910
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-Google-AttachSize: 1521

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=Arial size=2>I have inherited a VB.NET dll that I am
using from
common asp.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>My problem is to get the messages from the
dll to
the Ie client, I can see the messages in the Eventlog on the IIS server
so I
know they are there, but how do I get them to show in IE?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>The original code was:</FONT></DIV>
<DIV><FONT face=Arial size=2>MsgBox("Kunne ikke finde databasenavn udfra
den
angivne DSN: " &amp; DSN)</FONT></DIV>
<P><FONT face=Arial size=2>I tried to change that to:</FONT></P>
<P><FONT face=Arial size=2>Result = MessageBox.Show("Kunne ikke finde
databasenavn udfra den angivne DSN: " &amp; DSN, "Fejl",
MessageBoxButtons.OK,
MessageBoxIcon.Error, MessageBoxDefaultButton.Button1,
MessageBoxOptions.DefaultDesktopOnly, False)</FONT></P>
<P><FONT face=Arial size=2>But they still dont show up on the client, so
how do
I do that?</FONT></P>
<P><FONT face=Arial size=2></FONT>&nbsp;</P>
<P><FONT face=Arial size=2>Thanks </FONT></P>
<P><FONT face=Arial size=2>Betina</FONT></P></BODY></HTML>

------=_NextPart_000_0006_01C6ACB4.CDF36910--

Jul 24 '06 #5
I did send Response to my sub - then I used

Response.Write "Some message"
Response.Flush

But I cannot seem to get anything through to my client (IE) - what do I do
wrong?

Regard Betina

"Betina Andersen" <by*@invalid.comskrev i en meddelelse
news:eQ**************@TK2MSFTNGP05.phx.gbl...
So will I have to send the Response Object to my DLL and return it on
error, is that what you are saying?

Regards Betina

"Patrice" <sc****@chez.comskrev i en meddelelse
news:%2******************@TK2MSFTNGP05.phx.gbl...
>Keep in mind that the DLL runs server side so the message box is "shown"
server side (actually written in the log as it runs in a non interactive
context).

To show a message client side you have to send it to the browser in the
response (either as plain HTML or as a client side script that display
this in a message box).
The DLL could raise an exception to signal it has a problem.

In this particular case (looks like a technical error message), my
personal preference is rather to display a generic message to the user
and to warn the support team (after all the user won't be able to do
anything else than calling the support team if the DSN is not defined).

--
Patrice

"Betina Andersen" <by*@invalid.coma écrit dans le message de news:
OL**************@TK2MSFTNGP04.phx.gbl...
I have inherited a VB.NET dll that I am using from common asp.

My problem is to get the messages from the dll to the Ie client, I can
see the messages in the Eventlog on the IIS server so I know they are
there, but how do I get them to show in IE?

The original code was:
MsgBox("Kunne ikke finde databasenavn udfra den angivne DSN: " & DSN)
I tried to change that to:

Result = MessageBox.Show("Kunne ikke finde databasenavn udfra den angivne
DSN: " & DSN, "Fejl", MessageBoxButtons.OK, MessageBoxIcon.Error,
MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly,
False)

But they still dont show up on the client, so how do I do that?

Thanks

Betina



Jul 24 '06 #6
Betina,

The most easiest way for this is to create some labels on a panel that you
hide when don't need it.

One of the labels is your messagetext.

Cor

"Betina Andersen" <by*@invalid.comschreef in bericht
news:O9**************@TK2MSFTNGP05.phx.gbl...
>I did send Response to my sub - then I used

Response.Write "Some message"
Response.Flush

But I cannot seem to get anything through to my client (IE) - what do I do
wrong?

Regard Betina

"Betina Andersen" <by*@invalid.comskrev i en meddelelse
news:eQ**************@TK2MSFTNGP05.phx.gbl...
>So will I have to send the Response Object to my DLL and return it on
error, is that what you are saying?

Regards Betina

"Patrice" <sc****@chez.comskrev i en meddelelse
news:%2******************@TK2MSFTNGP05.phx.gbl. ..
>>Keep in mind that the DLL runs server side so the message box is "shown"
server side (actually written in the log as it runs in a non interactive
context).

To show a message client side you have to send it to the browser in the
response (either as plain HTML or as a client side script that display
this in a message box).
The DLL could raise an exception to signal it has a problem.

In this particular case (looks like a technical error message), my
personal preference is rather to display a generic message to the user
and to warn the support team (after all the user won't be able to do
anything else than calling the support team if the DSN is not defined).

--
Patrice

"Betina Andersen" <by*@invalid.coma écrit dans le message de news:
OL**************@TK2MSFTNGP04.phx.gbl...
I have inherited a VB.NET dll that I am using from common asp.

My problem is to get the messages from the dll to the Ie client, I can
see the messages in the Eventlog on the IIS server so I know they are
there, but how do I get them to show in IE?

The original code was:
MsgBox("Kunne ikke finde databasenavn udfra den angivne DSN: " & DSN)
I tried to change that to:

Result = MessageBox.Show("Kunne ikke finde databasenavn udfra den
angivne DSN: " & DSN, "Fejl", MessageBoxButtons.OK,
MessageBoxIcon.Error, MessageBoxDefaultButton.Button1,
MessageBoxOptions.DefaultDesktopOnly, False)

But they still dont show up on the client, so how do I do that?

Thanks

Betina




Jul 24 '06 #7
But how can I add a panel when I do not have a userinterface in the .NET
dll?

Regards Betina

"Cor Ligthert [MVP]" <no************@planet.nlskrev i en meddelelse
news:Ol**************@TK2MSFTNGP05.phx.gbl...
Betina,

The most easiest way for this is to create some labels on a panel that you
hide when don't need it.

One of the labels is your messagetext.

Cor

"Betina Andersen" <by*@invalid.comschreef in bericht
news:O9**************@TK2MSFTNGP05.phx.gbl...
>>I did send Response to my sub - then I used

Response.Write "Some message"
Response.Flush

But I cannot seem to get anything through to my client (IE) - what do I
do wrong?

Regard Betina

"Betina Andersen" <by*@invalid.comskrev i en meddelelse
news:eQ**************@TK2MSFTNGP05.phx.gbl...
>>So will I have to send the Response Object to my DLL and return it on
error, is that what you are saying?

Regards Betina

"Patrice" <sc****@chez.comskrev i en meddelelse
news:%2******************@TK2MSFTNGP05.phx.gbl.. .
Keep in mind that the DLL runs server side so the message box is
"shown" server side (actually written in the log as it runs in a non
interactive context).

To show a message client side you have to send it to the browser in the
response (either as plain HTML or as a client side script that display
this in a message box).
The DLL could raise an exception to signal it has a problem.

In this particular case (looks like a technical error message), my
personal preference is rather to display a generic message to the user
and to warn the support team (after all the user won't be able to do
anything else than calling the support team if the DSN is not defined).

--
Patrice

"Betina Andersen" <by*@invalid.coma écrit dans le message de news:
OL**************@TK2MSFTNGP04.phx.gbl...
I have inherited a VB.NET dll that I am using from common asp.

My problem is to get the messages from the dll to the Ie client, I can
see the messages in the Eventlog on the IIS server so I know they are
there, but how do I get them to show in IE?

The original code was:
MsgBox("Kunne ikke finde databasenavn udfra den angivne DSN: " & DSN)
I tried to change that to:

Result = MessageBox.Show("Kunne ikke finde databasenavn udfra den
angivne DSN: " & DSN, "Fejl", MessageBoxButtons.OK,
MessageBoxIcon.Error, MessageBoxDefaultButton.Button1,
MessageBoxOptions.DefaultDesktopOnly, False)

But they still dont show up on the client, so how do I do that?

Thanks

Betina




Jul 24 '06 #8
What is that Net.dll

The system.net?

Cor

"Betina Andersen" <by*@invalid.comschreef in bericht
news:%2****************@TK2MSFTNGP05.phx.gbl...
But how can I add a panel when I do not have a userinterface in the .NET
dll?

Regards Betina

"Cor Ligthert [MVP]" <no************@planet.nlskrev i en meddelelse
news:Ol**************@TK2MSFTNGP05.phx.gbl...
>Betina,

The most easiest way for this is to create some labels on a panel that
you hide when don't need it.

One of the labels is your messagetext.

Cor

"Betina Andersen" <by*@invalid.comschreef in bericht
news:O9**************@TK2MSFTNGP05.phx.gbl...
>>>I did send Response to my sub - then I used

Response.Write "Some message"
Response.Flush

But I cannot seem to get anything through to my client (IE) - what do I
do wrong?

Regard Betina

"Betina Andersen" <by*@invalid.comskrev i en meddelelse
news:eQ**************@TK2MSFTNGP05.phx.gbl...
So will I have to send the Response Object to my DLL and return it on
error, is that what you are saying?

Regards Betina

"Patrice" <sc****@chez.comskrev i en meddelelse
news:%2******************@TK2MSFTNGP05.phx.gbl. ..
Keep in mind that the DLL runs server side so the message box is
"shown" server side (actually written in the log as it runs in a non
interactive context).
>
To show a message client side you have to send it to the browser in
the response (either as plain HTML or as a client side script that
display this in a message box).
The DLL could raise an exception to signal it has a problem.
>
In this particular case (looks like a technical error message), my
personal preference is rather to display a generic message to the user
and to warn the support team (after all the user won't be able to do
anything else than calling the support team if the DSN is not
defined).
>
--
Patrice
>
"Betina Andersen" <by*@invalid.coma écrit dans le message de news:
OL**************@TK2MSFTNGP04.phx.gbl...
I have inherited a VB.NET dll that I am using from common asp.
>
My problem is to get the messages from the dll to the Ie client, I can
see the messages in the Eventlog on the IIS server so I know they are
there, but how do I get them to show in IE?
>
The original code was:
MsgBox("Kunne ikke finde databasenavn udfra den angivne DSN: " & DSN)
I tried to change that to:
>
Result = MessageBox.Show("Kunne ikke finde databasenavn udfra den
angivne DSN: " & DSN, "Fejl", MessageBoxButtons.OK,
MessageBoxIcon.Error, MessageBoxDefaultButton.Button1,
MessageBoxOptions.DefaultDesktopOnly, False)
>
But they still dont show up on the client, so how do I do that?
>
>
>
Thanks
>
Betina
>
>




Jul 24 '06 #9
I have a DLL written in VB:NET that DLL am I using from pure asp, the VB:NET
DLL consists of a lot og subs and functions which I call from my asp page.

Regards Betina

"Cor Ligthert [MVP]" <no************@planet.nlskrev i en meddelelse
news:uK**************@TK2MSFTNGP03.phx.gbl...
What is that Net.dll

The system.net?

Cor

"Betina Andersen" <by*@invalid.comschreef in bericht
news:%2****************@TK2MSFTNGP05.phx.gbl...
>But how can I add a panel when I do not have a userinterface in the .NET
dll?

Regards Betina

"Cor Ligthert [MVP]" <no************@planet.nlskrev i en meddelelse
news:Ol**************@TK2MSFTNGP05.phx.gbl...
>>Betina,

The most easiest way for this is to create some labels on a panel that
you hide when don't need it.

One of the labels is your messagetext.

Cor

"Betina Andersen" <by*@invalid.comschreef in bericht
news:O9**************@TK2MSFTNGP05.phx.gbl...
I did send Response to my sub - then I used

Response.Write "Some message"
Response.Flush

But I cannot seem to get anything through to my client (IE) - what do I
do wrong?

Regard Betina

"Betina Andersen" <by*@invalid.comskrev i en meddelelse
news:eQ**************@TK2MSFTNGP05.phx.gbl...
So will I have to send the Response Object to my DLL and return it on
error, is that what you are saying?
>
Regards Betina
>
"Patrice" <sc****@chez.comskrev i en meddelelse
news:%2******************@TK2MSFTNGP05.phx.gbl ...
>Keep in mind that the DLL runs server side so the message box is
>"shown" server side (actually written in the log as it runs in a non
>interactive context).
>>
>To show a message client side you have to send it to the browser in
>the response (either as plain HTML or as a client side script that
>display this in a message box).
>The DLL could raise an exception to signal it has a problem.
>>
>In this particular case (looks like a technical error message), my
>personal preference is rather to display a generic message to the
>user and to warn the support team (after all the user won't be able
>to do anything else than calling the support team if the DSN is not
>defined).
>>
>--
>Patrice
>>
>"Betina Andersen" <by*@invalid.coma écrit dans le message de news:
>OL**************@TK2MSFTNGP04.phx.gbl...
>I have inherited a VB.NET dll that I am using from common asp.
>>
>My problem is to get the messages from the dll to the Ie client, I
>can see the messages in the Eventlog on the IIS server so I know they
>are there, but how do I get them to show in IE?
>>
>The original code was:
>MsgBox("Kunne ikke finde databasenavn udfra den angivne DSN: " & DSN)
>I tried to change that to:
>>
>Result = MessageBox.Show("Kunne ikke finde databasenavn udfra den
>angivne DSN: " & DSN, "Fejl", MessageBoxButtons.OK,
>MessageBoxIcon.Error, MessageBoxDefaultButton.Button1,
>MessageBoxOptions.DefaultDesktopOnly, False)
>>
>But they still dont show up on the client, so how do I do that?
>>
>>
>>
>Thanks
>>
>Betina
>>
>>
>
>




Jul 24 '06 #10
Betina,

Than it is obvious that you cannot use it to let it direct reach a webpage,
which it does not even know.

You can of course throw an error and let that be catched when you are
calling your DLL in a try and catch block. Than you can show the error in
the way I wrote.

http://msdn2.microsoft.com/en-us/library/ty79csek.aspx

I hope this helps,

Cor

"Betina Andersen" <by*@invalid.comschreef in bericht
news:uL**************@TK2MSFTNGP03.phx.gbl...
>I have a DLL written in VB:NET that DLL am I using from pure asp, the
VB:NET DLL consists of a lot og subs and functions which I call from my asp
page.

Regards Betina

"Cor Ligthert [MVP]" <no************@planet.nlskrev i en meddelelse
news:uK**************@TK2MSFTNGP03.phx.gbl...
>What is that Net.dll

The system.net?

Cor

"Betina Andersen" <by*@invalid.comschreef in bericht
news:%2****************@TK2MSFTNGP05.phx.gbl...
>>But how can I add a panel when I do not have a userinterface in the .NET
dll?

Regards Betina

"Cor Ligthert [MVP]" <no************@planet.nlskrev i en meddelelse
news:Ol**************@TK2MSFTNGP05.phx.gbl...
Betina,

The most easiest way for this is to create some labels on a panel that
you hide when don't need it.

One of the labels is your messagetext.

Cor

"Betina Andersen" <by*@invalid.comschreef in bericht
news:O9**************@TK2MSFTNGP05.phx.gbl...
>I did send Response to my sub - then I used
>
Response.Write "Some message"
Response.Flush
>
But I cannot seem to get anything through to my client (IE) - what do
I do wrong?
>
Regard Betina
>
"Betina Andersen" <by*@invalid.comskrev i en meddelelse
news:eQ**************@TK2MSFTNGP05.phx.gbl.. .
>So will I have to send the Response Object to my DLL and return it on
>error, is that what you are saying?
>>
>Regards Betina
>>
>"Patrice" <sc****@chez.comskrev i en meddelelse
>news:%2******************@TK2MSFTNGP05.phx.gb l...
>>Keep in mind that the DLL runs server side so the message box is
>>"shown" server side (actually written in the log as it runs in a non
>>interactive context).
>>>
>>To show a message client side you have to send it to the browser in
>>the response (either as plain HTML or as a client side script that
>>display this in a message box).
>>The DLL could raise an exception to signal it has a problem.
>>>
>>In this particular case (looks like a technical error message), my
>>personal preference is rather to display a generic message to the
>>user and to warn the support team (after all the user won't be able
>>to do anything else than calling the support team if the DSN is not
>>defined).
>>>
>>--
>>Patrice
>>>
>>"Betina Andersen" <by*@invalid.coma écrit dans le message de news:
>>OL**************@TK2MSFTNGP04.phx.gbl...
>>I have inherited a VB.NET dll that I am using from common asp.
>>>
>>My problem is to get the messages from the dll to the Ie client, I
>>can see the messages in the Eventlog on the IIS server so I know
>>they are there, but how do I get them to show in IE?
>>>
>>The original code was:
>>MsgBox("Kunne ikke finde databasenavn udfra den angivne DSN: " &
>>DSN)
>>I tried to change that to:
>>>
>>Result = MessageBox.Show("Kunne ikke finde databasenavn udfra den
>>angivne DSN: " & DSN, "Fejl", MessageBoxButtons.OK,
>>MessageBoxIcon.Error, MessageBoxDefaultButton.Button1,
>>MessageBoxOptions.DefaultDesktopOnly, False)
>>>
>>But they still dont show up on the client, so how do I do that?
>>>
>>>
>>>
>>Thanks
>>>
>>Betina
>>>
>>>
>>
>>
>
>




Jul 24 '06 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Peter Bassett | last post by:
In my ASP script I call Javascript for a msgbox after the user has submitted the form of their resume information. I saw this example as a way to get a msgbox onto the client from ASP since server...
3
by: JT | last post by:
im trying to use the MsgBox function in the following to display an ASP MsgBox containing text retrieved from the db into a recordset <% set rsMessages= myRecordset msg_text =...
2
by: Jean Marie VIGNEAUD | last post by:
Hello, I would like to know if there is a Msgbox command on ASP langage which has the same fonctionality of the msgbox command with Access 97. Thanks for your help, Regards, Jean Marie.
1
by: Daryl Zavier | last post by:
Hi Guys, I'm really new to .Net development and need your advise on this. Recently I've completed a web application using VB.net (Visual Studio .Net 2003). In the application whenever the user...
4
by: Lakrom | last post by:
Hi to all, how to put msgbox in this asp page, this send me a message Denied permission: 'MsgBox' <% Set Conn=server.createobject("ADODB.connection") Conn.open application("StrConRuta") set rs =...
3
by: Asif Rahman | last post by:
Hi all! Please improve on the following code to make sure the record gets deleted only when the function returns false. Now I see the msgbox, but the record gets deleted no matter the user...
2
by: Chrysan | last post by:
I am writing a web application using asp.net(vb.net). And, I have an asp: button in the web form, I would like to prompt some message to user, when the user click on the asp:button. How to I do...
7
by: Bob L | last post by:
I've inserted a MsgBox in some VBScript on line 12 of an .asp page and get the following error: Microsoft VBScript runtime error '800a0046' Permission denied: 'MsgBox' /default.asp, line 12 ...
2
by: geter | last post by:
Hello, Im using ASP with VBScript. At some point of the code of the application that Im making some changes, I need to get a confirmation from the user if he wants or not to send a confirmation...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.