Online Kutlama Kartı Hazırlama uygulaması için tıklayınız…
——————————————————————————————————-
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Drawing;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace WebApplication13
{
public partial class WebForm2 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
ListItem item = new ListItem();
item.Text = BorderStyle.None.ToString();
item.Value = ((int)BorderStyle.None).ToString();
RadioButtonList1.Items.Add(item);
item = new ListItem();
item.Text = BorderStyle.Double.ToString();
item.Value = ((int)BorderStyle.Double).ToString();
RadioButtonList1.Items.Add(item);
item = new ListItem();
item.Text = BorderStyle.Solid.ToString();
item.Value = ((int)BorderStyle.Solid).ToString();
RadioButtonList1.Items.Add(item);
RadioButtonList1.SelectedIndex = 0;
imgDefault.ImageUrl = “resim.jpg”;
}
}
protected void Button1_Click(object sender, EventArgs e)
{
panel1.BackColor = Color.FromName(DropDownList1.SelectedItem.Text);
lblmesaj.Font.Name = DropDownList2.SelectedItem.Text;
if (Int32.Parse(TextBox1.Text) > 0)
{
lblmesaj.Font.Size = FontUnit.Point(Int32.Parse(TextBox1.Text));
}
int borderValue = Int32.Parse(RadioButtonList1.SelectedItem.Value);
panel1.BorderStyle = (BorderStyle)borderValue;
if (CheckBox1.Checked)
{
imgDefault.Visible = true;
}
else
{
imgDefault.Visible = false;
}
lblmesaj.Text = TextBox2.Text;
}
}
}