Buy Questpond's video subscriptions on
huge discount
.
Online: 10361
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Forums
>
ASP.NET
>
Loading ...
ACCESSING PRIVATE METHOD OF A CLASS OF A CLASS FILE FROM ANOTHER CLASS FILE
Posted by
ANU_DGR8
under
ASP.NET
on 5/27/2010 | Views : 2537 | Status :
[Member]
| Replies : 2
Write New Post
|
Search Forums
|
Resolved Posts
|
Un Answered Posts
|
Forums Home
I HAVE A PRIVATE METHOD IN A CLASS OF A CLASS FILE.NOW I WANT TO ACCESS THIS METHOD IN ANOTHER CLASS FILE'S BUTTON_CLICK EVENT..CN SOMEBODY HELP ME???
Thanks and Regards,
Hoosha Boosha
Reply
|
Reply with Attachment
Alert Moderator
Responses
Posted by:
Raja
on: 5/27/2010
[Member]
Starter
0
This is not possible as Private method is accessible only inside the same class. This behavior is the programming language behavior and you can't change it.
If you want your method to accessible in other class file you will have to make that method as public/internal. Or you can declare a property into the class and internally call the method inside the getter block.
Regards,
Raja, USA
ANU_DGR8
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Er.deepakdalal
on: 5/27/2010
[Member]
Starter
0
I am totally agree here with Mr.Raja. These are some slandered rules designed or applied when the language is standardized for the security purpose and you can't change them.
ANU_DGR8
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Login to post response
Latest Posts
How to get the exact property name while getting error
(0)
PDB file is not showing Line Number in dot net application hosted on server
(0)
Both Strings morethan 5 letters in length end of the words one vowel and one consonent is different
(0)
how to check Any adjacent letters transposed between two strings(ex: JOHN, JHON)
(1)
can't receive data after success login ?
(1)
Implement Multi-Tenant in Azure Logic Apps
(0)
Why ASP.Net Core 7.0 Web API showing as Connection refused?
(0)
Iterating over columns of dataframe and print as rows in Python Django
(0)
More ...