ASP.??? ????? ???????? ??????

???? ?????? ???? ??????
???? ID: 306459 - ?? ???????? ?? ?????? ??? ?? ?? ???? ???? ???? ??.
?? ???? ????? Microsoft ???? ?? ??? ???????? ???? ?????? ???? ????????? ???????? ?????:
  • System.Web.UI.HtmlControls.HtmlControl
  • System.Web.UI.WebControls.WebControl
??? ?? ??????? ???? | ??? ?? ??????? ????

?? ????? ??

??????

?? ???? ASP ???? ?? ??? ?? ????? ?????? ???? ?????? ????? ?????????

???????? ASP ?? ????NET ?????? ?? ??? ?????????? ?? ?????? Microsoft ???????? ?? ????:
305140 ?????: ASP.??? Roadmap

???? ???????

ASP.??? ????? ????? ?????????? ?? ?? ?????? ????? ?? ????? ???????? ?? ???? structured ???????????? ?? ?????? ????? ?? ??? ??????? ??? ?? ??? ??? ?? ??? ????? ?? ???????? ????? ???????? ??????:
  • ????: ?????? ????????
  • ?????? ????? ?????? ???????? ?? ????? ???? ?? ???????? ???? ???? ???????? ??? ?? ????
  • ????? ?? ??? ?????-???? ??? ??? ?????? ?? react ???? ?? ?????? ????????? ?? ????? ?? ?????? ???? ???
  • ?????????? ???????? ????? ?? ??? ??? ?? ??? ??????? ????? ??????
  • ?????? ?? ???????? ??? ?? ???????? ?? ???? ?? ???????? ?? ?????????
?????????? ?????????? ?? ????????, ASP.??? ????? ????? ?? ?????????? ???????? ?? ????? ????? ?? ?????? ???? ?? ????????? ?????????? ???????? ?? ????? ???????? ??????? ?? ?????? ??????? ???? richer ?????????? ???????? ????? ?? ??? ?????????

HTML ????? ????????

HTML ????? ???????? ??? ???????????? ??????? ???????? (HTML) ???? ????? ??? ?? runat ????? = ???????? ?? ?? HTML HTML ????? ???????? ?? ??????, ?? ???? ???? HTML ??? ?? ??? ??? ?? ?? ???? ???????? ???, HTML ????? ???????? ???????? ?????? ??????? ?? ?????-???? ?????? ?????? ???? ???? HTML ????? ???????? ????? ??? ?? ????????:
  • HTML ????? ???????? ??? ???? ?? ??? ?? ?? ?? ??? ???? ???? HTML ????
  • ?? ASP.??? ????????? ?????? ??, HTML ????? ???????? ?? ??? runat ????? = ??????? ?? ?? ??? ???????
  • ?????? ???????? ???????? ?? ???????? ??????? ??? ?? ????? ??? ???? ???? ????? ?? ??? ??? OnServerEvent ????? ???? ?????? ?? ???, ???<input type="button">???????? OnServerClick ???? ???
  • HTML ????? ????? HTML ?? ??? ??? ???? ???? ???? ??? ?? ????? ???????? ??? ?? ????? ???? ?? ???? ?? ???? ??; ???????, ?? ???? ??? ??? ?? ??? ?? HtmlGenericControl?? ??? ????
  • ?? ASP.??? ????? ?? reposted, HTML ????? ???????? ???? ??? ?????
System.Web.UI.HtmlControls.HtmlControl ???? ???? ??? ??????? ??? ???? ???? HTML ????? ?? ???? ?? ???????? derive.

??? HTML ????? ???????? ?? ????? ???? ?? ???, ?? ????? ???? ????? ???????? (?? HtmlInputText ???????? ?? ?? ?????? ?? ??? ??? ????? ???? ??):
<input type="text" value="hello world" runat=server />
				
