to use Tag like windows desktop software

Simon 426 Reputation points
2025-03-05T19:41:04.2233333+00:00

i am working on a aspx page translet a windows desktop ssoftware using vb.net

is it posible to use use tag like in like in windows desktop software

by design the aspx page

                       <asp:TextBox ID="Txt1_0" runat="server" BackColor="#C0FFFF" BorderStyle="None" Font-Names="Arial, 11.75pt" FontStyle="Bold" ForeColor="#C0FFFF" HorizontalAlign="Center" ReadOnly="False" Style="text-align: Center; top:  21px; left:  183px; position: absolute; height: 25px; width: 90px" Tag="TF=3;VF=3;TPCrg=5;TPExp=5;TPPay=4;PPmntNm=[prid];PPmntTbl=IncomeT;PCrgNm=[prid];PCrgTbl=IncomeT" ></asp:TextBox>
```the page is asp is fine   only  in the code  it making an error by using tag

ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
393 questions
0 comments No comments
{count} votes

Accepted answer
  1. XuDong Peng-MSFT 11,656 Reputation points Microsoft External Staff
    2025-03-06T03:51:20.34+00:00

    Hi @Simon,

    is it posible to use use tag like in like in windows desktop software

    Control.Tag Property works in Windows Forms project, it does not work in Web Form controls. Because the Web Form control does not contain a Tag property. Therefore it is impossible.

    For more details, just refer to this official doc: Properties - TextBox Class. If you need to store some additional data, maybe you could try using ViewState instead. Simply refer to this simple in doc: Saving Values in View State.

    Best regards,

    Xudong Peng


    If the answer is the right solution, please click "Accept Answer" and kindly upvote. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Simon 426 Reputation points
    2025-03-06T13:41:44.36+00:00

    i get a massage

    ViewState is not a string

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.