日期:2014-05-16  浏览次数:20340 次

asp.net直接调用jquery的highslide命令
我使用了highslide,然后很简单添加了一个div,一个inputButton中click事件来显示这个div
先上代码
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="jquery.aspx.cs" Inherits="ajax_jquery" %>

<!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></title>
    <script type="text/javascript" src="../js/jquery/jquery.js"></script>
    <script type="text/javascript" src="../highslide/highslide-full.packed.js"></script>
    <link rel="Stylesheet" type="text/css" href="../highslide/highslide.css" media="screen" />
    <script type="text/javascript">
        hs.graphicsDir = '../highslide/graphics/';
        hs.outlineType = 'rounded-white';
        hs.showCredits = 'false';
        hs.align = 'center';
        hs.wrapperClassName = 'draggable-header';
        hs.headingText = "曲线图";
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <input ID="ex" runat="server" type="button" value="check"  onclick="return hs.htmlExpand(this)" />
    <div class="highslide-maincontent">
        <asp:Chart ID="Chart1" runat="server">
                <Series>
                    <asp:Series Name="Series1">
                        <Points>
                            <asp:DataPoint XValue="1" YValues="2" />
                            <asp:DataPoint XValue="2" YValues="3" />
                            <asp:DataPoint XValue="3" YValues="4" />
                            <asp:DataPoint XValue="4" YValues="5" />
                        </Points>
                    </asp:Series>
                <