Actually I am facing some problem with custom control.
I have created one custom control (Composite type)
Ex: id="Contol1"
runat="server">
---- Asp
controls---
It renders fine , but if I put
Like—
id="Contol1"
runat="server">
-------And in code behind
Unable to get lbl1 Error::: -- Compiler
Error Message: CS0103: The name 'lbl1' does not exist in the current context
What lines I want to add in custom control so that I can access
inside controls directly –
I don't want to use Find control .. becoz for each and every
control to access using find control is tedious Job
Ramesh SwaminathanPosted Jun 16, 2009, 8:20 AM
Use that property in the page where the user control is used.