Results 1 to 10 of 10

Thread: [Resolved]Includes and Code Behind modules craziness

Threaded View

  1. #1

    Thread Starter
    PowerPoster Arc's Avatar
    Join Date
    Sep 2000
    Location
    Under my rock
    Posts
    2,336

    [Resolved]Includes and Code Behind modules craziness

    Hi there, I have a page which has 1 inlcude. The inlcude is a top navigation that has a label on it and it's called "loginheader.aspx". The label on this page is called lblMarquee and is runat the server so i can do things with it in my code behind module.

    The problem is you are only allowed 1 code behind module per page. Meaning that when these 2 pages are put together in the browser there can only be 1 code behind module and not 1 for each page.

    But the problem is I can not figure out how to access the control on the included page. The code behind module is with the main page login.aspx. This page has it's own controls that I check against a database etc..

    So my problem is, I have 2 pages that have controls on them that have to be accessed by the same code behind module.

    I have tried refrencing the other page like
    loginheader.lblMarquee.Text ="asdad"
    but i get the error saying i cant becasue it is Protected... So i set the Label as Public Withevents instead of Protected and i get a totaly different error.

    Sigh....

    Any help is appreciated!

    Thanks!
    Last edited by Arc; Jun 26th, 2003 at 10:16 AM.
    -We have enough youth. How about a fountain of "Smart"?
    -If you can read this, thank a teacher....and since it's in English, thank a soldier.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width