母版框架的问题,javascript失效!!!大家帮看看!UUUUUUUUUUUUUUUUUUUUUUUUUUUU
项目后台用的母版做的框架
然后子页里用的一个分页里需要javascript
原来是写在head标签里
后来加到框架里就失效了 大家看下代码
<%@ Page Language= "C# " AutoEventWireup= "true " CodeFile= "SaleList.aspx.cs " Inherits= "Admin_Sale_SaleList " MasterPageFile= "~/Admin/AdminManager.master " %>
<asp:Content ContentPlaceHolderID=ContentPlaceHolder1 EnableViewState=true runat=server Visible=true>
<script language=javascript>
function ChangePage(i)
{
document.all.hiddenCurrentPage.value = i;
__doPostBack( 'btnClick ', ' ');
}
</script>
<div>
<table align= "center " border= "0 " cellpadding= "0 " cellspacing= "0 " style= "width: 420px ">
<tr>
<td align= "center " style= "height: 18px "> 出售单列表 </td>
</tr>
<tr>
<td align= "center ">
<asp:DataList ID= "dlstSaleList " runat= "server ">
..................................................
有碰到过的吗
------解决方案--------------------使用ClientID属性