Button control ID and Text

W

Web learner

In the Button control, how can I keep the ID and Text attirbute the same? Of
course I can type the same thing for attributes. But I want to avoid
repeated typing.

<asp:Button ID="Calculate" runat="server" OnClick="Button_Click" />

TNK
 
G

Guest

They are two seperate properties, and they have to be set seperately. If
you want to ensure they are the same thing i would sugest setting them
programatically from the same variable, but this is just a shot in the dark
as you havn't given any details of what you are doing.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,778
Messages
2,569,605
Members
45,238
Latest member
Top CryptoPodcasts

Latest Threads

Top