Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MsgBox only showing in Ils test

Status
Not open for further replies.

hermanlaksko

Programmer
Aug 26, 2001
937
DK
This will not show the msg on screen - VB.net file called from vb code behind screen
Try
SMTP.Send(Mail)
Retry = True
Catch ex As Exception
If Not Retry Then
MsgBox("Failed to send email reply to _
" & Mail.To.ToString() & "."c, vbOKOnly, "Title")
MsgBox("Exception: " & ex.Message, vbOKOnly, "Title")
Exit Function
End If
Retry = False
Finally
Mail.Dispose()
End Try

This will - Placed as vb code behind screen:
BodyTxt = DC.ValidateFields(Request.Form("CoName"), Request.Form("email"))
If Len(BodyTxt) > 0 Then
Session("ErrText") = BodyTxt
MsgBox(BodyTxt, vbOKOnly, "Stemme")
Exit Sub
End If

Herman
Say no to macros
 
It's probably not Windows Forms App, right?
What type of project is it ?
 
Hi Mikrom

No its code in a .vb file.

What I am trying to do is to get the code to show a msg var. places in the code so I know how far it is running.
I have added msgbox's var places in the code (not shown above) like "Msgbox("Text 1")" etc. so it could tell me where it fails.

My problem is that sending a mail from from the screen is only working i a test enviroment but not on the web - sadly

Herman
Say no to macros
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top