?? ???-??? HTML ????? ???????? ?? ???? ??? ???? ??????? ?? ??? ASP ??? ???????NET, ???? ?? ??? ????? Microsoft ??? ???? ?????:
HtmlAnchor ????????

HtmlButton ????????

HtmlForm ????????

HtmlImage ????????

HtmlInputButton ????????

HtmlInputCheckBox ????????

HtmlInputFile ????????

HtmlInputHidden ????????

HtmlInputImage ????????

HtmlInputRadioButton ????????

HtmlInputText ????????

HtmlSelect ????????

HtmlTable ????????

HtmlTableCell ????????

HtmlTableCell ????????

HtmlTextArea ????????

??? ????? ????????

??? ???????? ???? HTML ????? ???????? ??? ???? ???? ??? ???, ??? ?????, ?? ?? ??? ???????? ?? ?????? ?????????, ??? ?? standardized ??? ??. ???? ??? ????? ???????? ????? ??? ?? ????????:
  • ??? ????? ?? ??? ???????? ?? ?????????? ?? ??? ???? ????? ????? ?? ????????? ?????????? ???????? ??? ?? ????? ???? ?????????
  • ?????? ??? ??????? ????? ?? ????????? ???, ?? ?? ???????? ???? HTML ???????? ????? ?? ????? ?? ????? ?? ???????? ?? ???? ????????? ?? ??? ??????? ?? ??????
System.Web.UI.WebControls.WebControl ???? ???? ??? ??????? ??? ???? ???? ??????? ??? ????? ???????? ???? ?? derive.

???? ??? ????? ???????? ?? ????? ???? ?? ???, ????? ???????? (?? ??? ????? ???????? ?? ????? ???? ?? ?? ?????? ?? ??? ???) ?? ????? ????:
<asp:textbox text="hello world" runat=server />
				
??? ????? ???????? ??? ????????? ??? ??????? ?? ???? ???:

??? ??? ????????

??? ??? ???????? ???? HTML ?? ??? ??? ?? ?? ?????????? ?????? ????? ???????? ?????????? ???????, ??? ??? ???????? ????? ???????? ????, ?????? ?? ????? ?? ??????? ?????? ?? ????????? ?? ???? ????

???-??? ??? ???????? ?? ???? ??? ???? ??????? ?? ??? ?? ?????? ??? ASP.NET, ???? ?? ??? ????? Microsoft ??? ???? ?????:
??? ????? ???????? ???

??? ????? ??? ????? ????????

????????? ??? ????? ????????

??? ??? ????? ????????

ImageButton ??? ????? ????????

??? ????? ???????? ????

LinkButton ??? ????? ????????

??????? ??? ????? ????????

??? ????? ???????? ????

??????????? ??? ????? ????????

?????? ??? ??? ????? ????????

?????? ??? ????? ????????

TableCell ??? ????? ????????

TableRow ??? ????? ????????

??? ????? ??? ????? ????????

??????? ????????

??????? ???????? ???? ????? ?? ???????? ???? ?? ??? ????? ???? ???? ?? ????? ?? ???? ???????? ??? ???? ???? ??? ??????? ???????? ????? ???????-???? ???????, ????? ???? ???????, ?? ?????, ?? ?????? ???????? ??? ??? ????????? ???? ?? ?? ??????? ??????? ???????? ????? ??? ?? ????????:
  • ?? ???????? ?? ??? ?? ?? ???? ??????? ???????? ?????? ?? ???? ??? ???????? ?? ???????? ???? ????? ????
  • ?? ????? ??????? ??, ?? ?????????? ??? ?? ????? ???? ????
  • ?? ????????? ?? ??????? ???? ????? ????????? ?? ???? ??? ??, ???? ?? ???? ???? ??? ?????? ???? ????? ???, ?? ?????? ???? ?? ???? ?????????? ??? ?????? ??? ????? ???? ???? ??? ???? ???? ?? ???? ????
  • ??????? ???????? ???? ?? ??? ????? ?? ???? ????? ?? ??????? ???? ?? ??????? ???? ?? ????? ????????

    ??? Postback ????????? ?? ???? ???? ?? ???? ?? ???????-???? ??????? ????????? catches. ??????? ???? ?? ????? ???? ??????? ?? ?? ????? ?? ???????? ?? ?????? ??, ?? ?? ???????-???? ??????? ???? ???? ??, ?? ?????, ????? ???? ??????? preempted ?? ??????
