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

首頁(yè) > 編程 > .NET > 正文

用存儲(chǔ)過程向數(shù)據(jù)庫(kù)存值的具體實(shí)現(xiàn)

2024-07-10 12:44:02
字體:
供稿:網(wǎng)友
cs文件中的代碼
代碼如下:
//收看視頻三個(gè)標(biāo)準(zhǔn)
//從頁(yè)面?zhèn)鲄?shù)過來
int V1_BiaoZhou = Convert.ToInt32(TextBox1.Text);
int V1_FeiZhi= Convert.ToInt32(TextBox4.Text);

int V2_BiaoZhou = Convert.ToInt32(TextBox2.Text);
int V2_FeiZhi= Convert.ToInt32(TextBox5.Text);

int V3_BiaoZhou = Convert.ToInt32(TextBox3.Text);
int V3_FeiZhi= Convert.ToInt32(TextBox6.Text);

//作業(yè)批閱數(shù)(篇)
int Z1_BiaoZhun=Convert .ToInt32 (TextBox7 .Text );
int Z1_FeiZhi=Convert .ToInt32 (TextBox10 .Text );

int Z2_BiaoZhun=Convert .ToInt32 (TextBox8 .Text );
int Z2_FeiZhi=Convert .ToInt32 (TextBox11 .Text );

int Z3_BiaoZhun=Convert .ToInt32 (TextBox9 .Text );
int Z3_FeiZhi=Convert .ToInt32 (TextBox12 .Text );

//實(shí)例化對(duì)象(learning庫(kù)對(duì)應(yīng)的是EDBoperation)
edb=new EDBoperation();
//使用存儲(chǔ)過程
string procName="insert_Update_PROJECT_STANDARD";
//插入數(shù)據(jù)
SqlParameter[] spp=new SqlParameter[]{
new SqlParameter("@PROJECT_ID",projectID),
new SqlParameter("@V1_BIAOZHOU",V1_BiaoZhou),
new SqlParameter ("@V1_FENGZHI",V1_FeiZhi),
new SqlParameter ("@V2_BIAOZHOU",V2_BiaoZhou),
new SqlParameter ("@V2_FENGZHI",V2_FeiZhi),
new SqlParameter ("@V3_BIAOZHOU",V3_BiaoZhou),
new SqlParameter ("@V3_FENGZHI",V3_FeiZhi),
new SqlParameter ("@Z1_BIAOZHUN",Z1_BiaoZhun),
new SqlParameter ("@Z1_FENZHI",Z1_FeiZhi),
new SqlParameter ("@Z2_BIAOZHUN",Z2_BiaoZhun),
new SqlParameter ("@Z2_FENZHI",Z2_FeiZhi),
new SqlParameter ("@Z3_BIAOZHUN",Z3_BiaoZhun),
new SqlParameter ("@Z3_FENZHI",Z3_FeiZhi)

};

new SqlParameter ("數(shù)據(jù)庫(kù)存儲(chǔ)過程中的字段名",定義的字段名)
aspx中的代碼
代碼如下:
<tr>
<td style="width: 101px; text-align: center;">
<asp:Label ID="Label2" runat="server" Text="收看視頻(分鐘):" Font-Size="9pt" Width="132px"></asp:Label>
</td>
<td style="text-align: left;"colspan="2">
<table>
<tr style="height:25px;">
<td style="width:180px;"><asp:TextBox id="TextBox1" runat="server"></asp:TextBox></td>
<td style="width:180px;"><asp:TextBox id="TextBox4" runat="server"></asp:TextBox></td>
</tr>

<tr>
<td class="auto-style3"><asp:TextBox id="TextBox2" runat="server"></asp:TextBox></td>
<td class="auto-style3"><asp:TextBox id="TextBox5" runat="server"></asp:TextBox></td>
</tr>

<tr style="height:25px;">
<td style="width:180px;"><asp:TextBox id="TextBox3" runat="server" OnTextChanged="TextBox3_TextChanged"></asp:TextBox></td>
<td style="width:180px;"><asp:TextBox id="TextBox6" runat="server"></asp:TextBox></td>
</tr>

</table>

</td>
</tr>
<tr>
<td style="width: 101px; text-align: center;">
發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 财经| 樟树市| 梅河口市| 恩平市| 永年县| 新疆| 开平市| 马鞍山市| 洛川县| 财经| 新乡县| 彰化县| 苍溪县| 福建省| 万山特区| 宁波市| 长治市| 新津县| 高雄市| 密山市| 蒲江县| 高台县| 威宁| 丰台区| 昌都县| 同德县| 伊宁县| 石河子市| 惠东县| 丹东市| 象州县| 丹东市| 南丰县| 蕉岭县| 夏河县| 鸡西市| 康乐县| 江达县| 阿拉善左旗| 枣阳市| 东台市|