Expert Online Training in Computer Languages and Different Technologies By NIIT Faculty having 14 Years of Professional IT Experience. Want to score good marks in college subjects like C, C++, Java, PHP, VB.net, VB, DBMS, RDBMS, Oracle, MySQL, SQL Server, Open Office on Linux. Visit My Website for More Information : www.gtit.in
Monday, September 08, 2014
Wednesday, October 09, 2013
Database Intro
Software is a set of
instruction to perform a particular task
Database is collection of tables.
Table is a collection of columns which stores information in the form of rows. which refers to a records.
RDBMS or DBMS
(Relational Database Management System or Database Management System)
Is a software which
is use to manage data.
Operations like
Adding new records and modifying old records and delete the old records are
performed in Database
Various Databases
are like Oracle, Microsoft, MySql.
Microsoft Access is
a graphical tool to create database and manage tables in a database.
Simplest Example of a Database operations is a mobile phone Contacts
Mobile-> Database
Contacts-> table
Records of our friends
firstname
lastname
middlename
mobileno
homeno
email
dob
address
all the above are the columns of a contact table
task on the table
new
modify
delete
How to open MS Access.
Start -> All Programs -> Microsoft Office -> Access
Case Study:
I want to store information about the details of a school.
Information we need to store in a school database.
1. Students
2.Staff
3.Class
4.Exam
5.Subject
Database Name : SchoolDB
Tables in a SchoolDB Database
1. Table Name: Students
2. Table Name: Staff
3. Table Name: Class
4. Table Name: Exam
5. Table Name: Subject
Columns in Students Table:
RollNo.
FirstName
LastName
MiddleName
MobileNo.
HomeNo
FatherName
Mothers Name
Email
DOB
Age
Address
ClassName
LastClassScore
LastSchoolName
FeePaid
Section
Columns in Staff Table:
FirstName
LastName
MiddleName
MobileNo.
HomeNo
Email
Address
Qualification
Post
Exp
Salary
LastSchoolName
Columns in Class Table:
ClassID
Classname
fee
Columns for Exam Table
ClassID
SubjectID
Rollno
Marks
Columns for Subject Table
SubjectID
SubjectName
ClassID
Wednesday, September 25, 2013
How to create a Blog
1. Create a Email Id
2. Register in www.blogger.com
3. Follow the steps and create the blog.
4. Create new post on your blog.
5. Publish your Blog.
6. View your blog.
Saturday, September 21, 2013
AD Rotator with timer
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:Timer ID="Timer2" runat="server" Interval="1000">
</asp:Timer>
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Timer2" EventName="Tick" />
</Triggers>
<ContentTemplate>
<asp:AdRotator ID="AdRotator2" runat="server" DataSourceID="XmlDataSource2" />
<asp:XmlDataSource ID="XmlDataSource2" runat="server" DataFile="~/XMLFile2.xml">
</asp:XmlDataSource>
</ContentTemplate>
</asp:UpdatePanel>
</form>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:Timer ID="Timer2" runat="server" Interval="1000">
</asp:Timer>
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Timer2" EventName="Tick" />
</Triggers>
<ContentTemplate>
<asp:AdRotator ID="AdRotator2" runat="server" DataSourceID="XmlDataSource2" />
<asp:XmlDataSource ID="XmlDataSource2" runat="server" DataFile="~/XMLFile2.xml">
</asp:XmlDataSource>
</ContentTemplate>
</asp:UpdatePanel>
</form>
Tuesday, September 03, 2013
Lesson 2 in ASP.NET (using HTML)
To Create the following layout write the code below
<!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>
<title>Online Exam System Help</title>
<style type="text/css">
h1{color:Orange;
}
.style1
{
font-size: xx-large;
font-weight: bold;
}
</style>
</head>
<body>
<div class="header"><img src="images/ID.jpg" atr="Online System"
style="height: 217px; width: 700px" /><br /><font face="Courier New" color="#0066ff" size="100pt">Testing System</font></div>
<div class="sidebar">
<h1>Exams</h1>
<ol>
<li>C++</li>
<li>Java</li>
<li>PHP</li>
<li>MySQL</li>
<li>Oracle</li>
<li>ASP.NET</li>
</ol>
</div>
<div class="content">
<h1>Exam Details</h1>
<table border="1" cellpadding="0" cellspacing="0">
<tr>
<td valign=top>C++</td>
<td>Details of the Programming with C++ Test are as follows. Principles of Object-Oriented Programming:
Tokens. Expressions and sequences. Functions with C++. Classes and objects, Constructors and destructors, Operator overloading and type conversions.
Inheritance:
Extending classes, Pointers, Virtual functions and polymorphism, Managing console I/O operations, Working with files.
C++ I/O Systems:
C++ I/O basics, Formatted I/O, Manipulators, User defined inserters, Extractors and Manipulators.
</td>
</tr>
<tr>
<td valign=top>Java</td>
<td>Java Exam Details are as follows. Introduction to OOPs AND JAVA, Understanding the Fundamentals, Working with Access Specifiers and Functions, Constructors, Destructors and Inheritance,
Exception Handling, Graphical User Interface Programming (GUI), Event Handling, Working with Threads, File Handling, Collections, Generics and Annotations, Networking with Java, Remote Method Invocation (RMI), Java Database Connectivity (JDBC) and JavaBeans
</td>
</tr>
<tr>
<td valign=top>PHP</td>
<td>PHP Exam Details</td>
</tr>
<tr>
<td valign=top>MySQL</td>
<td>MySQL Exam Details</td>
</tr>
<tr>
<td valign=top>Oracle</td>
<td>Oracle Exam Details</td>
</tr>
<tr>
<td valign=top>ASP.NET</td>
<td>ASP.NET Exam Details</td>
</tr>
</table>
</div>
</body>
</html>
Lesson 1 ASP.NET (Use Of HTML)
To Create this output write the following code in notepad and run it in Internet Broswer.
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Online Testing Website</title>
<style type="text/css">
h1{color:Orange;}
H2{COLOR:RED;}
</style>
<script type="text/javascript">
function selectexam() {
alert('You have select ' + selectExam.value);
mainframe.document.body.innerHTML = "";
if (selectExam.value == "C++") {
mainframe.document.write("You Have Selected C++ Exam");
mainframe.document.body.style.background = "ff3333";
}
if (selectExam.value == "Java"){
mainframe.document.write("You Have Selected Java Exam");
mainframe.document.body.style.background = "66cc33";
}
if (selectExam.value == "PHP"){
mainframe.document.write("You Have Selected PHP Exam");
mainframe.document.body.style.background = "00ff99";
}
if (selectExam.value == "MySQL"){
mainframe.document.write("You Have Selected MySQL Exam");
mainframe.document.body.style.background = "66ccff";
}
if (selectExam.value == "Oracle"){
mainframe.document.write("You Have Selected Oracle Exam");
mainframe.document.body.style.background = "ff00ff";
}
if (selectExam.value == "ASP.NET"){
mainframe.document.write("You Have Selected ASP.NET Exam");
mainframe.document.body.style.background = "ccff33";
}
if (selectExam.value == "C#.NET"){
mainframe.document.write("You Have Selected C#.NET Exam");
mainframe.document.body.style.background = "RED";
}
}
</script>
</head>
<body>
<div id="BodyContent">
<h1>Online Testing System</h1>
<h2>Welcome Students</h2>
<hr />
Please Select The Exam:
<select id="selectExam">
<option value="C++">C++</option>
<option value="Java">Java</option>
<option value="PHP">PHP</option>
<option value="MySQL">MySQL</option>
<option value="Oracle">Oracle</option>
<option value="ASP.NET">ASP.NET</option>
<option value="C#.NET">C#.NET</option>
</select>
<input id="buttonselect" type="button" value="Select" onclick="selectexam()" />
</div>
<div id="Frameid"><iframe id="mainframe" name="mainframe" frameborder=1 width=1300 height=500></iframe></div>
</body>
</html>
Friday, August 02, 2013
Save Button Code in ASP.Net
First Insert these lines at the top of code bind file
using System.Data;
Second step is to write this line inside your class
string _connStr = ConfigurationManager.ConnectionStrings["connectionString"].ConnectionString;
protected void btnsubmit_Click(object sender, EventArgs e)
{
try
{
String struserid, strpassword, strfirstname, strmiddlename, strlastname;
String stremailid, strmobilenumber, strcollegename;
struserid = txtuserid.Text;
strpassword = txtpassword.Text;
strfirstname = txtfirstname.Text;
strmiddlename = txtmiddlename.Text;
strlastname = txtlastname.Text;
stremailid = txtemailid.Text;
strmobilenumber = txtmobile.Text;
strcollegename = txtcollegename.Text;
SqlConnection con = new SqlConnection();
con.ConnectionString = _connStr;
String strinsert = "insert into profiledata(userid,firstname,middlename,lastname,emailid,mobile,collegename,password) values('" + struserid + "','" + strfirstname + "','" + strmiddlename + "','" + strlastname + "','" + stremailid + "','" + strmobilenumber + "','" + strcollegename + "','" + fileName + "','" + imageBytes + "','" + strpassword + "')";
con.Open();
SqlCommand cmd = new SqlCommand(strinsert, con);
cmd.ExecuteNonQuery();
con.Close();
}
catch (Exception exp)
{
Label1.Text = "Error in inserting Data";
}
}
using System.Data;
using System.IO;
using System.Configuration;
using System.Data.SqlClient;Second step is to write this line inside your class
string _connStr = ConfigurationManager.ConnectionStrings["connectionString"].ConnectionString;
Third step is to write this code in save button event
{
try
{
String struserid, strpassword, strfirstname, strmiddlename, strlastname;
String stremailid, strmobilenumber, strcollegename;
struserid = txtuserid.Text;
strpassword = txtpassword.Text;
strfirstname = txtfirstname.Text;
strmiddlename = txtmiddlename.Text;
strlastname = txtlastname.Text;
stremailid = txtemailid.Text;
strmobilenumber = txtmobile.Text;
strcollegename = txtcollegename.Text;
SqlConnection con = new SqlConnection();
con.ConnectionString = _connStr;
String strinsert = "insert into profiledata(userid,firstname,middlename,lastname,emailid,mobile,collegename,password) values('" + struserid + "','" + strfirstname + "','" + strmiddlename + "','" + strlastname + "','" + stremailid + "','" + strmobilenumber + "','" + strcollegename + "','" + fileName + "','" + imageBytes + "','" + strpassword + "')";
con.Open();
SqlCommand cmd = new SqlCommand(strinsert, con);
cmd.ExecuteNonQuery();
con.Close();
}
catch (Exception exp)
{
Label1.Text = "Error in inserting Data";
}
}
Subscribe to:
Posts (Atom)




