ASP.NET Caption ਪ੍ਰਤੀਯੋਗਿਤਾ

ਪਰਿਭਾਸ਼ਾ ਅਤੇ ਵਰਤੋਂ

Caption ਪ੍ਰਤੀਯੋਗਿਤਾ Table ਕੰਟਰੋਲ ਲਈ ਟਾਈਟਲ ਵਜੋਂ ਦਿਖਾਈ ਗਈ ਟੈਕਸਟ ਸੈੱਟ ਕਰਨ ਅਤੇ ਵਾਪਸ ਕਰਨ ਲਈ ਵਰਤੀ ਜਾਂਦੀ ਹੈ。

ਵਿਧੀ

<asp:Table Caption="string" runat="server">
Some Content
</asp:Table>
ਪ੍ਰਤੀਯੋਗਿਤਾ ਵਰਣਨ
string ਟੇਬਲ ਟਾਈਟਲ ਵਜੋਂ ਦਿਖਾਈ ਗਈ ਟੈਕਸਟ

ਇਨਸਟੈਂਸ

ਹੇਠ ਦਾ ਉਦਾਹਰਣ Table ਕੰਟਰੋਲ ਲਈ Caption ਸੈੱਟ ਕੀਤਾ ਹੈ:

<form runat="server">
<asp:Table id="tab1" runat="server" Caption="Table Example">
<asp:TableRow>
<asp:TableCell>
ਹੈਲੋ!
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</form>

ਇਨਸਟੈਂਸ

Table ਕੰਟਰੋਲ ਲਈ Caption ਪ੍ਰਤੀਯੋਗਿਤਾ ਸੈੱਟ ਕਰੋ