Skip to content

Вэбээс хэрэглэгчийн хvсэлтийг мэйл рvv илгээх

December 19, 2006

file.aspx
<%@ Page Language=”VB” AutoEventWireup=”false” CodeFile=”Registration.aspx.vb” Inherits=”Registration” %>
<html>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
<title>Untitled Document</title>
</head>
<body>
 <form id=”form1″ runat=”server”>
<asp:TextBox cssclass=”textinput”  ID=”name” runat=”server”></asp:TextBox>
<asp:TextBox cssclass=”textinput”  ID=”position” runat=”server”></asp:TextBox>
<asp:TextBox cssclass=”textarea”  ID=”address” runat=”server” Columns=”50″ Rows=”10″ TextMode=”MultiLine”>
<asp:Button ID=”RegisterBtn” CssClass=”buttonSubmit” text=”Register” runat=”server” OnClick=”RegisterBtn_Click”/>   
<input name=”reset” type=”reset” class=”buttonSubmit” value=”Reset” />       
</body>
</html>

/************************ Registration.aspx.vb *********************/

Imports System.Web.Mail
Partial Class Registration
    Inherits System.Web.UI.Page

    Protected Sub RegisterBtn_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles RegisterBtn.Click
        Dim title As String = “”
        Dim objMail As New MailMessage
        Dim mailFormat As New MailFormat
        objMail.From = “bolor2006@gmail.com
        objMail.To = “bolor2006@gmail.com
        objMail.Subject = “Message title”
        objMail.BodyFormat = Mail.MailFormat.Html
        Dim body As String

        body = “<table border=1 style=’border-collapse:collapse’ cellspacing=3<tr><td>Name: </td><td>” + name.Text + _
               “</td></tr><tr><td>Position: </td><td>” + position.Text + _
               “</td></tr><tr><td>Address: </td><td>” + address.Text + _”</td></tr></table>”
        objMail.Body = body
        SmtpMail.SmtpServer = “localhost”
        SmtpMail.Send(objMail)
        thankyou.Text = “Thank you for registering. ”
    End Sub
End Class

/********************* web config *******************************/
<?xml version=”1.0″?>
<!–
    Note: As an alternative to hand editing this file you can use the
    web admin tool to configure settings for your application. Use
    the Website->Asp.Net Configuration option in Visual Studio.
    A full list of settings and comments can be found in
    machine.config.comments usually located in
    \Windows\Microsoft.Net\Framework\v2.x\Config
–>
<configuration>
 <appSettings/>
 <connectionStrings/>
 <system.web>
  <!–
            Set compilation debug=”true” to insert debugging
            symbols into the compiled page. Because this
            affects performance, set this value to true only
            during development.

            Visual Basic options:
            Set strict=”true” to disallow all data type conversions
            where data loss can occur.
            Set explicit=”true” to force declaration of all variables.
        –>
  <compilation debug=”true” strict=”false” explicit=”true”/>
  <pages>
   <namespaces>
    <clear/>
    <add namespace=”System”/>
    <add namespace=”System.Collections”/>
    <add namespace=”System.Collections.Specialized”/>
    <add namespace=”System.Configuration”/>
    <add namespace=”System.Text”/>
    <add namespace=”System.Text.RegularExpressions”/>
    <add namespace=”System.Web”/>
    <add namespace=”System.Web.Caching”/>
    <add namespace=”System.Web.SessionState”/>
    <add namespace=”System.Web.Security”/>
    <add namespace=”System.Web.Profile”/>
    <add namespace=”System.Web.UI”/>
    <add namespace=”System.Web.UI.WebControls”/>
    <add namespace=”System.Web.UI.WebControls.WebParts”/>
    <add namespace=”System.Web.UI.HtmlControls”/>
   </namespaces>
  </pages>
  <!–
            The <authentication> section enables configuration
            of the security authentication mode used by
            ASP.NET to identify an incoming user.
        –>
  <authentication mode=”Windows”/>
  <!–
            The <customErrors> section enables configuration
            of what to do if/when an unhandled error occurs
            during the execution of a request. Specifically,
            it enables developers to configure html error pages
            to be displayed in place of a error stack trace.

       <customErrors mode=”Off”/>

        –>
 </system.web>
</configuration>

6 Comments leave one →
  1. Batbayar permalink
    March 2, 2007 2:15 am

    Sain baitsgaana uu?

    Bi USA -d surguuli tugssun systems analyst khiideg. Bi mergejliin developer bish uchir mergejliin khumuuseer ASP.net
    zaalgakh gesen yum.

    Ehnii eeljind Bi GRID,CHART,dropdown box aguulsan gants aspx khuudas khiilgeh gesen yum. Database ni SQL 2000.

    SQL-n stored procedure–g duudaj data-g grid deer ba Syncfusion chart deer haruulah yum.

    Kherev ta buhen zavtai bol une khulsnii talar sanalaa yavuulana uu?

  2. May 30, 2007 1:23 am

    Hi. It’s about game.
    dog rape [url=http://dogrape.ici.st] dog rape [/url] [link http://dogrape.ici.st%5D dog rape [/link]
    family violence [url=http://familyviolence.ici.st] family violence [/url] [link http://familyviolence.ici.st%5D family violence [/link]
    incest [url=http://incest.ici.st/] incest [/url] [link http://incest.ici.st/%5D incest [/link]
    incest fuck [url=http://incest-fuck.new.fr] incest fuck [/url] [link http://incest-fuck.new.fr%5D incest fuck [/link]
    incest sites [url=http://incest-sites.be.cx/] incest sites [/url] [link http://incest-sites.be.cx/%5D incest sites [/link]
    incest forum [url=http://incest-forum.ici.st] incest forum [/url] [link http://incest-forum.ici.st%5D incest forum [/link]
    forced rape [url=http://forcedrape.ici.st] forced rape [/url] [link http://forcedrape.ici.st%5D forced rape [/link]
    incest taboo forum [url=http://incest-taboo-forum.ici.st] incest taboo forum [/url] [link http://incest-taboo-forum.ici.st%5D incest taboo forum [/link]
    forced anal [url=http://forced-anal.ici.st] forced anal [/url] [link http://forced-anal.ici.st%5D forced anal [/link]
    forced witness [url=http://forced-witness.ici.st] forced witness [/url] [link http://forced-witness.ici.st%5D forced witness [/link]

    roleplayingames.com

  3. June 7, 2007 5:40 pm

    Hi. It’s about game.
    incest stories [url=http://w57.net/incest/] incest stories [/url] [link http://w57.net/incest/%5D incest stories [/link]
    brutal rape [url=http://w57.net/adult/] brutal rape [/url] [link http://w57.net/adult/%5D brutal rape [/link]
    rape stories [url=http://w57.net/stories/] rape stories [/url] [link http://w57.net/stories/%5D rape stories [/link]
    free incest videos [url=http://w57.net/incest/] free incest videos [/url] [link http://w57.net/incest/%5D free incest videos [/link]
    incest chat [url=http://w57.net/incest/] incest chat [/url] [link http://w57.net/incest/%5D incest chat [/link]

    roleplayingame.com

  4. July 11, 2007 9:54 pm

    asp.net

  5. July 11, 2007 9:55 pm

    chi chini yamar ichdegui yum asuuj bna aa. usa d tugschihuud system analyst hiideg baij iim yum uuruu net uhaad surahgui yu chi😛

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: