我无法让jQuery easySlider工作.谁能找到我错的地方?
<%@ Page Title="About me" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
CodeFile="About.aspx.cs" Inherits="About" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
<script type="text/javascript" src="Scripts/easySlider1.7.js"></script>
<script type="text/javascript" src="Scripts/jquery-1.7.js" ></script>
<script type="text/javascript">
$(document).ready(function () {
$("#slider").easySlider();
});
</script>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<h2>About me</h2>
<p> Info on the user logged in.</p>
<p>Name:</p>
<p>Student number:</p>
<p>If information displayed is incorrect, please email with corect details.</p>
<div id="slider">
<ul>
<li><a href="#"><img src="Styles/images/slider/01.jpg" alt="Css Template Preview" /></a></li>
<li><a href="#"><img src="Styles/images/slider/02.jpg" alt="Css Template Preview" /></a></li>
<li><a href="#"><img src="Styles/images/slider/03.jpg" alt="Css Template …Run Code Online (Sandbox Code Playgroud) 我正在创建一个MVC 3应用程序,其中包含有关"关联"的数据,但我还需要能够通过应用程序删除这些"关联".我正在使用Delete ActionResult,但每次我尝试删除一个条目时,我都会收到以下服务器错误:
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 14: <div class="form-grid-1">
Line 15: <div class="display-label">@Html.LabelFor(model => model.FirstName)</div>
Line 16: <div class="display-field">@Model.FirstName</div>
Line 17: </div>
Line 18:
Source File: …Run Code Online (Sandbox Code Playgroud)