473,322 Members | 1,562 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

how to call module methods from aspx page code.

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
2 2293
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: grist2mill | last post by:
I want to create a standard tool bar that appears on all pages that is a control. The toolbar has a button 'New'. What I wolud like when the user clicks on 'New' depends on the page they are on. I...
2
by: Bon | last post by:
Hello all How to call VB .NET components from user control? My folder structures are: the upper folder called Bon and then there are two sub-folders. One is called UserControls which is used...
5
by: Peri | last post by:
Dear All, In VB 6.0 declaring this function and calling this functions works smoothly. But in VB.NET or ASP.NET (Code behind), I am getting an error in the line "HResult =...
1
by: momo | last post by:
Okay guys, I have this one problem and I admitted I am a novice at this. This is a Code Behind in an aspx page. You will see where I have the plus signs below in SecureQueryString2.vb where I am...
4
by: Paul | last post by:
Hi, I've been struggling with this today, I'm developing a DotNet2.0 website in C# that needs to call a long running data query. Obviously this is a good candidate for an Asynchronous call, so...
6
by: Steve Richter | last post by:
what with the website solution structure not having a namespace, how does the class of one website .aspx page class reference the class of another page in the same website? I have two pages....
6
by: RandomElle | last post by:
Hi there I'm hoping someone can help me out with the use of the Eval function. I am using Access2003 under WinXP Pro. I can successfully use the Eval function and get it to call any function with...
2
by: Elliot | last post by:
There is a C# page a.aspx which has a master page b.aspx. b.aspx has panels & methods. I would like to know is it possible to change those panels' visibility or call thoese methods in a.aspx?...
1
by: =?Utf-8?B?U29uaWNDaGVu?= | last post by:
I can't use Module's method in page's code script block in vb.net I know it's friend and global class, but i should be able to access it if it does in code behind. Appreciated for any response
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.