Open the CodeBehind file and add the user control to the controls
collection. Not sure why, but, by default, a user control is placed on the
page but never given a corresponding line in the CodeBehind file.
Dim NameOfControlOn Page As MyControl
protected MyControl NameOfControlOn Page;
You can see the lines of other controls in your CodeBehind, so the above
templates are suspect. Once you do this, you will be able to use:
NameOfControlOn Page.PropertyOn e = "";
to set values.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
Author: ADO.NET and XML: ASP.NET on the Edge
*************** *************** *************** *************** *************** *
****
Think Outside the Box!
*************** *************** *************** *************** *************** *
****
"Akira" <ak***@regonlin e.com> wrote in message
news:32******** *************** ***@posting.goo gle.com...
Hello.
I'm having problem with passing parameters from .aspx file to user
control.
Could anyone tell me how to pass parameters from .aspx file to user
control(.ascx) and how to recieve parameters at .ascx?
Thank you for your help!