Friday, May 27, 2016

Google Map as a background HTML

//copy and paste this code in your html page



<!DOCTYPE html>
<html>
<head>

    <title></title>
<meta charset="utf-8" />
 
<style type="text/css" >

    #googlemaps {
    height: 100%;
    width: 100%;
    position:absolute;
    top: 0;
    left: 0;
    z-index: 0; /* Set z-index to 0 as it will be on a layer below the contact form */
    }

    #contactform {
    position: relative;
    z-index: 1; /* The z-index should be higher than Google Maps */
    width: 250px;
    margin: 5px auto 0 770px;
    padding: 5px;
    background: coral;
    height: auto;
    opacity: .80;  /*Set the opacity for a slightly transparent Google Form*/
    color:white;
 
     text-align:center ;
    }

 </style>
</head>
<body>
    <div id="googlemaps"></div>
    <div id="contactform">
        <h2>NOIDA</h2>
     
            <p style="font-family:Calibri;">
            A-10 A, Sector – 68, Noida-201301,<br />
            District – Gautam Budh Nagar,<br />
            Uttar Pradesh, INDIA<br />
            +91-120-6759600<br />
            cylmktg@afflatusfravure.com<br />
        </p>
    </div>

</body>

</html>
<!--!-- Include the Google Maps API library - required for embedding maps -->
<script src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>

<script type="text/javascript">

// The latitude and longitude of your business / place
    var position = [28.6046998, 77.3900557];

function showGoogleMaps() {

    var latLng = new google.maps.LatLng(position[0], position[1]);

    var mapOptions = {
        zoom: 16, // initialize zoom level - the max value is 21
        streetViewControl: false, // hide the yellow Street View pegman
        scaleControl: true, // allow users to zoom the Google Map
        mapTypeId: google.maps.MapTypeId.ROADMAP,
        center: latLng
    };

    map = new google.maps.Map(document.getElementById('googlemaps'),
        mapOptions);

    // Show the default red marker at the location
    marker = new google.maps.Marker({
        position: latLng,
        map: map,
        draggable: false,
        animation: google.maps.Animation.DROP
    });
}
google.maps.event.addDomListener(window, 'load', showGoogleMaps);

</script>

// you have to just change the co-ordinates



Sunday, May 15, 2016

Website CAREER FORM with send mail,attached resume and linked resume

Imports System.Data.OleDb
Imports System.Data
Imports System.Web.Configuration
Imports System.Web.UI.HtmlControls.HtmlGenericControl
Imports System.Web.HttpApplication
Imports System.Drawing
Imports System.Net.Mail



Dim mail As New MailMessage()
        mail.From = New MailAddress("" & txtemail.Text & "")
        mail.To.Add("kapil@afflatusgravure.com")

        Dim sb As New StringBuilder
        FileUpload1.SaveAs(Server.MapPath("~/RESUMES/") & FileUpload1.FileName)
        Dim file As String = (Server.MapPath("~/RESUMES/") & FileUpload1.FileName)
        sb.Append("<a href=" & file & ">" & txtname.Text & "_" & "RESUME</a>")
        mail.Subject = ddlist1.Text
        mail.Body = "Name:" & " " & txtname.Text & "<br/>" & "Mobile:" & " " & txtmobile.Text & "<br/>" & "E-Mail:" & " " & txtemail.Text & "<br/>" & "Date Of Birth:" & " " & txtdob.Text & " <br/>" & "Applied For:" & " " & ddlist1.Text & "<br/>" & "Qualification:" & " " & txtqualification.Text & "<br/>" & "Skills:" & " " & txtskills.Text & "<br/>" & "Experience:" & " " & txtexperience.Text & "<br/>" & "Remarks:" & " " & txtremarks.Text & "<br/>" & "Resume:" & " " & sb.ToString()


        mail.IsBodyHtml = True

 //if u want ATTACHED RESUME with mail

        'If Not file = "" Then
        '    Dim MsgAttach As New Attachment(file)
        '    mail.Attachments.Add(MsgAttach)
        'End If

  Dim smtp As New SmtpClient("103.245.119.210")
        smtp.Send(mail)




             Image1.Visible = True
        txtdob.Text = ""
        txtemail.Text = ""
        txtexperience.Text = ""
        txtmobile.Text = ""
        txtname.Text = ""
        txtqualification.Text = ""
        txtremarks.Text = ""
        txtskills.Text = ""

//FOR ACCEPT DOC/MSWORD ONLY with fileupload control

 If (
            FileUpload1.PostedFile.ContentType = "text/rtf" Or
        FileUpload1.PostedFile.ContentType = "application/doc" Or
        FileUpload1.PostedFile.ContentType = "appl/text" Or
         FileUpload1.PostedFile.ContentType = "application/vnd.msword" Or
         FileUpload1.PostedFile.ContentType = "application/vnd.ms-word" Or
         FileUpload1.PostedFile.ContentType = "application/winword" Or
         FileUpload1.PostedFile.ContentType = "application/word" Or
         FileUpload1.PostedFile.ContentType = "application/msword" Or
         FileUpload1.PostedFile.ContentType = "application/x-msw6" Or
         FileUpload1.PostedFile.ContentType = "application/x-msword"
            ) Then