ADROTATOR CONTROL

AIM:

To write an ASP.NET program to design anAdRotator control.

ALGORITHM:

1. Open Microsoft Visual Studio 2010
2. Click new project -> Asp.net web application with C#
3. Solution explorer right click -> add -> new item -> webform with C#
4. Place required controls for the application
5. write the necessary coding in C#
6. Run the application.

AD.xml



	
img/1.png
https://meeraacademy.com
Meera Academy
50
Meera



img/2.png
http://meera.com
Meerta Aademy
100
Academy


img/3.png
https://meeraacademy.com
Meerta Aademy
50
Academy


            

FORE COLOR.ASPX.CS :


using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace change_backcolor_and_forecolor
{
public partial class WebForm1 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
TextBox1.ForeColor = System.Drawing.Color.Black ;
}
protected void Button2_Click(object sender, EventArgs e)
{
TextBox1.BackColor = System.Drawing.Color.Cyan;
}
}
}

OUTPUT:

program 1 output

RESULT:

Thus the above program has been executed sucessfully verified and output is shown.

NEXT PROGRAM
PREVIOUS PROGRAM