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>

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.

<!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 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>