Test.aspx
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>DropDownList</title>
<script src="http://www.biletbilet.com/Templates/js/jquery.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
$("#ddlSonuc").html($('#<%=ddl.ClientID %> option:selected').text());
});
</script>
</head>
<body>
<form id="form1" runat="server">
<asp:DropDownList ID="ddl" runat="server"></asp:DropDownList>
<div id="ddlSonuc"></div>
</form>
</body>
</html>Test.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class test : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
int don = 5;
for (int i = 1; i < don; i++)
{
ddl.Items.Add(new ListItem("Deneme Value " + i + " ", "" + i + ""));
}
}
}