user control in asp.net1.1 version
-
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...
-
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...
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
-
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...
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.