Question

When trying to develop Web Part or Application page or modifying existing SharePoint application pages like (user.aspx, create.aspx, etc..)

From below list which control is recommended to use

<input id="Text1" type="text" />
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<wssawc:InputFormTextBox title="Test" class="ms-long" ID="txttest" Runat="server" />
<SharePoint:InputFormTextBox title="Test" class="ms-long" ID="txttest1" Runat="server" />

Moreover what is the difference between among them?

In which way they are working and how much SharePoint resource (memory and performance) are utilized?

Can anyone give me clear understanding?

Était-ce utile?

La solution

There's not a huge difference for all of them.

3 out of 4 of them are server-side controls. And the SharePoint:InputFormTextBox and wssawc:InputFormTextBox are the exact same, only the prefix namespace (i.e. SharePoint, wssawc) is the difference.

SharePoint/wssawc:InputFormTextBox has built-in co-operative field validation, the others don't. That's the main difference and why they are recommended.

Licencié sous: CC-BY-SA avec attribution
Non affilié à sharepoint.stackexchange
scroll top