JEYAGANESH

JEYAGANESH
Software Developer

Tuesday, 19 February 2013

TNPSC Group 1,2 and 4 Syllabus, Study Materials 2013


TNPSC Group 1 Syllabus- Tamil Nadu Public Service Commission releases various recruitments. Numbers of candidates apply for TNPSC recruitments. Applied candidates select on the basis of written exam and interview. Candidates who will attempt examination they must know which syllabus come in exam. Here in this section we are providing you TNPSC Group 1 Syllabus and Study Materials. Candidates must see below for getting details about TNPSC Group 1 syllabus and EBooks.



TNPSC Group 1 Preliminary Syllabus- TNPSC Group 1 Preliminary consists following subjects:
·         General Science
·         History OF India
·         Geography OF India
·         Economics And Commerce
·         Indian Polity
·         Indian National Movement
·         Current Events (Current Affairs)
·         Mental Ability Tests

TNPSC Group 1 Main Syllabus- TNPSC Group 1 Main Syllabus consists following subjects:
Ø  TNPSC PAPER-1 Syllabus
Ø  TNPSC PAPER-2 Syllabus

TNPSC PAPER-1 Syllabus-TNPSC Paper-1 covers following topics:
·         Modern history of India and Indian culture
·         Current events of national and international importance
·         Statistical analysis, graphs and diagrams
·         Social problems and other current sensitive issues

TNPSC PAPER-2 Syllabus- TNPSC Paper-2 covers following topics:
·         Indian polity
·         Indian economy and geography of India
·         Role and impact of science and technology in the development of India
·         Tamil language, Tamil society, its culture and heritage
·         Tamil Nadu administration
You can get TNPSC Group I eligibility, pay scale through given link:


TNPSC Group 1 study Material EBooks 2013

Text Books published by Tamil Nadu Text Books Society (Preparation Tips)

Science- 6, 7, 8, 9,10th Standard
Physics- 11,12th Standard
Chemistry- 11,12th Standard
Biology- 11, 12th Standard
Social Science-6, 7, 8, 9,10th Standard
History- 11, 12th Standard
Geography- 11, 12th Standard
Political Science-11, 12th Standard
Mathematic-7, 8, 9, 10th Standard
Logic-12th Standard (Old) 
ALL Tamil nadu textbook available  
www.textbooksonline.tn.nic.in/

Tuesday, 6 November 2012

Enquiry / Contact Form with Javascript Validation Using Asp.net c#


