国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > .NET > 正文

用ASP.NET寫你自己的代碼生成器(1)。

2024-07-10 13:01:54
字體:
來源:轉載
供稿:網友
最近寫實體類集合類控制類什么的太“類”了,因此就花了點時間寫了個代碼生成器,與大家共享!

frmmain.aspx

<%@ page language="c#" codebehind="frmmain.aspx.cs" autoeventwireup="false" inherits="web_test.frmmain" %>
<!doctype html public "-//w3c//dtd html 4.0 transitional//en" >
<html>
    <head>
        <title>frmmain</title>
        <meta name="generator" content="microsoft visual studio 7.0">
        <meta name="code_language" content="c#">
        <meta name="vs_defaultclientscript" content="javascript">
        <meta name="vs_targetschema" content="http://schemas.microsoft.com/intellisense/ie5">
    </head>
    <body ms_positioning="gridlayout">
        <form id="frmmain" method="post" runat="server">
            <asp:textbox id="txtservername" style="z-index: 101; left: 116px; position: absolute; top: 24px; design_time_lock: true" runat="server" font-size="10pt" design_time_lock="true">192.168.0.220</asp:textbox>
            <asp:label id="label7" style="z-index: 112; left: 24px; position: absolute; top: 98px; design_time_lock: true" runat="server" width="79px" height="20px" font-size="10pt" design_time_lock="true">數據庫列表</asp:label>
            <asp:label id="label6" style="z-index: 111; left: 27px; position: absolute; top: 169px; design_time_lock: true" runat="server" width="53px" height="20px" font-size="10pt" design_time_lock="true" visible="false">字段名</asp:label>
            <asp:label id="label5" style="z-index: 109; left: 27px; position: absolute; top: 135px; design_time_lock: true" runat="server" width="53px" height="20px" font-size="10pt" design_time_lock="true">表名</asp:label>
            <asp:button id="button1" style="z-index: 107; left: 496px; position: absolute; top: 91px; design_time_lock: true" runat="server" width="102px" text="gettable" font-size="10pt" design_time_lock="true"></asp:button>
            <asp:label id="label4" style="z-index: 106; left: 288px; position: absolute; top: 63px; design_time_lock: true" runat="server" width="79px" height="20px" font-size="10pt" design_time_lock="true">密碼</asp:label>
            <asp:label id="label2" style="z-index: 105; left: 25px; position: absolute; top: 61px; design_time_lock: true" runat="server" width="79px" height="20px" font-size="10pt" design_time_lock="true">用戶名</asp:label>
            <asp:label id="label1" style="z-index: 104; left: 25px; position: absolute; top: 28px; design_time_lock: true" runat="server" width="79px" height="20px" font-size="10pt" design_time_lock="true">服務器名</asp:label>
            <asp:textbox id="txtpassword" style="z-index: 103; left: 376px; position: absolute; top: 60px; design_time_lock: true" runat="server" font-size="10pt" backcolor="transparent" forecolor="black" bordercolor="white" design_time_lock="true"></asp:textbox>
            <asp:textbox id="txtusername" style="z-index: 102; left: 116px; position: absolute; top: 62px; design_time_lock: true" runat="server" font-size="10pt" design_time_lock="true">sa</asp:textbox>
            <asp:dropdownlist id="dropdownlist1" style="z-index: 108; left: 115px; position: absolute; top: 135px; design_time_lock: true" runat="server" width="208px" autopostback="true" font-size="10pt" design_time_lock="true"></asp:dropdownlist>
            <asp:dropdownlist id="dropdownlist2" style="z-index: 110; left: 115px; position: absolute; top: 171px; design_time_lock: true" runat="server" width="208px" height="28px" font-size="10pt" design_time_lock="true" visible="false"></asp:dropdownlist>
            <asp:button id="button2" style="z-index: 113; left: 355px; position: absolute; top: 92px; design_time_lock: true" runat="server" width="107px" text="getdatabase" design_time_lock="true"></asp:button>
            <asp:dropdownlist id="dropdownlist3" style="z-index: 114; left: 115px; position: absolute; top: 98px; design_time_lock: true" runat="server" width="207px" height="25px" design_time_lock="true"></asp:dropdownlist>
            <asp:button id="button3" style="z-index: 115; left: 354px; position: absolute; top: 132px; design_time_lock: true" runat="server" width="110px" text="生 成" design_time_lock="true" visible="false"></asp:button>
            <asp:textbox id="txtlayout" style="z-index: 117; left: 26px; position: absolute; top: 206px; design_time_lock: true" runat="server" width="619px" height="367px" textmode="multiline" backcolor="ivory" design_time_lock="true"></asp:textbox>
            <asp:button id="button4" style="z-index: 118; left: 497px; position: absolute; top: 130px; design_time_lock: true" runat="server" height="25px" width="105px" text="實體類" design_time_lock="true"></asp:button>
            <asp:button id="button5" style="z-index: 119; left: 355px; position: absolute; top: 171px; design_time_lock: true" runat="server" width="107px" text="test" height="25px" design_time_lock="true" visible="false"></asp:button>
            <asp:button id="button6" style="z-index: 120; left: 499px; position: absolute; top: 171px; design_time_lock: true" runat="server" height="23px" width="105px" text="集合類" design_time_lock="true" visible="false"></asp:button>
        </form>
    </body>
</html>

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 成武县| 桦南县| 绥芬河市| 惠州市| 奉化市| 金川县| 河南省| 深泽县| 西华县| 云南省| 阿克陶县| 沾益县| 米易县| 鹤岗市| 长治县| 环江| 长垣县| 德令哈市| 龙里县| 肇州县| 墨竹工卡县| 东山县| 改则县| 页游| 永吉县| 醴陵市| 桂东县| 泰和县| 汤阴县| 张家口市| 奉化市| 晋州市| 白朗县| 东台市| 南开区| 涟源市| 汝南县| 林州市| 突泉县| 双辽市| 黔西县|