| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 577 人关注过本帖
标题:怎么办,求救了。。~!!!!!
只看楼主 加入收藏
cinderella0
Rank: 1
等 级:新手上路
帖 子:11
专家分:0
注 册:2008-8-29
收藏
 问题点数:0 回复次数:2 
怎么办,求救了。。~!!!!!
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="regUserAdd.aspx.cs" Inherits="aaa" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.

<html xmlns="http://www.
<head runat="server">
    <title>已发送明细</title>
    <script language="javascript" type="text/javascript" src="JS/scw.js" ></script>
    <link href="lable.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body { text-align: center; font-family:"宋体", arial;margin:0; padding:0; background: #FFF; font-size:12px; color:#000;}
div,form,img,ul,ol,li,dl,dt,dd {margin: 0; padding: 0; border: 0; }
.biaoti{ text-align:left; background:url(DDD.jpg) repeat-x; border:#264387 solid 1px; padding:3px;}
.biaoti1{ text-align:center; padding:5px 0;}

.biao{ color:#104a8a;}
.biao .title{ background:url(DDD-02.jpg) repeat-x;}
.biao .t1{ background:url(DDD-02.jpg);}
-->
</style>
</head>
<script>
function killMePlz(ss)
{
    alert("现在窗口的初始值为:"+ss);
 var obj = new Object();
    obj.name=ss;
    showx = event.screenX - event.offsetX +160; // + deltaX;
 showy = event.screenY - event.offsetY + 112; // + deltaY;
 newWINwidth = 210 + 14 + 118;
    str =window.showModalDialog("child.aspx",obj,"dialogWidth=200px;dialogHeight=200px");
 if(str==null||str=="")
 {
     alert("返回的str 为空 不改变");
     //document.form1.starttime.value="";
 }else
 {
     document.form1.starttime.value=str;
 }
}
</script>
<script>
function kill(zz)
{
    alert("现在窗口的初始值为:"+zz);
 var obj = new Object();
    obj.name=zz;
    showx = event.screenX - event.offsetX +160; // + deltaX;
 showy = event.screenY - event.offsetY + 112; // + deltaY;
 newWINwidth = 210 + 14 + 118;
    str =window.showModalDialog("child1.aspx",obj,"dialogWidth=200px;dialogHeight=200px");
 if(str==null||str=="")
 {
     alert("返回的str 为空 不改变");
     //document.form1.starttime.value="";
 }else
 {
     document.form1.chuod.value=str;
 }
}
</script>
<script >
function gbcount(TextBox1)
{  alert("aa");

    var aa="";
    var str="";
    if (TextBox1.value.length >= 1) {
    alert("aa");
     aa = TextBox1.value.substring(0,1);
       if(aa!="0"&&aa!="1"&&aa!="2"&&aa!="3"){
       alert("aa");
             //alert("aaa");
           document.getElementById("Label11").value="";
           document.getElementById("Label12").value="";
           document.getElementById("Label13").value="";
           document.getElementById("Label11").disabled=true ;
           document.getElementById("Label12").disabled=true ;
           document.getElementById("Label13").disabled=true ;
           document.getElementById("Label8").disabled=false ;
       }
            }
</script>
<body>
    <form id="form1" runat="server">
    <div>
        <div class="biaoti" style="background-attachment: fixed; background-image: url(Images/1.gif); background-repeat: repeat; background-color: #abd0ff; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid; border-left-color: #0099ff; border-bottom-color: #0099ff; border-top-color: #0099ff; border-right-color: #0099ff;">
      <asp:Label ID="Label2" runat="server" Text="Label" CssClass ="biao">您现在所处的位置>>>用户信息添加  </asp:Label></div>
        <div class="biaoti1"><asp:Label ID="Label3" runat="server" Text="Label" CssClass ="biao"><strong style="font-size:14px">用户信息添加</strong></asp:Label>&nbsp;</div>
        <table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#264387" class="biao">
          <tr>
            <td height="25" align="right" class="title" style="background-color: #abd0ff; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid; border-left-color: #0099ff; border-bottom-color: #0099ff; border-top-color: #0099ff; border-right-color: #0099ff;"><asp:Label ID="Label4" runat="server" Text="Label" CssClass ="biao">会员编号:<font color="#FF0000">*</font></asp:Label></td>
            <td style="text-align: left; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid; border-left-color: #0099ff; border-bottom-color: #0099ff; border-top-color: #0099ff; border-right-color: #0099ff;">&nbsp;<asp:TextBox ID="TextBox1" runat="server" MaxLength="6"></asp:TextBox></td>
            <td align="right" class="title" style="background-color: #abd0ff; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid; border-left-color: #0099ff; border-bottom-color: #0099ff; border-top-color: #0099ff; border-right-color: #0099ff;">&nbsp;
            <asp:Label ID="Label5" runat="server" Text="Label">会员姓名:<font color="#FF0000">*</font></asp:Label></td>
            <td style="text-align: left; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid; border-left-color: #0099ff; border-bottom-color: #0099ff; border-top-color: #0099ff; border-right-color: #0099ff;">&nbsp;<asp:TextBox ID="TextBox2" runat="server" MaxLength="4"></asp:TextBox></td>
          </tr>
          <tr>
            <td height="25" align="right" class="title" style="background-color: #abd0ff; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid; border-left-color: #0099ff; border-bottom-color: #0099ff; border-top-color: #0099ff; border-right-color: #0099ff;"><asp:Label ID="Label6" runat="server" Text="Label">手机号码:<font color="#FF0000">*</font></asp:Label></td>
            <td style="text-align: left; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid; border-left-color: #0099ff; border-bottom-color: #0099ff; border-top-color: #0099ff; border-right-color: #0099ff;">&nbsp;<asp:TextBox ID="TextBox3" runat="server" MaxLength="11"></asp:TextBox></td>
            <td align="right" class="title" style="background-color: #abd0ff; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid; border-left-color: #0099ff; border-bottom-color: #0099ff; border-top-color: #0099ff; border-right-color: #0099ff;"><asp:Label ID="Label7" runat="server" Text="Label">会员组别:</asp:Label></td>
            <td style="text-align: left; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid; border-left-color: #0099ff; border-bottom-color: #0099ff; border-top-color: #0099ff; border-right-color: #0099ff;">&nbsp;<asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="true">
              <asp:ListItem Value=""></asp:ListItem>
              <asp:ListItem Value="其他">其他</asp:ListItem>
              <asp:ListItem Value="上级主管">上级主管</asp:ListItem>
              <asp:ListItem Value="学生家长">学生家长</asp:ListItem>
              <asp:ListItem Value="在校教师">在校教师</asp:ListItem>
            </asp:DropDownList></td>
          </tr>
          <tr>
            <td align="right" class="title" style="background-color: #abd0ff; border-top-style: solid; border-right-style: solid; border-left-style: solid; height: 27px; border-bottom-style: solid; border-left-color: #0099ff; border-bottom-color: #0099ff; border-top-color: #0099ff; border-right-color: #0099ff;"><asp:Label ID="Label8" runat="server" Text="Label" CssClass="biao">年级:</asp:Label></td>
            <td style="text-align: left; border-top-style: solid; border-right-style: solid; border-left-style: solid; height: 27px; border-bottom-style: solid; border-left-color: #0099ff; border-bottom-color: #0099ff; border-top-color: #0099ff; border-right-color: #0099ff;">&nbsp;<input onclick='killMePlz(this.value);return false' value='' id="starttime" name="starttime" runat="server" size=50 style=" width:90px;" /></td>
            <td align="right" class="title" style="background-color: #abd0ff; border-top-style: solid; border-right-style: solid; border-left-style: solid; height: 27px; border-bottom-style: solid; border-left-color: #0099ff; border-bottom-color: #0099ff; border-top-color: #0099ff; border-right-color: #0099ff;">&nbsp;
              <asp:Label ID="Label9" runat="server" Text="Label">性别:</asp:Label></td>
            <td style="text-align: left; border-top-style: solid; border-right-style: solid; border-left-style: solid; height: 27px; border-bottom-style: solid; border-left-color: #0099ff; border-bottom-color: #0099ff; border-top-color: #0099ff; border-right-color: #0099ff;">&nbsp;<asp:DropDownList ID="DropDownList5" runat="server">
              <asp:ListItem>男</asp:ListItem>
              <asp:ListItem>女</asp:ListItem>
            </asp:DropDownList></td>
          </tr>
          <tr>
            <td height="25" align="right" class="title" style="background-color: #abd0ff; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid; border-left-color: #0099ff; border-bottom-color: #0099ff; border-top-color: #0099ff; border-right-color: #0099ff;"><asp:Label ID="Label10" runat="server" Text="Label">辅导教师:</asp:Label></td>
            <td style="text-align: left; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid; border-left-color: #0099ff; border-bottom-color: #0099ff; border-top-color: #0099ff; border-right-color: #0099ff;">&nbsp;<asp:TextBox ID="TextBox4" runat="server"></asp:TextBox></td>
            <td align="right" class="title" style="background-color: #abd0ff; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid; border-left-color: #0099ff; border-bottom-color: #0099ff; border-top-color: #0099ff; border-right-color: #0099ff;"><asp:Label ID="Label11" runat="server" Text="Label">家长姓名:</asp:Label></td>
            <td style="text-align: left; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid; border-left-color: #0099ff; border-bottom-color: #0099ff; border-top-color: #0099ff; border-right-color: #0099ff;">&nbsp;<asp:TextBox ID="TextBox6" runat="server"></asp:TextBox></td>
          </tr>
          <tr>
            <td height="25" align="right" class="title" style="background-color: #abd0ff; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid; border-left-color: #0099ff; border-bottom-color: #0099ff; border-top-color: #0099ff; border-right-color: #0099ff;"><asp:Label ID="Label12" runat="server" Text="Label">就读类别:</asp:Label></td>
            <td style="text-align: left; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid; border-left-color: #0099ff; border-bottom-color: #0099ff; border-top-color: #0099ff; border-right-color: #0099ff;">&nbsp;<asp:DropDownList ID="DropDownList1" runat="server">
              <asp:ListItem></asp:ListItem>
              <asp:ListItem>校外</asp:ListItem>
              <asp:ListItem>子弟</asp:ListItem>
            </asp:DropDownList></td>
            <td align="right" class="title" style="background-color: #abd0ff; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid; border-left-color: #0099ff; border-bottom-color: #0099ff; border-top-color: #0099ff; border-right-color: #0099ff;"><asp:Label ID="Label13" runat="server" Text="Label">托管类别:</asp:Label></td>
            <td style="text-align: left; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid; border-left-color: #0099ff; border-bottom-color: #0099ff; border-top-color: #0099ff; border-right-color: #0099ff;">&nbsp;<asp:DropDownList ID="DropDownList3" runat="server">
              <asp:ListItem></asp:ListItem>
              <asp:ListItem>非就餐</asp:ListItem>
              <asp:ListItem>就餐</asp:ListItem>
            </asp:DropDownList></td>
          </tr>
          <tr>
            <td height="25" align="right" class="title" style="background-color: #abd0ff; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid; border-left-color: #0099ff; border-bottom-color: #0099ff; border-top-color: #0099ff; border-right-color: #0099ff;"><asp:Label ID="Label14" runat="server" Text="Label">兴趣团组:</asp:Label></td>
            <td style="text-align: left; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid; border-left-color: #0099ff; border-bottom-color: #0099ff; border-top-color: #0099ff; border-right-color: #0099ff;">&nbsp;<input onclick='kill(this.value);return false' value='' id="chuod" name="chuod" runat="server" size=50 style=" width:90px;" /></td>
            <td align="right" class="title" style="background-color: #abd0ff; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid; border-left-color: #0099ff; border-bottom-color: #0099ff; border-top-color: #0099ff; border-right-color: #0099ff;"><asp:Label ID="Label16" runat="server" Text="Label">后延点班:</asp:Label></td>
            <td style="text-align: left; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid; border-left-color: #0099ff; border-bottom-color: #0099ff; border-top-color: #0099ff; border-right-color: #0099ff;">&nbsp;<asp:DropDownList ID="DropDownList6" runat="server">
              <asp:ListItem></asp:ListItem>
              <asp:ListItem>是</asp:ListItem>
              <asp:ListItem>否</asp:ListItem>
            </asp:DropDownList></td>
          </tr>
          <tr>
            <td height="25" align="right" class="title" style="background-color: #abd0ff; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid; border-left-color: #0099ff; border-bottom-color: #0099ff; border-top-color: #0099ff; border-right-color: #0099ff;"><asp:Label ID="Label15" runat="server" Text="Label">会员截止时间:</asp:Label></td>
            <td style="text-align: left; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid; border-left-color: #0099ff; border-bottom-color: #0099ff; border-top-color: #0099ff; border-right-color: #0099ff;">&nbsp;<input name="Input" id="ffSearchTime1" style=" width:90px;" onclick='scwShow(this,event);' value='' runat="server" /></td>
            <td align="right" class="title" style="background-color: #abd0ff; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid; border-left-color: #0099ff; border-bottom-color: #0099ff; border-top-color: #0099ff; border-right-color: #0099ff;"><asp:Label ID="Label18" runat="server" Text="Label">单位/住址:</asp:Label></td>
            <td style="text-align: left; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid; border-left-color: #0099ff; border-bottom-color: #0099ff; border-top-color: #0099ff; border-right-color: #0099ff;">&nbsp;<asp:TextBox ID="TextBox9" runat="server"></asp:TextBox></td>
          </tr>
          <tr>
            <td height="25" align="right" class="title" style="background-color: #abd0ff; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid; border-left-color: #0099ff; border-bottom-color: #0099ff; border-top-color: #0099ff; border-right-color: #0099ff;"><asp:Label ID="Label17" runat="server" Text="Label">会员状态</asp:Label></td>
            <td style="text-align: left; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid; border-left-color: #0099ff; border-bottom-color: #0099ff; border-top-color: #0099ff; border-right-color: #0099ff;">&nbsp;<asp:DropDownList ID="DropDownList4" runat="server">
              <asp:ListItem>开放</asp:ListItem>
              <asp:ListItem>受限</asp:ListItem>
            </asp:DropDownList></td>
            <td class="title" style="border-top-style: solid; border-right-style: solid; border-left-style: solid; background-color: #abd0ff; border-bottom-style: solid; border-left-color: #0099ff; border-bottom-color: #0099ff; border-top-color: #0099ff; border-right-color: #0099ff;">&nbsp;</td>
            <td style="border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid; border-left-color: #0099ff; border-bottom-color: #0099ff; border-top-color: #0099ff; border-right-color: #0099ff;">&nbsp;</td>
          </tr>
          <tr>
            <td align="right" class="t1" style="background-color: #abd0ff; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid; border-left-color: #0099ff; border-bottom-color: #0099ff; border-top-color: #0099ff; border-right-color: #0099ff;"><asp:Label ID="Label19" runat="server" Text="Label">备注</asp:Label></td>
            <td colspan="3" style="text-align: left; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid; border-left-color: #0099ff; border-bottom-color: #0099ff; border-top-color: #0099ff; border-right-color: #0099ff;">&nbsp;<asp:TextBox ID="TextBox10" runat="server" Height="61px" Width="335px" TextMode="MultiLine" style="border-left-color: #0099ff; border-bottom-color: #0099ff; border-top-style: solid; border-top-color: #0099ff; border-right-style: solid; border-left-style: solid; border-right-color: #0099ff; border-bottom-style: solid"></asp:TextBox></td>
          </tr>
        </table>
        <br />
        <asp:Button ID="Button1" runat="server" Text="确定" OnClick="Button1_Click" style="border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid; border-left-color: #ffffff; border-bottom-color: #ffffff; border-top-color: #ffffff; background-color: #ffffff; border-right-color: #ffffff;"/>
        <asp:Button ID="Button2" runat="server" Text="取消" OnClick="Button2_Click" style="border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid; border-left-color: #ffffff; border-bottom-color: #ffffff; border-top-color: #ffffff; background-color: #ffffff; border-right-color: #ffffff;" /><br />
        </div>
    </form>
</body>
</html>
为什么js不能用啊~!!!!
2008-10-08 10:42
cinderella0
Rank: 1
等 级:新手上路
帖 子:11
专家分:0
注 册:2008-8-29
收藏
得分:0 
我想做的是在textbox1中输入的第一个数字是0,然后判定剩下的textbox是不是可写的。
textbox中的第一个数字是1,判定剩下的textbox抗那些可以写,那些不能写,谁会啊
2008-10-08 10:44
hebingbing
Rank: 6Rank: 6
来 自:黄土高坡
等 级:贵宾
威 望:27
帖 子:3417
专家分:371
注 册:2007-10-22
收藏
得分:0 
晕……
2008-10-08 10:49
快速回复:怎么办,求救了。。~!!!!!
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.056823 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved