1 / 3

Г енерация идентификаторов в ASP.NET 4 .0

Г енерация идентификаторов в ASP.NET 4 .0. Андрей Веселов. До ASP.NET 4.0. Автоматическая генерация идентификаторов : ASPX: < asp:Label ID ="Label1" runat ="server" Text ="Demo" /> HTML код : < span id =" ctl00_MainContent_Label1 "> Demo < /span >. Автоматически сгенерированый id.

mari-cross
Télécharger la présentation

Г енерация идентификаторов в ASP.NET 4 .0

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Генерация идентификаторов в ASP.NET 4.0 Андрей Веселов

  2. До ASP.NET4.0 Автоматическая генерация идентификаторов: • ASPX: <asp:LabelID="Label1"runat="server" Text="Demo"/> • HTML код: <spanid="ctl00_MainContent_Label1">Demo</span> Автоматически сгенерированый id

  3. ASP.NET 4.0 <asp:LabelID="Label1"runat="server"ClientIDMode="[Режим]" /> Режимы генерации ID (ClientIDMode): • Inherit – наследование от родительского элемента; • AutoID – автоматическая генерация ID; • Static – ручная устаноновка значения; • Predictable – предсказуемая генерация.

More Related