Thursday, 18 June 2015

Microsoft Font(Css)

  Microsoft Font


<style type="text/css">
    .txtBxF
     {


    border: 1px solid #ccc;
    border-radius: 3px;
    color: #333;
    font-size: 16px;
    padding: 8px 0 8px 7px;
    width: 445px;

}
        .txtBxF:focus
        {
            border:1px solid #000000;
            border-radius:0px;
        }

           .txtBxF2
     {


    border: 1px solid #ccc;
    border-radius: 3px;
    color: #333;
    font-size: 16px;
    padding: 8px 0 8px 7px;
    width: 200px;

}
        .txtBxF2:focus
        {
            border:1px solid #000000;
            border-radius:0px;
        }

        .mircrosoftfont
        {
    color: #000;
    direction: ltr;
    font-family: "Segoe UI","Segoe UI Web Regular","Segoe UI Symbol","Helvetica Neue","BBAlpha Sans","S60 Sans",Arial,sans-serif;
    font-size: 88%;
}


.mircrosoftlinkbtn
        {
    color: blue;
    direction: ltr;
    font-family: "Segoe UI","Segoe UI Web Regular","Segoe UI Symbol","Helvetica Neue","BBAlpha Sans","S60 Sans",Arial,sans-serif;
    font-size: 88%;
}

.mircrosofsigninHeader
        {
    color:#666;
    direction: ltr;
    font-family: "Segoe UI","Segoe UI Web Regular","Segoe UI Symbol","Helvetica Neue","BBAlpha Sans","S60 Sans",Arial,sans-serif;
    font-size:xx-large;
}
 .mircrosofsigninHeader2
        {
    color:white;
    direction: ltr;
    font-family: "Segoe UI","Segoe UI Web Regular","Segoe UI Symbol","Helvetica Neue","BBAlpha Sans","S60 Sans",Arial,sans-serif;
    font-size:x-large;
    font-weight:normal;
}
.mircrosofsignin
        {
    color:#000000;
    direction: ltr;
    font-family: "Segoe UI","Segoe UI Web Regular","Segoe UI Symbol","Helvetica Neue","BBAlpha Sans","S60 Sans",Arial,sans-serif;
    font-size:small;
   
}
.mircrosofsignin2
        {
    color:white;
    direction: ltr;
    font-family: "Segoe UI","Segoe UI Web Regular","Segoe UI Symbol","Helvetica Neue","BBAlpha Sans","S60 Sans",Arial,sans-serif;
    font-size:medium;
   
}

.placeholder.ltr_override {
    margin-left: 9px;
    margin-right: auto;
    text-align: left;
}
.txt:hover
{
    border-color:blue;
    border-width:1px;
     color:#666;
     direction: ltr;
     font-family: "Segoe UI","Segoe UI Web Regular","Segoe UI Symbol","Helvetica Neue","BBAlpha Sans","S60 Sans",Arial,sans-serif;
    font-size: 88%;
}
        .btnlogin
        {
            width:100px;
            background-color:#1563ef;
            height:40px;
            border:none;
            color:white;

           
        }
            .btnlogin:hover
            {
               
                background-color:#6bc9f8;
            }

   
    </style>

Wednesday, 17 June 2015

Mozilla Firefox font

Mozilla Firefox font

body {
    color: #333;
    font-family: "trebuchet ms",helvetica,sans-serif;
    font-size: 62.5%;
}

Tuesday, 2 June 2015

Limitation on Textbox

Java script for Limitation 

     <script  type="text/javascript">
        function limitText(limitField, limitCount, limitNum) {
            if (limitField.value.length > limitNum) {
                limitField.value = limitField.value.substring(0, limitNum);
            } else {
                limitCount.value = limitNum - limitField.value.length;
            }
        }
</script>








 <asp:TextBox ID="txtdesc" runat="server" TextMode="MultiLine" onkeydown="limitText(this.form.txtdesc,this.form.countdown,200);" onkeyup="limitText(this.form.txtdesc,this.form.countdown,200);"></asp:TextBox><br>
<font size="1">(Maximum characters: 200)<br>
You have <input readonly type="text" name="countdown" size="3" value="200" style="width: 48px"> characters left.</font>

Monday, 1 June 2015

java script validatin

<script type="text/javascript">
          function Validate1() {
              if (document.getElementById("<%=txtname.ClientID%>").value == "") {
            alert("Name field is mandatory");
            document.getElementById("<%=txtname.ClientID%>").focus();
            return false;
        }
        if (document.getElementById("<%=txtmobileno.ClientID%>").value == "") {
            alert("Mobile no field is mandatory");
            document.getElementById("<%=txtmobileno.ClientID%>").focus();
            return false;
        }
              if (document.getElementById("<%=txtemail.ClientID%>").value == "") {
                  alert("Email field is mandatory");
                  document.getElementById("<%=txtemail.ClientID%>").focus();
            return false;
              }
              if (document.getElementById("<%=txtqualification.ClientID%>").value == "") {
                  alert("Qualification field is mandatatory");
                  document.getElementById("<%=txtqualification.ClientID%>").focus();
            return false;
        }
           
          }
          function NumericValidation(eventObj) {
              var keycode;

              if (eventObj.keyCode) //For IE
                  keycode = eventObj.keyCode;
              else if (eventObj.Which)
                  keycode = eventObj.Which;  // For FireFox
              else
                  keycode = eventObj.charCode; // Other Browser

              if (keycode != 8) //if the key is the backspace key
              {
                  if (keycode < 48 || keycode > 57) //if not a number
                      return false; // disable key press
                  else
                      return true; // enable key press
              }
          }
    </script>
Mail Send with Html Body By Mohammed Akram

