Click here to Skip to main content
15,923,051 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have trouble accessing a textbox contained in web page from the code behide where by i want to use it in public shared function vb Code how do go about it
Posted

1 solution

You can't.
Shared functions do not have access to Page controls, because they cannot access an instance and thus have no Me to refer to it by.

Your function cannot be Shared
 
Share this answer
 
Comments
bensonz 11-Jun-13 4:41am    
how can I work around it since I need to call the shared function to save information and upload images to the database using pagemethods javascript to avoid post back and i also wanted to retrieve images from the database to image boxes using a similar function

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900