<mr************@gmail.comwrote in message
news:4c**********************************@b1g2000h sg.googlegroups.com...
I have a web page(.aspx) in my project. In the code behind, I
have a method. How can I hide(invisible) only that method and rest of
the code is visible(all other button events, bla bla).
That means when anybody opens my project in visual studio or any other
editor, the method should be invisible.
How can I do this.
You could place the method in a separate assembly so that all that would
appear in your aspx page would be a call to the method. However, the
separate assembly itself would need to be somewhere where your app could
"see" it, usually your app's \bin folder...
Alternatively, you could create a web service for the method and "hide" it
that way...
What are you actually trying to achieve with this...?
--
Mark Rae
ASP.NET MVP
http://www.markrae.net