Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. user control in asp.net1.1 version

user control in asp.net1.1 version

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpasp-netvisual-studiohelpannouncement
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mym1
    wrote on last edited by
    #1

    Hi all, I am using Microsoft Visual Studio .NET 2003 with C# and asp.net 1.1 version. i can't access a function inside a ascx.cs page from a aspx.cs page. i registered the user control in my .aspx page and create an instance of this in my .aspx page. but i can't access the functions declared as public in ascx.cs from aspx.cs by using the 'id' of that particular user control. if anyone can, please help me. thanks in advance...

    D F 2 Replies Last reply
    0
    • M mym1

      Hi all, I am using Microsoft Visual Studio .NET 2003 with C# and asp.net 1.1 version. i can't access a function inside a ascx.cs page from a aspx.cs page. i registered the user control in my .aspx page and create an instance of this in my .aspx page. but i can't access the functions declared as public in ascx.cs from aspx.cs by using the 'id' of that particular user control. if anyone can, please help me. thanks in advance...

      D Offline
      D Offline
      Daniel Casserly
      wrote on last edited by
      #2

      firstly erm why 1.1? secondly have you made a property in the code yourself using get set values (in the controls class)? if i remember rightly that should do it.

      Three types of people in this world, those that can count and those that can't www.casserlyprogramming.com

      1 Reply Last reply
      0
      • M mym1

        Hi all, I am using Microsoft Visual Studio .NET 2003 with C# and asp.net 1.1 version. i can't access a function inside a ascx.cs page from a aspx.cs page. i registered the user control in my .aspx page and create an instance of this in my .aspx page. but i can't access the functions declared as public in ascx.cs from aspx.cs by using the 'id' of that particular user control. if anyone can, please help me. thanks in advance...

        F Offline
        F Offline
        fjdiewornncalwe
        wrote on last edited by
        #3

        I usually find that the most obvious solutions are the right ones... I know that this may be obvious, but we all need to reminded of the "easy" fixes sometimes. Check your code for the following: 1) If you're registered correctly and the control renders when you debug, then you've done that correctly. 2) Make sure the control definition in the .cs file is using the correct class definition. 3) The methods you want to access... Ensure they are public and not protected or private.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups