|
|
TÀI LIỆU HỌC TẬP
|
Control bình chọn bài viết trong asp.net (ASP.NET Rating Control)
(08:34 26/10/2011)
|
- Add a reference control,
-
<%@ Page Language="C#" AutoEventWireup="true"
Codebehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %>
<%@ Register Namespace="ASPnetRater" Assembly="ASPnetRater" TagPrefix="cc" %>
<!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 runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<cc:Rater ID="Rater1" runat="server"
ImageOff="/assets/images/rating_grey_star.gif"
Value="3" MaxValue="5" ImageOn="/assets/images/rating_red_star.gif"
ToolTip="I'm a rater" OnCommand="Rater1_Command"
ImageOver="/assets/images/rating_yellow_star.gif"></cc:Rater>
</div>
</form>
</body>
</html>
|
Danh sách file đính kèm:
|
-
ASPnetRater.zip |
|
|
|