Contact.aspx
-------------------

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>::Contact / Enquiry Page with JavaScript Form Validation:: Jeyaganesh asp.net Developer</title>
    <script language="javascript" type="text/javascript">
   function validate() {
       if (document.getElementById("<%=TextBox1.ClientID%>").value == "") {
           alert("Name Feild can not be blank");
           document.getElementById("<%=TextBox1.ClientID%>").focus();
           return false;
       }

       if (document.getElementById("<%=TextBox2.ClientID %>").value == "") {
           alert("Email id Feild can not be blank");
           document.getElementById("<%=TextBox2.ClientID %>").focus();
           return false;
       }

       if (document.getElementById("<%=TextBox3.ClientID %>").value == "") {
           alert("Mobile No Feild can not be blank");
           document.getElementById("<%=TextBox3.ClientID %>").focus();
           return false;
       }
       if (document.getElementById("<%=TextBox4.ClientID %>").value == "") {
           alert("Feedback Feild can not be blank");
           document.getElementById("<%=TextBox3.ClientID %>").focus();
           return false;
       }
       var emailPat = /^(\".*\"|[A-Za-z]\w*)@(\[\d{1,3}(\.\d{1,3}){3}]|[A-Za-z]\w*(\.[A-Za-z]\w*)+)$/;
       var emailid = document.getElementById("<%=TextBox2.ClientID %>").value;
       var matchArray = emailid.match(emailPat);
       if (matchArray == null) {
           alert("Your Email Address Seems Incorrect. Please try again.");
           document.getElementById("<%=TextBox2.ClientID %>").focus();
           return false;
       }


       return true;
   }
</script>
</head>
<body>
    <form id="form1" action="" runat="server">
<table width="500" border="0" style="text-align:left; font-size:16px; color:#C6913D; font-weight:bold;">
  <tr>
    <td align="left">Enquiry Form</td>
    <td></td>
  </tr>
  <tr>
    <td>Name</td>
    <td>
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox></td>
  </tr>
  <tr>
    <td>Email Id</td>
    <td><asp:TextBox ID="TextBox2" runat="server"></asp:TextBox></td>
  </tr>
  <tr>
    <td>Mobile No</td>
    <td><asp:TextBox ID="TextBox3" runat="server"></asp:TextBox></td>
  </tr>
  <tr>
    <td>Comments</td>
    <td><asp:TextBox ID="TextBox4" runat="server" TextMode="MultiLine" Width="300px" Height="150px"></asp:TextBox></td>
  </tr>

  <tr>
    <td></td>
    <td><br/>
        <asp:Button ID="Button1" runat="server" Text="Submit" class="learn-more"
             OnClientClick="return validate()" onclick="Button1_Click"/>
    <%--<a title="Submit" class="learn-more" href="#">Submit</a>--%></td>
  </tr>
</table>
</form>
</body>
</html>

Contact.aspx.cs
------------------


using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Net.Mail;
using System.Net;
using System.Threading;
using System.IO;
using System.Text;
using System.Data.SqlClient;


public partial class Contact : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        try
        {

            MailMessage mail1 = new MailMessage();
            mail1.To.Add("to mailid");
            mail1.From = new MailAddress("fromemailid@hotmail.com");
            mail1.Subject = "Feed Back On " + DateTime.Now.ToString();
            mail1.IsBodyHtml = true;
            string Body1;

            Body1 = "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />";
            Body1 += "<title></title>"

        + "</head>"
        + "<body>"

        + "<table align=\"center\" style=\"width: 650px; height: 377px;\">"
        + "<tr>"
        + "<td>"
        + "Name"
        + "</td>"
        + "<td align=\"center\">:</td>"
        + "<td>"
        + TextBox1.Text
        + "</td>"
       + "</tr>"
        + "<tr>"
       + "<td>"
       + "</td>"
       + "<td align=\"center\"></td>"
       + "<td>"
       + "</td>"
       + "</tr>"

        + "<tr>"
       + "<td>"
       + "</td>"
       + "<td align=\"center\"></td>"
       + "<td>"
       + "</td>"
       + "</tr>"

       + "<tr>"
       + "<td>"
       + "Email Id</td>"
       + "<td align=\"center\">:</td>"
       + "<td>"
       + TextBox2.Text + "</td>"
       + "</tr>"

       + "<tr>"
       + "<td>"
       + "</td>"
       + "<td align=\"center\"></td>"
       + "<td>"
       + "</td>"
       + "</tr>"
        + "<tr>"
       + "<td>"
       + "</td>"
       + "<td align=\"center\"></td>"
       + "<td>"
       + "</td>"
       + "</tr>"

       + "<tr>"
       + "<td>"
       + "Mobile No</td>"
       + "<td align=\"center\">:</td>"
       + "<td>"
       + TextBox3.Text + "</td>"
       + "</tr>"

        + "<tr>"
       + "<td>"
       + "</td>"
       + "<td align=\"center\"></td>"
       + "<td>"
       + "</td>"
       + "</tr>"
        + "<tr>"
       + "<td>"
       + "</td>"
       + "<td align=\"center\"></td>"
       + "<td>"
       + "</td>"
       + "</tr>"

       + "<tr>"
       + "<td>"
       + "Feedback</td>"
       + "<td align=\"center\">:</td>"
       + "<td>"
       + TextBox4.Text + "</td>"
       + "</tr>"

       + "</table>"
       + "</body>"
       + "</html>";


            mail1.Body = Body1;
            // mail.Body += Body.ToString();      
            mail1.IsBodyHtml = true;

            mail1.Priority = MailPriority.Normal;
            SmtpClient smtp1 = new SmtpClient();
            smtp1.Port = 25;
            smtp1.Host = "smtp.live.com";
            smtp1.Credentials = new System.Net.NetworkCredential("fromemailid@hotmail.com", "password");
            smtp1.EnableSsl = true;
            smtp1.Send(mail1);

           ClientScript.RegisterStartupScript(this.GetType(), "Alert", "<script>alert('Your Information Sending Successfully');</script>");

        }
        catch (Exception ex)
        {
             ClientScript.RegisterStartupScript(this.GetType(), "Alert", "<script>alert('Email Not Sent');</script>");
        }
    }
}

