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

Js小菜鸟,怎么能让修改,取消,保存多次应用,怎么修改,不会啊
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="试验品.aspx.cs" Inherits="试验品" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <script src="Scripts/jquery-1.7.1.js"></script>
    <script src="Scripts/WebForms/WebForms.js"></script>
    <title></title>
    <script type="text/javascript">
 window.onload = function () {
            var oUpdate = document.getElementById("update");
            var oSave = document.getElementById("save1");
            var oCancel = document.getElementById("cancel");
            oSave.style.display = "none";
            oCancel.style.display = "none";
            oUpdate.onclick = function () {
                oUpdate.style.display = "none";
                oSave.style.display = "block";
                oCancel.style.display = "block";

            }
            oCancel.onclick = function () {
                history.go(-1);
                oSave.style.display = "none";
                oCancel.style.display = "none";
                oUpdate.style.display = "block";
            }
            oSave.onclick = function () {
                oSave.style.display = "none";
                oCancel.style.display = "none";
                oUpdate.style.display = "block";
            }

        }
    </script>
   
</head>
<body>
    <form id="form1" runat="server">
    <div>
<div>
        <asp:TextBox ID="TextBox3" runat="server" Width="100px" ></asp:TextBox> 
   &n