Tải bản đầy đủ (.ppt) (27 trang)

Điều khiển Web pdf

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (925.25 KB, 27 trang )






Gii thch điu khin Web Control

Ti sao cc điu khin l đi tưng

D!ng điu khin cho nh"p chu$i

D!ng điu khin di chuyn

D!ng điu khin ch'n

D!ng Rich Control



Intrinsic
List
Rich
Validation




 !"

#$%&'()*
+%$$,


-,-%"

./%--',
 !$01!%
("
Điu khin Web l cc đi tưng

2(3
2-(%%45#65-%45--53
,78,9(:;<=->?->@
A
((.%"B04=-"B,=-:@C
8,9">%(74D%(C
8,E"F(4-C
G
,78,E(:;<=->?->@
A
((.%"B0455C
8,E"F(4D%(C
8,9">%(74-C
G
2H-3
Điu khin Web l cc đi tưng

2,7I3
2D,--%45--53
2%J(%(745((.%5045#(,,5
-%45--5H3
2-32-3
2%J,7458,95I4045#(,

,KK,L%5;#(458,9(5-%45--5H3
2%J,7458,E5I4045#(%-
(%(5(4D%(;#(458,E(5-%45--5H3
2-3
2HD,-3
2H,7I3
2H(3
Điu khin Web l cc đi tưng



<input type=
“checkbox”>
<input type= “radio”>
<asp:CheckBox>
<asp:RadioButton>
<asp:TextBox rows=“1”>
<asp:TextBox rows=“10”>
<asp:TextBox rows=“1”>
<asp:TextBox rows=“10”>
<input type= “text”>
< textarea>
<input type= “text”>
< textarea>

<asp:textbox id="name"
runat="server"/>
<asp:textbox id="add"
textmode="multiline" rows=“10"
columns="10" runat="server"/>

<asp:textbox id="pwd"
textmode="password" runat="server"/>
!"#


 
!" "
#$%&%
'$$()


*!" "
 $%#
 $%
<asp:checkbox id="chkbx1" Text="Select Me" runat="server"/>
&'
<asp:CheckBoxList id="CheckBoxList1" runat="server">
<asp:ListItem Value="Maths">Maths</asp:ListItem>
<asp:ListItem Value="Science">Science</asp:ListItem>
<asp:ListItem Value="English">English</asp:ListItem>
<asp:ListItem
Value="Computers">Computers</asp:ListItem>
</asp:CheckBoxList>


<asp:radiobutton id ="radbt1" Text =" Radio Button no 1"
groupname="radio" runat="server"/>
<asp:radiobutton id ="radbt2" Text =" Radio Button no 2"
groupname="radio" runat="server"/>
<asp:radiobutton id ="radbt3" Text =" Radio Button no 3“

groupname="radio" runat="server"/>
<asp:listbox id="lstbx1" SelectionMode=”Single”
runat="server"/>
<asp:dropdownlist id= "dropdnlst1" runat="server" />
&'
<asp:RadioButtonList id="RadioButtonList1" runat="server">
<asp:ListItem Value="Red">Red</asp:ListItem>
<asp:ListItem Value="Blue">Blue</asp:ListItem>
<asp:ListItem Value="Green">Green</asp:ListItem>
<asp:ListItem Value="Yellow">Yellow</asp:ListItem>
</asp:RadioButtonList>
ArrayList arrlist= new
ArrayList();
arrlist.Add ("Four");
arrlist.Add ("Five");
arrlist.Add ("Six");
ddl.DataSource =arrlist;
void Page_Load (Object Src, EventArgs E)
{
ddl.Items.Add("<10");
ddl.Items.Add("10-20");
ddl.Items.Add("20-30");
ddl.Items.Add("30-40");
ddl.Items.Add("40-50");
ddl.Items.Add(">50");
}
<asp:listbox id="lbs" runat="server">
<asp:ListItem> One </asp:ListItem>
<asp:ListItem> Two </asp:ListItem>
<asp:ListItem> Three </asp:ListItem>

</asp:listbox>
<asp:dropdownlist id= "ddl"
runat="server" >
<asp:ListItem> One </asp:ListItem>
<asp:ListItem> Two </asp:ListItem>
<asp:ListItem> Three </asp:ListItem>
</asp:dropdownlist>
&'
()*+,-$(./
<asp:panel id="panel1" Visible="False" runat="server" >
<asp:textbox id="OldPwd" textmode="password"
runat="server"/>
<asp:textbox id="NewPwd" textmode="password"
runat="server"/>
</asp:panel>

$0-$(1(2

'3,14$"51

$0-$(1(2

'3,14$"51
$
#+%,$,-&
./%&0%
1%)2&34%
,5$,6 7
6
<Advertisements>

<Ad>
<ImageUrl> </ImageUrl>

<TargetUrl> </TargetUrl>

<AlternateText>
</AlternateText>
<Keyword> </Keyword>
<Impressions>
</Impressions>
</Ad>
</Advertisements>
<Advertisements>
<Ad>
<ImageUrl> </ImageUrl>

<TargetUrl> </TargetUrl>

<AlternateText>
</AlternateText>
<Keyword> </Keyword>
<Impressions>
</Impressions>
</Ad>
</Advertisements>
8%9:;'<%,=$$

,=
16>


2?/
@"A!",B./%&0
C4A/,D7
$.?/
'0E./%&0
F

6./%&00%
7(0$
76$
76$
 ! 
 ! 

=M7NO1,$%P
+%(Q"

RQ&Q7STU%,7!
+%-%"
#
<asp:calendar id="calender1" runat="server"
backcolor="white" forecolor="black"
borderwidth="2" Bordercolor="black"
showgridlines="true"/>
 ! 
 ! 

B-,V'-W(QW,X*I%IY)
%I"


Z%(7%-&% !J

[%#%

.,#%
$$
<html>
<script language="C#" runat ="server" >
void date_changed(Object sender,EventArgs e)
{
lblMessage.Text= "The date(s) you have selected is:
From " + calendar1.SelectedDates[0].ToShortDateString() + "
to " + calendar1.SelectedDates[calendar1.SelectedDates.Count
- 1].ToShortDateString();
}
void month_changed(Object sender,MonthChangedEventArgs e)
{
lblCur_m.Text= "The current month you selected is: "
+ e.NewDate.ToString("Y");
lblPrev_m.Text= "The previous month you selected is:
" + e.PreviousDate.ToString("Y");
}
</script>
 ! "#$!%
 ! "#$!%
<body>
<form runat="server">
<table>
<tr>
<td>

<asp:calendar id="calendar1" runat="server"
OnSelectionChanged="date_changed"
OnVisibleMonthChanged="month_changed"
SelectionMode="DayWeekMonth" borderwidth="3"
Bordercolor="red" showgridlines="true">
<SelectedDayStyle BackColor="Yellow" ForeColor="Red">
</SelectedDayStyle>
</asp:Calendar>
</td>
<td>&nbsp &nbsp
<asp:label id="lblMessage" runat = "server"/><br>
 ! "#$!%
 ! "#$!%
<br>&nbsp &nbsp
<asp:label id="lblCur_m" runat = "server"/>
<br>
<br>&nbsp &nbsp
<asp:label id="lblPrev_m" runat = "server"/>
</td>
</tr>
</table>
</form>
</body>
</html>
 ! &'(
 ! &'(

Tài liệu bạn tìm kiếm đã sẵn sàng tải về

Tải bản đầy đủ ngay
×