Can you give any asp.net control that doesn't display as html?

Hi everyone, is there an asp.net server control that doesn’t appear on the html page? for example, <asp: TextBox runat ="server" id="Textbox1"><asp:/TextBox>displayed as <input type="Text" id="textbox1"/>? I think you will understand my question?

+3
source share
4 answers

The Literal control is not displayed unless something is added to the Text property, in which case only the contents of the Text property are displayed. Similarly, a Placeholder control displays the controls hosted in its Controls collection.

<asp:Literal ID="literal1" runat="server" />

<asp:PlaceHolder ID="placeholder1" runat="server" />
+2
source

, WebControl, . , , , , , Render.

, Render , , .

Literal PlaceHolder , .

.

0

, , , , <asp:HiddenField />?

0

<asp:placeholder>.

<asp:panel> div, , html

0

Source: https://habr.com/ru/post/1762814/


All Articles