不工作我有VS 2005和.NET 2.0 ...我的代码如下:的jQuery在.NET 2.0
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Edw.aspx.cs" Inherits="BenefitsPaymentSystem.Edw" MasterPageFile="~/Main.Master" %>
<asp:Content ContentPlaceHolderID="ContentPlaceHolder1" ID="EDWContent" runat="server">
<asp:Panel ID="pnlSearchEDW" GroupingText="Search Enterprise Dataware House " runat="server" CssClass="panel">
<asp:RadioButtonList Visible="false" ForeColor="midnightblue" ID="rblEDWSearchOtpions" runat="server" RepeatDirection="Horizontal" CellPadding="5" CellSpacing="10" OnSelectedIndexChanged="rblEDWSearchOtpions_Change" AutoPostBack="true" >
<asp:ListItem Text="Client Serach" Value="Client"></asp:ListItem>
<asp:ListItem Text="Program Area Search" Value="Program"></asp:ListItem>
</asp:RadioButtonList>
<a id="lnkSearch" href="#" onclick="slidein();return false;">Begin Client Search</a>
<br />
<br />
</asp:Panel>
<br />
<br />
<div id="clientdiv">
<asp:Panel id="pnlClientSearch" runat="server" CssClass="panel" Visible="true" GroupingText="Client Search">
<table>
<tr>
<td class="textCell">Case# and Suffix</td>
<td class="dataCell">
<asp:TextBox ID="txtCaseAndSuffix" runat="server"></asp:TextBox>
</td>
<td class="textCell">SSN</td>
<td class="dataCell">
<asp:TextBox ID="txtSSN" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td class="textCell">CIN</td>
<td class="dataCell">
<asp:TextBox ID="txtCIN" runat="server"></asp:TextBox>
</td>
<td class="textCell">First/Last Name</td>
<td class="dataCell">
<asp:TextBox ID="txtFirstName" runat="server"></asp:TextBox>
</td>
</tr>
</table>
</asp:Panel>
</div>
<asp:Panel ID="pnlProgramAreaSearch" runat="server" CssClass="panel" Visible="false" GroupingText="Program Area Search">
<table>
<tr>
<td class="textCell"></td>
<td class="dataCell">
<asp:DropDownList ID="dddPrgramSearchList" runat="server" CssClass="ddl" Width="150pt">
<asp:ListItem Text="PA" Value="PA"></asp:ListItem>
<asp:ListItem Text="NPA" Value="NPA"></asp:ListItem>
<asp:ListItem Text="MA" Value="MA"></asp:ListItem>
<asp:ListItem Text="ALL" Value="ALL"></asp:ListItem>
</asp:DropDownList>
</td>
</tr>
</table>
</asp:Panel>
<script type="text/javascript" language="javascript">
$(document).ready(function() {
alert('');
});
function slidein()
{
alert('');
$('#ctl00_ContentPlaceHolder1_pnlClientSearch').fadeIn('slow',3000);
//$('#clientdiv').fadeIn('slow');
//retunr false;
}
</script>
的淡入是不工作... altough jQuery的文件准备被callledd .... 我没有任何脚本错误....我想面板在幻灯片...我ASLO尝试了作为的slideIn以及....
我在代码中看不到对jQuery库的引用。它是否存在于此示例块之外? – 2011-05-10 19:55:27
是的,它是在母版页...其绝对包括作为document.ready生成警报....如果它包含....文件准备不会工作 – abbas 2011-05-10 19:57:34