???????? ?????????? ?? ???? ??? ???? ??????? ?? ??? ?? ???????? ASP ??? ?????? ????NET, ???? ?? ??? ????? Microsoft ??? ???? ?????:
RequiredFieldValidator ????????

RangeValidator ????????

CompareValidator ????????

RegularExpressionValidator ????????

CustomValidator ????????

ValidationSummary ????????

???? ????????

???? ???????? ?? ?? ?????? ????? ??? ????? ???????? ???????? ?? ??? ??????? ????????? ??? ???? ????????? ???? ?? ??? ?? ???? ???????? ?? ????? ?? ???? ??? ?? ????????, templated ??????? ??? ???? ???????? ???? ????? ?? DataMember ??? ?????? ?? ????? ???? ?? ??? ????? ???? ???? ??, ??, ???????

???? IEnumerable, ICollection, ?? IListSource ???????? ?? ?????? ???? ?????? ???? ?? ??? ???????? ????? ?? ???? ???? ?????? ?? ???, ???? Microsoft Visual C#.??? ????? ????? ?? ??? ??? ????? ???? ??:
<%@ Page Language="C#" %>
<script runat="server">
Public void Page_Load()
{
	String[] myStringArray = new String[] {"one","two","three"};
	rptr.DataSource = myStringArray;
	rptr.DataBind();
}
</script>
<html>
<body>
<asp:repeater id=rptr runat="server">
	<itemtemplate><%# Container.DataItem %><br></itemtemplate>
</asp:repeater>
</body>
</html>
				
Microsoft Visual Basic.??? ????? ????? ??????????? ??:
<%@ Page Language="vb" %>
<script runat="server">
public sub Page_Load()
   	Dim myStringArray as String()
   	myStringArray = new String() {"one","two","three"}
   	rptr.DataSource = myStringArray
   	rptr.DataBind()
end sub
</script>
<html>
<body>
	<asp:repeater id=rptr runat="server">
   		<itemtemplate><%# Container.DataItem %><br></itemtemplate>
	</asp:repeater>
</body>
</html>
				
?????? ??????????? ??:
??
??
???
?? ???-??? ???? ???????? ?? ???? ??? ???? ??????? ?? ??? ASP ??? ???????NET, ???? ?? ??? ????? Microsoft ??? ???? ?????:
???? ????? ??? ????? ????????

CheckBoxList ??? ????? ????????

RadioButtonList ??? ????? ????????

Repeater ??? ????? ????????

DataList ??? ????? ????????

???? ????? ??? ????? ????????

DropDownList ??? ????? ????????

??? ????????

????? ?????????? ?? ????????, ASP.??? ????? ????? ???, ?????-??????? ?????????? ??? ???????? ??? ???? ?? ?????? ???? ??? ??? ???????? ??? ?????? HTML ?????? ?? ??? ??????? ???? ??? ?? ??? ??????????? ??? ?????? ?? ??? ??????? ???????? ?? AdRotator ???????? ??? ???????? ???? ????

???-??? ??? ?? ???? ??? ???? ??????? ?? ??? ???????? ?? ASP ??? ?????? ????NET ?? ??? ?????? ???? ?? ??? ????? Microsoft ??? ??????:
AdRotator ??? ????? ????????

??????? ??? ????? ????????

Xml ??? ????? ????????

?????????? ????????