You can set your own domain mailid and Password:

SET Port No:25

SET Smtp host: mail.yourdomain.com or webmail.yourdomain.com (EX:mail.ganesh.com)

SET EnableSsl=false




JAVASCRIPT FORM VALIDATION FOR ASP.NET WEB FORM


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>::JavaScript Form Validation:: Jeyaganesh asp.net Developer</title>
    <script language="javascript" type="text/javascript">
   function validate() {
       if (document.getElementById("<%=TextBox1.ClientID%>").value == "") {
           alert("Name Feild can not be blank");
           document.getElementById("<%=TextBox1.ClientID%>").focus();
           return false;
       }

       if (document.getElementById("<%=TextBox2.ClientID %>").value == "") {
           alert("Email id Feild can not be blank");
           document.getElementById("<%=TextBox2.ClientID %>").focus();
           return false;
       }

       if (document.getElementById("<%=TextBox3.ClientID %>").value == "") {
           alert("Mobile No Feild can not be blank");
           document.getElementById("<%=TextBox3.ClientID %>").focus();
           return false;
       }
       if (document.getElementById("<%=TextBox4.ClientID %>").value == "") {
           alert("Feedback Feild can not be blank");
           document.getElementById("<%=TextBox3.ClientID %>").focus();
           return false;
       }
       var emailPat = /^(\".*\"|[A-Za-z]\w*)@(\[\d{1,3}(\.\d{1,3}){3}]|[A-Za-z]\w*(\.[A-Za-z]\w*)+)$/;
       var emailid = document.getElementById("<%=TextBox2.ClientID %>").value;
       var matchArray = emailid.match(emailPat);
       if (matchArray == null) {
           alert("Your Email Address Seems Incorrect. Please try again.");
           document.getElementById("<%=TextBox2.ClientID %>").focus();
           return false;
       }


       return true;
   }
</script>
</head>
<body>
    <form id="form1" action="" runat="server">
<table width="500" border="0" style="text-align:left; font-size:16px; color:#C6913D; font-weight:bold;">
  <tr>
    <td align="left">Enquiry Form</td>
    <td></td>
  </tr>
  <tr>
    <td>Name</td>
    <td>
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox></td>
  </tr>
  <tr>
    <td>Email Id</td>
    <td><asp:TextBox ID="TextBox2" runat="server"></asp:TextBox></td>
  </tr>
  <tr>
    <td>Mobile No</td>
    <td><asp:TextBox ID="TextBox3" runat="server"></asp:TextBox></td>
  </tr>
  <tr>
    <td>Comments</td>
    <td><asp:TextBox ID="TextBox4" runat="server" TextMode="MultiLine" Width="300px" Height="150px"></asp:TextBox></td>
  </tr>

  <tr>
    <td></td>
    <td><br/>
        <asp:Button ID="Button1" runat="server" Text="Submit"
             OnClientClick="return validate()"/>
    </td>
  </tr>
</table>
</form>
</body>
</html>