<script type="text/javascript" src="js/jquery.1.7.2min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
ckk();
});
function ckk(){
$(".ck").click(function(){ alert(1);
var pid="txtProductID";
var pn="cpmc";
var pc="cpdj";
$("#"+pid).val($(this).attr("pid"))
$("#"+pn).val($(this).attr("pn"))
$("#"+pc).val($(this).attr("pc"))
$(".showp").hide();
});
}
function load(){
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
}
function EndRequestHandler() {
ckk();
}
</script>
<body onload="load()">
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true"></asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="True">
<ContentTemplate>
……
<input id="Radio1" type="radio" name="nn" class="ck" pid="<%#Eval("ProductID") %>" pn="<%#Eval("ProductName") %>" pc="<%#Eval("price","{0:#.00}") %>" />
……
</ContentTemplate>
</asp:UpdatePanel>