Click here to Skip to main content
15,894,539 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Connecting with mysql database Pin
Expert Coming16-Dec-08 17:15
Expert Coming16-Dec-08 17:15 
QuestionHijri calendar Pin
faizurrahman15-Dec-08 18:08
faizurrahman15-Dec-08 18:08 
AnswerRe: Hijri calendar Pin
Abhijit Jana16-Dec-08 3:09
professionalAbhijit Jana16-Dec-08 3:09 
QuestionPrinter is not Detecting Pin
Exelioindia15-Dec-08 1:02
Exelioindia15-Dec-08 1:02 
AnswerRe: Printer is not Detecting Pin
Expert Coming16-Dec-08 17:19
Expert Coming16-Dec-08 17:19 
QuestionGridview pagging Pin
Hemant Thaker14-Dec-08 23:51
Hemant Thaker14-Dec-08 23:51 
AnswerRe: Gridview pagging Pin
Paddy Boyd15-Dec-08 2:35
Paddy Boyd15-Dec-08 2:35 
QuestionIn a loop Pin
mhh1214-Dec-08 12:37
mhh1214-Dec-08 12:37 
Here is a simple question for everyone but me.
The purpose of this code is to send a feedback message to me, the webmaster.
The visual basic code is written on a code behind page for the page which has the blanks to fill in to send the webmaster feedback.
The code sends the message. However, it's ina loop. The Protected Sub Button1_click procedure starts, it does the SendMail procedure with no trouble, Does the end sub and then goes back to its beginning of Protected Sub Button1_click to send the message again. How do I get out of this loop?
Thank you for your help.

Imports System.Web.UI
Imports System
Imports System.Net
Imports System.Net.Mail
Imports System.Web.TraceContext


Partial Class Feedback
Inherits Page

Protected Sub Button1_click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim SenderName As String = TxtName.Text
Dim SendersEmail As String = TxtEmail.Text
Dim Subject As String = TextSubject.Text
Dim Message As String = TxtMessage.Text

SendMail(SenderName, SendersEmail, Subject, Message)

End Sub

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load


End Sub

Sub SendMail(ByVal SenderName As String, ByVal SendersEmail As String, ByVal Subject As String, ByVal Message As String)
AnswerRe: In a loop Pin
Paddy Boyd15-Dec-08 2:37
Paddy Boyd15-Dec-08 2:37 
GeneralRe: In a loop Pin
mhh1217-Dec-08 8:40
mhh1217-Dec-08 8:40 
GeneralRe: In a loop Pin
Paddy Boyd17-Dec-08 22:07
Paddy Boyd17-Dec-08 22:07 
GeneralRe: In a loop Pin
mhh1218-Dec-08 13:29
mhh1218-Dec-08 13:29 
QuestionParser Error Message: Recursive fallback not allowed for character \u003F. [modified] Pin
Aman Bhullar13-Dec-08 21:48
Aman Bhullar13-Dec-08 21:48 
AnswerRe: Parser Error Message: Recursive fallback not allowed for character \u003F. Pin
Ellen Dhawan26-Jan-09 1:04
Ellen Dhawan26-Jan-09 1:04 
GeneralRe: Parser Error Message: Recursive fallback not allowed for character \u003F. Pin
Aman Bhullar27-Jan-09 5:06
Aman Bhullar27-Jan-09 5:06 
GeneralRe: Parser Error Message: Recursive fallback not allowed for character \u003F. Pin
Ellen Dhawan27-Jan-09 9:35
Ellen Dhawan27-Jan-09 9:35 
Questionproblem to display Chinese in Apache-Tomcat server Pin
alexyxj13-Dec-08 7:18
alexyxj13-Dec-08 7:18 
AnswerRe: problem to display Chinese in Apache-Tomcat server Pin
Paddy Boyd15-Dec-08 2:38
Paddy Boyd15-Dec-08 2:38 
QuestionExport data to outlook calander Pin
nainakarri12-Dec-08 17:41
nainakarri12-Dec-08 17:41 
AnswerRe: Export data to outlook calander Pin
Abhijit Jana12-Dec-08 22:53
professionalAbhijit Jana12-Dec-08 22:53 
GeneralRe: Export data to outlook calander Pin
nainakarri12-Dec-08 23:58
nainakarri12-Dec-08 23:58 
GeneralRe: Export data to outlook calander Pin
Perspx12-Dec-08 23:31
Perspx12-Dec-08 23:31 
GeneralRe: Export data to outlook calander Pin
nainakarri13-Dec-08 0:06
nainakarri13-Dec-08 0:06 
AnswerRe: Export data to outlook calander Pin
Sandeep Mewara4-Jan-09 22:47
mveSandeep Mewara4-Jan-09 22:47 
QuestionUrlRewriting conflicts with Lightbox Pin
razing12-Dec-08 5:41
razing12-Dec-08 5:41 

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.