国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費(fèi)電子書等14項(xiàng)超值服

開通VIP
項(xiàng)目中遇到的問題
 ArrayList的命名空間為Using System.Collections 
web.config中加入
 <globalization responseEncoding="GB2312" requestEncoding="GB2312"/>定義為中文類型
 昨天做項(xiàng)目時(shí)遇到一個(gè)問題就是如何把數(shù)據(jù)通過(guò)雙層傳遞的方式,傳到第三層。在第二層用了Session對(duì)象來(lái)傳值,但有一個(gè)頁(yè)面不能跳轉(zhuǎn)的問題,我想應(yīng)該在第一層的下方第一一個(gè)空頁(yè)面用來(lái)單獨(dú)存放Session數(shù)據(jù)就可以完成頁(yè)面之間的跳轉(zhuǎn),解決了沒有初始化數(shù)據(jù)的問題。還有一個(gè)問題是當(dāng)系統(tǒng)報(bào)錯(cuò)為初始化實(shí)例時(shí)可以用try,catch一下。
在市場(chǎng)部編輯實(shí)訓(xùn)生信息時(shí),我用Session對(duì)象把InternID值傳到了第二層以后的頁(yè)面中,然后用InternID值獲得了Intern表中的相關(guān)信息,查詢出來(lái)的DataTabel類型的數(shù)據(jù)集合內(nèi)的數(shù)據(jù)綁定到與查詢出來(lái)的字段信息相對(duì)應(yīng)的控件上,我用了雙層for循環(huán)來(lái)實(shí)現(xiàn)了這個(gè)功能,不知道還有沒有其他更好的方法。
 DataTable dt = _internEditBll.InternGetFinance(internID);
            for (int i = 0; i < dt.Rows.Count; i++)
            {
                for (int j = 0; j < dt.Columns.Count; j++)
                {
                    this.txtTotalMoney.Value = dt.Rows[0][0].ToString();//控件綁定數(shù)據(jù)
                    this.txtPrepay.Text = dt.Rows[0][1].ToString();
                    this.txtFare.Value = dt.Rows[0][2].ToString();
                    this.txtDeposit.Value = dt.Rows[0][3].ToString();
                }
 
protected void btnSure_Click(object sender, EventArgs e)//更新實(shí)訓(xùn)信息
        {
            string specialty = this.ddlSpecialty.SelectedValue;
            string internPlace = this.ddlInternPlace.SelectedValue;
            string trainingCyc = this.TrainingCyc.SelectedValue;
            string jobMode = this.ddlJobMode.SelectedValue;
            string dorm = this.ddlDorm.SelectedValue;
            DateTime  StartTime =Convert.ToDateTime(this.txttime.Text.Trim());
            internID = Session["interID"].ToString();
            if (_internEditBll.InternUpdateTrainingOfMarket(internID, specialty, internPlace, StartTime, trainingCyc, jobMode, dorm))
            {
                Response.Write("<script>alert('編輯成功!如果要繼續(xù)編輯請(qǐng)單擊下一步')</script>");
            }
            else
            {
                Alert("編輯失??!請(qǐng)重新編輯");//繼承自別的方法中的Alert()方法
            }
        }

DataTable dt = _internEditBll.InternGetIntern(internID);
            for (int i = 0; i < dt.Rows.Count; i++)
            {
                for (int j = 0; j < dt.Columns.Count; j++)
                {
                    this.txttime.Text = dt.Rows[0][2].ToString();
                    this.ddlSpecialty.SelectedValue = dt.Rows[0][0].ToString();//把從數(shù)據(jù)庫(kù)中查出來(lái)的數(shù)據(jù)綁定到控件上使控件的選項(xiàng)默認(rèn)為數(shù)據(jù)庫(kù)中的值

                    this.ddlInternPlace.SelectedValue = dt.Rows[0][1].ToString();
                    this.TrainingCyc.SelectedValue = dt.Rows[0][3].ToString();
                    this.ddlJobMode.SelectedValue = dt.Rows[0][4].ToString();
                    this.ddlDorm.SelectedValue = dt.Rows[0][5].ToString();
                }
            }
 
 
本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
FileUpload控件實(shí)例應(yīng)用 Excel數(shù)據(jù)導(dǎo)入數(shù)據(jù)庫(kù)
asp.net Directory生成文件夾
C#往SQLServer中插入大數(shù)據(jù)
從數(shù)據(jù)庫(kù)導(dǎo)入到Excel表格
操作sqlserver數(shù)據(jù)庫(kù)示例
25個(gè)基于瀏覽器的HTML在線編輯器集合
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長(zhǎng)圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服