default.aspx

来自「ASPNET程序开发范例宝典02.rar ASP.NET applicatio」· ASPX 代码 · 共 45 行

ASPX
45
字号
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!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 language="javascript">
function colorpick(field){
   var rtn = window.showModalDialog("Default2.aspx","","dialogWidth:225px;dialogHeight:170px;status:no;help:no;scrolling=no;scrollbars=no");
   if(rtn!=null)
	field.style.background=rtn;
 	return;
   }
</script>

</head>
<body>
    <form id="form1" runat="server">
    <div style="text-align: center">
        <table cellpadding="0" cellspacing="0" style="background-image: url(Images/1111.bmp);
            width: 464px; height: 233px">
            <tr>
                <td style="width: 96px; height: 30px">
                </td>
                <td style="width: 28px; height: 30px">
                    <asp:TextBox ID="TextBox1" runat="server" readonly="true" size="3" style="background-color:#000000"  Width="67px" Height="13px" onClick="colorpick(this)"></asp:TextBox></td>
                <td style="width: 114px; height: 30px">
                </td>
            </tr>
            <tr>
                <td style="width: 96px; height: 146px">
                </td>
                <td style="width: 28px; height: 146px">
                </td>
                <td style="width: 114px; height: 146px;">
                </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?