ASP.Net modifiers

  • Thread starter Thread starter AM
  • Start date Start date
A

AM

Hi, All

Could some one help me. I am using asp.net and I have some buttons and
labels on the form. I use these controls in another class for which I
have declared these labels and buttons as public. But if I add any
other control on the form, all the controls modifiers are automatically
changed from public to protected in the web form generated code.
I would be grateful if anybody to explain this to me.
Thanks in advance,
AM
 
AM,

I do not understand your message maybe others do, than that I do not
understand it, is not important however when not.
Could some one help me. I am using asp.net and I have some buttons and
labels on the form.
I use these controls in another class
for which I have declared these labels and buttons as public.

Why have you declared them when you *use* them?

You can have passed them however not declared in my opinion.

Cor
 

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

Back
Top