.aspx
 <div style="padding-top:20px;">
      <span style="font-size:large;color:#2173b9;font-family:'Berlin Sans FB';">Post Your Resume</span>
   </div>

        <div  class="span12" style="padding-top:20px;">
<div class="span1" style="width:100px;">
    <asp:Label ID="Label3" runat="server" Text="Full Name"></asp:Label></div>
    <div class="span2">
    <asp:TextBox ID="txtname" runat="server" Width="202px" TabIndex="1"></asp:TextBox></div>
   

  
  
</div>
       
        <div  class="span12">
<div class="span1" style="width:100px;">
    <asp:Label ID="Label5" runat="server" Text="Mobile No"></asp:Label></div>
    <div class="span2">
    <asp:TextBox ID="txtmobileno" runat="server" Width="202px" onkeypress="return NumericValidation(event)" TabIndex="2"></asp:TextBox></div>
   

  
  
</div>
        <div  class="span12">
<div class="span1" style="width:100px;">
    <span>Email</span></div>
    <div class="span2">
    <asp:TextBox ID="txtemail" runat="server" Width="202px" TabIndex="3"></asp:TextBox></div>
   

  
  
</div>
            <div  class="span12">
<div class="span1" style="width:100px;">
    <span>Address</span></div>
    <div class="span2">
    <asp:TextBox ID="txtaddress" runat="server" TextMode="MultiLine" Width="202px" TabIndex="4"></asp:TextBox></div>
   

  
  
</div>
        <div  class="span12">
<div class="span1" style="width:100px;">
    <span>Qualification</span></div>
    <div class="span2">
    <asp:TextBox ID="txtqualification" runat="server" Width="202px" TabIndex="5"></asp:TextBox></div>
   

  
  
</div>
        <div  class="span12">
<div class="span1" style="width:100px;">
    <span>Experience</span></div>
    <div class="span2">
    <asp:TextBox ID="txtexp" runat="server" Width="202px" TabIndex="6"></asp:TextBox></div>
   

  
  
</div>
               <div  class="span12">
<div class="span1" style="width:100px;">
   <span>Description</span></div>
    <div class="span2">
    <asp:TextBox ID="txtdesc" TextMode="MultiLine" runat="server" Width="204px" TabIndex="7" Height="44px"></asp:TextBox></div>
   

  
  
</div>
        <div  class="span12">
<div class="span1" style="width:100px;">
    <span>Upload Your CV</span></div>
    <div class="span2">
    <asp:FileUpload ID="fuattach" runat="server" Width="202px" TabIndex="8" /></div><br />
   

  
  
</div>
            <div class="span12" style="padding-left:80px;padding-top:20px;">
                <asp:Button ID="btnsubmit" runat="server" Text="Submit" ForeColor="white" Width="96px" BackColor="#2173b9" ToolTip="Submit" Height="36px" OnClientClick="return Validate1();" OnClick="btnsubmit_Click" />
                <asp:Button ID="btnclear" runat="server" Text="Clear" ForeColor="White" BackColor="#2173b9" Height="36px" ToolTip="Clear" Width="96px" OnClick="btnclear_Click" />
            </div>
         
   

</div>


       
        </asp:Panel>





// .cs code for mail Sending....................................................................
//Method for mail send

  public bool mailsendadmin()
    {
       
        MailMessage msg = new MailMessage("pabitra@softnet.co.in","mohammed.akram52@gmail.com");
        msg.Subject = "Inqury Details";
        msg.IsBodyHtml = true;
     
        msg.Body = "<html><body><div style='width:499px; height:700px;border:solid;border-bottom-width:2px;border-color:yellow;'> <div style='width:495px; text-align:center;'><span style='color:black;font-size:x-large;'>Career At GowBell</span><br /><span style='text-align:center';><img src='http://dyg.co.in/images/gowbell-logo.png' style='height: 74px; width: 127px' /></span><br /><div style='text-align:left;'><span style='margin-left:'20px';text-align:'justify';><br/><p style='padding-left:10px;'>Dear Sir,<br />Please view my above details that are mention bellow.</p></span></div></div> <div style='padding-left:100px;padding-top:70px;'><div><table><tr><td>Name:</td><td>" + txtname.Text + "</td></tr><tr><td>Mobile No:</td><td>" + txtmobileno.Text + "</td></tr><tr><td>Email ID:</td><td>" + txtemail.Text + "</td></tr><tr><td>Address:</td><td></td></tr><tr><td colspan='2'><p>" + txtaddress.Text + "</p></td></tr><tr><td>Qualification:</td><td>"+txtqualification.Text+"</td></tr><tr><td>Experience:</td><td>"+txtexp.Text+"</td></tr><tr><td>Description</td><td></td></tr><tr><td colspan='2'><p>"+txtdesc.Text+"</p></td></tr><tr><td style='text-align:right;' colspan='2'>Thanks..</td></tr></table></div></div></div></html>";

        if (fuattach.HasFile)
        {
                  string fileName = Path.GetFileName(fuattach.PostedFile.FileName);
              msg.Attachments.Add(new Attachment(fuattach.PostedFile.InputStream, fileName));
        }

       
        AlternateView view;
        msg.To.Add(new MailAddress("md.akram@softnet.co.in"));
        //SmtpClient smtp = new SmtpClient();
        SmtpClient client;
        //StringBuilder msgText = new StringBuilder();
        msg.IsBodyHtml = true;

       
     
        client = new SmtpClient();
        client.Host = "smtp.gmail.com";
        client.Port = 587;
        client.Credentials = new System.Net.NetworkCredential("abc@gmail.com", "Password");//Sender Email Address and password
        client.EnableSsl = true; //Gmail works on Server Secured Layer
        client.Send(msg);
        bool k = true;
        return k;
       
      
    }