By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,365 Members | 1,245 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,365 IT Pros & Developers. It's quick & easy.

how to call module methods from aspx page code.

P: n/a
Dear Sir,

I have an existing application done in ASP.NET(VB.NET), I need to change one
page of it. Because I am not able to recompile the code and upload the new
dll, I am thinking to use one extra aspx page with <script runat="server">.

I need to call many methods in the vb.net module, how do I do this? the
methods in the modules seems to be treated as "Friend" which means I can not
call them from ASPX page code.

How do call those "Friend" methods in modules?

Regards,

Guoqi Zheng
Sep 3 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Ask those who gave you this job the way to work properly... You should have
access to this application period or ask them to change this module so that
it is public...

You could perhaps workaorund this using System.Reflection but IMHO this is
really the last thing to do... Always solve the source problem rather than
its consequences...

--
Patrice

"Guoqi Zheng" <no@sorry.coma ¨¦crit dans le message de groupe de
discussion : 95**********************************@microsoft.com...
Dear Sir,

I have an existing application done in ASP.NET(VB.NET), I need to change
one page of it. Because I am not able to recompile the code and upload the
new dll, I am thinking to use one extra aspx page with <script
runat="server">.

I need to call many methods in the vb.net module, how do I do this? the
methods in the modules seems to be treated as "Friend" which means I can
not call them from ASPX page code.

How do call those "Friend" methods in modules?

Regards,

Guoqi Zheng

Sep 3 '08 #2

P: n/a
if you security is set high enough, then you can use reflection to call the
methods.

-- bruce (sqlwork.com)
"Guoqi Zheng" wrote:
Dear Sir,

I have an existing application done in ASP.NET(VB.NET), I need to change one
page of it. Because I am not able to recompile the code and upload the new
dll, I am thinking to use one extra aspx page with <script runat="server">.

I need to call many methods in the vb.net module, how do I do this? the
methods in the modules seems to be treated as "Friend" which means I can not
call them from ASPX page code.

How do call those "Friend" methods in modules?

Regards,

Guoqi Zheng

Sep 3 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.