Master page code
<%@ Master Language="VB" CodeFile="OtherPageMaster.master.vb" Inherits="Layout_OtherPageMaster" %>
<%@ Import Namespace="System.Net.Mail" %>
contact_us.apsx
<%@ Page Language="VB" MasterPageFile="~/Layout/OtherPageMaster.master" AutoEventWireup="false" CodeFile="contact_us.aspx.vb" Inherits="info_contact_us" title="Jemmc Softech Solutions | Contact Us" %>
<%@ Import Namespace="System.Net.Mail" %>
code behind
Partial Class info_contact_us
Inherits System.Web.UI.Page
Protected Sub cmdSend_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdSend.Click
'
lblNotice.Text = ""
txtGuestName.BackColor = Drawing.Color.White
txtGuestEmail.BackColor = Drawing.Color.White
'check empty field
If txtGuestName.Text = "" Then
'MsgBox("Your name is required")
txtGuestName.BackColor = Drawing.Color.Pink
lblNotice.Text = "Your NAME is reqiured"
txtGuestName.Focus()
Exit Sub
End If
If txtGuestEmail.Text = "" Then
txtGuestEmail.BackColor = Drawing.Color.Pink
lblNotice.Text = "Your EMAIL is reqiured"
txtGuestEmail.Focus()
Exit Sub
End If
'Create mail object
Dim Msg As Mail
End Sub
End Class

New Topic/Question
Reply




MultiQuote





|