Posts

Showing posts from September, 2020

switch in c#

 using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class _Default : System.Web.UI.Page {     protected void Page_Load(object sender, EventArgs e)     {     }     protected void Button1_Click(object sender, EventArgs e)     {         //int a=0, b=0,c=0;         //a =  Convert.ToInt32(txt1.Text);         //b = Convert.ToInt32(txt2.Text) ;          //c = a + b;         //Label1.Text = Convert.ToString(c);         cal("+");     }     protected void Button2_Click(object sender, EventArgs e)     {         cal("-");              }     protected void Button3_Click(object sender, EventArgs e)     {   ...

HEADING,PARAGRAPH, BACKGROUN COLOUR .HTML CODE

 <html> <head> <style> body {background-color: powderblue;} h1   {color: blue;} p    {color: red;} </style> </head> <body> <h1>This is a heading</h1> <p>This is a paragraph.</p> </body> </html>

PROGRAMING TWO NUMBER AAD IN VISUAL STUDIO, C# .NET FREAMWORK CODE

Note: Please check Capital letter or small letter in coding int total= convert.Toint32(Textbox1.text)+connvert.Toint32(Textbox2.text); label1.text=convert.Tostring(total); 

IMAGE TAG.HTML

 <html>  <head>  <title> IMAGE TAG</title> </head> <body>  <h1>SALMAN KHAN</h> <img src="YOUTUBE FOLDER/salman.png" height="200px" title="salman khan"/> <a href="FIRST WEB PAGE.html" target="_blnk"> NEXT PAGE</a> </body> </html>

LAYOUT TAG.HTML

 <html>     <head>    <title>HTML LAYOUT</title> <head> <body>   <table width="80%" border="1" cellpadding="10px" cellspacing="0" align="center">      <tr bgcolor="yellow">     <td colspan="2">     <h1>SITE NAME</h1> </td> </tr> <tr bgcolor="pink">     <td colspan="2">    <a href="">Home</a> I <a href="">galary</a> I <a href="">About us</a> I <a href="">FAQ</a> I <a href="">Contact us</a> </td> </tr>  <tr>     <td width="80%">    <h2> Sub heading</h2>       <p> Donec est quam, tincidunt sed venenatis at, laoreet vel eros. Maecenas fringilla et ex sit amet maximus. Interdum et malesuada fames ...

ANCHOR TAG.HTML

 <html>   <head>    <title>Anchor tag</title>   </head>   <body>      <a href="#linkone"><font color="green">goto link one</font></a> <br/>      <a href="#linktwo"><font color="green">goto link two</font></a>   <P>Donec est quam, tincidunt sed venenatis at, laoreet vel eros. Maecenas fringilla et ex sit amet maximus. Interdum et malesuada fames ac ante ipsum primis in faucibus. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Sed eu nulla nisl. Donec metus lectus, dignissim nec eleifend quis, congue a est. Vestibulum condimentum lorem quis urna porta tincidunt. Cras sit amet risus et neque accumsan placerat. Nulla quis lacinia felis. Pellentesque consequat, quam sit amet malesuada finibus, orci diam luctus nisi, sed malesuada dolor ipsum vel metus. Nunc elit tellus, lobortis in risus at...

FORM TAG.HTML

 <html> <head> <title> Form Tag</title> </head> <body align="left"> <form action="" method=""> <fieldset> <legend>Enter Detail</legend> <lable> User Name</lable><input type="text" name="" placeholder="Enter your name" > <br/><br/> <lable> password</lable><input type="Password" name=""placeholder="Enter your password" ><br/><br/> <lable> Gender</lable><input id="male" type="radio" name="gender"><label for="male">Male</label><input id="female" type="radio" name="gender"><label for="female">Female</label><br/><br/>      <lable> Massage</lable><textarea rows="10"cols=...

HTML CODING FORMAT

 <html> <head> <title></title> </head> <body> </body> </html>

TABEL TAG HTML CODE

 <html> <head> <title>Table Tag III</title> </head> <body> <table border="1" width="300px" cellspacing="0" cellpadding="10px" align="center"> <tr> <td>Name</td> <td>Class</td> <td>Percentage</td> </tr> <tr> <td>Peter</td> <td>12th</td> <td>84%</td> </tr> <tr> <td>jhon</td> <td>12th</td> <td>74%</td> </tr> <tr> <td>Merry</td> <td>12th</td> <td>77%</td> </tr> </table> </body> </html>