




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
(中職)Web程序設(shè)計(jì)3-2任務(wù)二設(shè)計(jì)調(diào)查問卷網(wǎng)頁程序教學(xué)課件(工信版)任務(wù)二設(shè)計(jì)調(diào)查問卷網(wǎng)頁程序復(fù)習(xí)知識與技能任務(wù)描述任務(wù)分析任務(wù)二設(shè)計(jì)調(diào)查問卷網(wǎng)頁程序任務(wù)二設(shè)計(jì)調(diào)查問卷網(wǎng)頁程序任務(wù)二設(shè)計(jì)調(diào)查問卷網(wǎng)頁程序1<%@PageLanguage="C#"AutoEventWireup="true"CodeFile="030201.aspx.cs"Inherits="_030201"%>2<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""/TR/xhtml1/DTD/xhtml1-transitional.dtd">3<htmlxmlns="/1999/xhtml">4<headrunat="server">5<title></title>6<styletype="text/css">7.style18{font-size:x-large;9font-weight:bold;}10</style>11</head>12<body>13<formid="form1"runat="server">14<div>15<spanclass="style1">關(guān)于國慶活動的問卷調(diào)查</span>16<br/>17你是否愿意參加此次公司活動:18<asp:RadioButtonID="RadioButton1"runat="server"Font-Size="X-Large"Text="愿意"OnCheckedChanged="RadioButton1_CheckedChanged"AutoPostBack="True"/>19<asp:RadioButtonID="RadioButton2"runat="server"Font-Size="X-Large"Text="不愿意"OnCheckedChanged="RadioButton2_CheckedChanged"AutoPostBack="True"/><br/>20<asp:LabelID="Label1"runat="server"Font-Size="X-Large"Text="1、你喜歡的國慶活動形式:"></asp:Label>21<asp:DropDownListID="DropDownList1"runat="server">22<asp:ListItem>晚會</asp:ListItem>23<asp:ListItem>聚餐</asp:ListItem>24<asp:ListItem>K歌</asp:ListItem>25<asp:ListItem>旅游</asp:ListItem>26<asp:ListItem>聯(lián)誼</asp:ListItem>27<asp:ListItem>其他</asp:ListItem>28</asp:DropDownList><br/>29<asp:LabelID="Label2"runat="server"Font-Size="X-Large"Text="請?zhí)顚懸环N活動形式:"></asp:Label>30<asp:TextBoxID="TextBox1"Font-Size="X-Large"runat="server"></asp:TextBox><br/>31<asp:LabelID="Label3"runat="server"Font-Size="X-Large"Text="2、你希望舉辦活動的日期:"></asp:Label><br/>32<asp:RadioButtonListID="RadioButtonList1"runat="server"Height="24px"Width="607px"33RepeatDirection="Horizontal">34<asp:ListItem>10月1日</asp:ListItem>35<asp:ListItem>10月2日</asp:ListItem>36<asp:ListItem>10月3日</asp:ListItem>37<asp:ListItem>10月4日</asp:ListItem>38<asp:ListItem>10月5日</asp:ListItem>39<asp:ListItem>10月6日</asp:ListItem>40<asp:ListItem>10月7日</asp:ListItem>41</asp:RadioButtonList>42<asp:LabelID="Label4"runat="server"Font-Size="X-Large"Text="3、你希望在活動獲得的獎品:"></asp:Label><br/>43<asp:CheckBoxListID="CheckBoxList1"runat="server"Height="24px"Width="620px"RepeatDirection="Horizontal">44<asp:ListItem> 小米掛件 </asp:ListItem>45<asp:ListItem> 充電寶 </asp:ListItem>46<asp:ListItem> 抱枕 </asp:ListItem>47<asp:ListItem> 記事貼 </asp:ListItem>48<asp:ListItem> 卡套 </asp:ListItem>49<asp:ListItem> 辦公用品 </asp:ListItem>50</asp:CheckBoxList>51<asp:LabelID="Label5"runat="server"Font-Size="X-Large"Text="4、你最喜歡誰來負(fù)責(zé)活動:"></asp:Label>52<asp:ListBoxID="ListBox1"runat="server"Width="86px">53<asp:ListItem> 前臺 </asp:ListItem>54<asp:ListItem> 行政 </asp:ListItem>55<asp:ListItem> 人事 </asp:ListItem>56<asp:ListItem> 銷售 </asp:ListItem>57<asp:ListItem> 經(jīng)理 </asp:ListItem>58</asp:ListBox><br/>59<asp:ButtonID="Button1"runat="server"Font-Size="X-Large"Text="提交"OnClick="Button1_Click"/><br/>60<asp:LabelID="Label6"runat="server"Font-Size="X-Large"Text="您的選擇是:"></asp:Label>61</div>62</form>63</body>64</html>任務(wù)二設(shè)計(jì)調(diào)查問卷網(wǎng)頁程序1usingSystem;2publicpartialclass_030201:System.Web.UI.Page3{4protectedvoidPage_Load(objectsender,EventArgse)5{6if(IsPostBack)7{8Label1.Visible=false;9DropDownList1.Visible=false;10Label2.Visible=false;11TextBox1.Visible=false;12Label3.Visible=false;13RadioButtonList1.Visible=false;14Label4.Visible=false;15CheckBoxList1.Visible=false;16Label5.Visible=false;17ListBox1.Visible=false;18Label6.Visible=false;19Button1.Visible=false;20Label6.Text="你的選擇是:";21}22}23protectedvoidButton1_Click(objectsender,EventArgse)24{25stringchecklist_text="";26inti;27for(i=0;i<CheckBoxList1.Items.Count;i++)28{29if(CheckBoxList1.Items[i].Selected)30{31checklist_text=checklist_text+CheckBoxList1.Items[i].Text+"、";32Label6.Visible=true;33Label6.Text="你的選擇是:";34Label6.Text=Label6.Text+"<br>";35Label6.Text=Label6.Text+"1、你喜歡的國慶活動形式:"+DropDownList1.Text+":"+TextBox1.Text+"<br>";36Label6.Text=Label6.Text+"2、你希望舉辦活動的日期:"+RadioButtonList1.Text+"<br>";37Label6.Text=Label6.Text+"3、你希望在活動獲得的獎品:"+checklist_text+"<br>";38Label6.Text=Label6.Text+"4、你最喜歡誰來負(fù)責(zé)活動:"+ListBox1.Text+"<br>";39}40}41}42protectedvoidRadioButton2_CheckedChanged(objectsender,EventArgse)43{44Label1.Visible=false;45DropDownList1.Visible=false;46Label2.Visible=false;47TextBox1.Visible=false;48Label3.Visible=false;49RadioButtonList1.Visible=false;50Label4.Visible=false;51CheckBoxList1.Visible=false;52Label5.Visible=false;53ListBox1.Visible=false;54RadioButton1.Checked=false;55Button1.Visible=false;56Label6.Visible=true;57Label6.Text=Label6.Text+"<br><h1>"+RadioButton2.Text;58}59protectedvoidRadioButton1_CheckedChanged(objectsender,EventArgse)60{61Label1.Visible=true;62DropDownList1.Visible=true;63
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 產(chǎn)業(yè)園區(qū)入駐合同協(xié)議
- 關(guān)于推進(jìn)跨部門合作項(xiàng)目的工作計(jì)劃
- 關(guān)于采購流程的往來文書說明
- 商務(wù)會議溝通要點(diǎn)及會議紀(jì)要模板
- 健康管理平臺的構(gòu)建及運(yùn)營規(guī)劃
- 機(jī)器人智能化生產(chǎn)線建設(shè)委托代理合同
- 交通物流調(diào)度管理系統(tǒng)建設(shè)方案
- 房屋預(yù)約買賣合同
- 木材原木購銷合同
- 2025年版《認(rèn)識大熊貓》課件發(fā)布
- 《GMP實(shí)務(wù)教程》 完整全套教學(xué)課件 項(xiàng)目1-14 GMP基礎(chǔ)知識-藥品生產(chǎn)行政檢查
- 房屋租賃交接家私清單
- 《Hadoop大數(shù)據(jù)平臺基礎(chǔ)》復(fù)習(xí)考試題庫(帶答案)
- 大單元下的教學(xué)評一體化
- 注射用A型肉毒毒素管理制度
- 黑龍江省鶴崗市東方紅鄉(xiāng)地?zé)豳Y源普查探礦權(quán)出讓收益評估報告
- PMBOK知識重點(diǎn)電子筆記
- 精選湖北恩施州2023中考英語試題英語(解析版)
- 小學(xué)體育-小小特種兵教學(xué)設(shè)計(jì)學(xué)情分析教材分析課后反思
- 中國故事英文版年英文二篇
- GB/T 37827-2019城鎮(zhèn)供熱用焊接球閥
評論
0/150
提交評論