作者a26732300 (Hades)
看板Tech_Job
標題Re: [請益] C#網頁程式
時間Wed Jul 10 00:51:28 2013
痾,首先你居然把神聖的程式碼翻成中文... 下面有大概修改一些觀念 java和c#沒差很多,你再看看 希望可以幫到你
※ 引述《tpdfes12000 (even)》之銘言: : 各位大大你們好,最近從前輩那裏拿到一連串程式碼 : 希望能幫他翻譯,但之前學過的語言只有JAVA,對C#真的不瞭解 : 想說試著套用JAVA語言翻譯看看(如下圖),可否煩請各位大大幫忙 : 若有翻譯錯誤的地方幫忙修改一下,謝謝 : http://imgur.com/GgrSFxY
: --------------------------------------------------------------------------- : 這像是一個讓檔案線上傳的程式碼 : 可能會擲回例外狀況的任何程式碼置於 try 區塊內 : { : 置放/w14_regular_image/的圖; : 新增一個 al 的檔案 這行的說法應該是 建立出一個屬於w14TableAdapterxxx類別的物件,名為a1
: al 輸入字串到TextBox1、TextBox2 TextBox3 是輸入日期,點選框為"基隆" 這行應該是呼叫a1這個物件裡面的insert這個方法,輸入的參數有 (textbox1.text(他已經是字串啦,為何前面多個string?)、textbox2、 textbox3(轉型成dateTime格式,這部分有做防呆嗎?user可能亂打你轉型可能會有exception) radiobuttonList(你選擇哪一個值),"基隆"(這寫死的吧不用選呀?))
: 呼叫 al a1.Dispose()應該單純是釋放a1這個物件的資源而已
: 頁面.客戶填寫.註冊表單(指定型態,"Insert",轉變"儲存成功") (this.GetType(),"insert","alert('儲存成功');") 這個是把javascript的函式置入asp.net的網頁,會跳出類似messageBox的訊息框
: 點選框1(false為預設(?)) : 點選框2(false為預設(?)) RadioBottonList2 第1個選項和第2個選項未選取 預設應該不是false吧,他想表達的意思是執行到這這兩個選項的選取狀態是"未選取"
: TextBox4~10為輸入字串 我想作者想表達的是清空TextBOX4~10的內容
: DropDownList1~7.Text為下拉選單有0~16可以選 及0~11可以選(?) DropDownList1、4、5、6、7.Text以這個程式看來單純就顯示請選擇,可能裡面有資料讓他選 DropDownList2的話應該是裡面有不知道有幾個選項,但可以確定的是裡面的第0~16的選項 是無法選取的狀態,你只能選17之後的選項 DropDownList3同理
: Panel1~6.visible為可見模板設定為預設(?) 執行這個程式panel1~6就會隱藏起來
: Panel7.visible=true(可看的到(?)) 只顯示panel7
: Panel8~11.visible為可見模板設定為預設(?) panel8~11也都隱藏
: -------------------------------------------------------------------------- : 拜託各位大大幫忙一下了,謝謝!!小弟感激不盡 --
※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.25.194.68
This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers. Five Filters recommends: 'You Say What You Like, Because They Like What You Say' - http://www.medialens.org/index.php/alerts/alert-archive/alerts-2013/731-you-say-what-you-like-because-they-like-what-you-say.html
留言列表