?????, ?? ???? ??? ??????? ?? ?????????? ???????? ?? ???? ????? ???? ?? ??? ????? ?? ???? ?? ???? ?? ???????? ??? ????? ?? ??? ??? ????? ASP.??? ?? ??? ???? ?? ??? ???? ????? ????? ?? ???? ??? ??????? ?????????? ???????? ??? ?????? ??? ?????????? ???????? ?? ??, .ascx ????? ??????????, ?? ???? ??? ???? ?? ???? ?? ?? ???? ??? ?? ???? ???? ??? ??? ????????

??? ??? ??????? ???? ?????????? ???????? ??? ?????? ???? ?? ???, ????? ????? ?? ???? ????:
  1. ??? ???????<html>,<head>,<body>??<form>????</form></body></head></html>
  2. @ ????? ?????????? ??? ??????????? ??? ????? ????? ???? ??, ?? ??? @ ???????????? ?? ??? ????????? ?????
  3. ?? className ??????? @ ???????? ?????????? ??? ??????????? ??? ????? ??? ????? ?? ?????????? ???????? ?????? ???? ?? ?? ?? ?? instantiate.
  4. ???????? ?? ?????????? ????? ??? ???, ?? ????????? ???? .ascx ???? ?? ??? ????? ????????? .aspx ???
?????????? ???????? ?? ???? ??? ???? ??????? ?? ???, ????? Microsoft ??? ????? ???????? ????? ?????????? ????? ??? (SDK) ?????????:
??? ??????? ?????????? ????????

????? ????????

?????????? ??? ???????? ?? ????????, ASP.??? ?? ???? ???? ?? ???? ????? ???????? ????? ?? ???? ?? ????? ???????? ?????? ???? ?? ??? ?????? ?? ???? ?? ??? ?? ?? ?? ?????????? ?? ??? faced ???:
  • ??? ?? ?? ?? ???? ?? ??????????? ????? ?? ???????? ?????????? ??? ????????? ???? ???
  • ??? ?? ?? ?????????? ?? ??????????? ??????? ???? ?? ???????? ?????????
  • ??? ?? ???? ?? ???? ??? ?? ??? ?? ?? ???????? ?? ???????? ?? ???????? ?? ??????? ??? ??????
????? ???????? ??????? ?? ???? ??? ???? ??????? ?? ???, ????? ?????????? ?????? ??????? ????? SDK ?? ?????????:
ASP ??????????? ????? ????????

Developing ????? ????????: ????? ?????????

?? ??????? ???????? ???????

???

???? ID: 306459 - ????? ???????: 11 ??? 2012 - ??????: 3.0
???? ???? ???? ??:
  • Microsoft ASP.NET 1.1
  • Microsoft ASP.NET 1.0
??????: 
kbarttyperoadmap kbdatabinding kbinfo kbservercontrols kbvalidation kbwebforms kbmt KB306459 KbMthi
???? ?????? ????????
??????????: ?? ???? ?? ???? ??????? ?? ????? ?? Microsoft ????-?????? ?????????? ?????? ?????? ???? ??? ??. Microsoft ???? ??? ????-???????? ?? ????-???????? ????? ?????? ?? ???? ???????? ???? ?? ???? ????? ????? ??? ?? ??? ?????? ?? ???? ???? ???? ??? ????? ??. ???????, ????-???????? ???? ????? ???? ???? ???? ???. ?????, ????????, ?????-???? ?? ??????? ?? ???????? ?? ???? ???, ???? ?? ??? ?????? ???? ???? ??? ????? ??? ?? ???? ??. Microsoft ??????? ??? ???? ?? ?????? ?? ??????????, ????????? ?? ??? ?????? ?? ???? ????? ?? ???? ???????? ?? ??? ???? ????? ?? ??? ????????? ???? ??. Microsoft ????-?????? ?????????? ?? ????? ?????? ?? ?? ??? ??.
?????????? ?? ??????? ????????? ??????? ??:306459

??????????? ???

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com