Click here to Skip to main content
15,890,973 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello,
I want to accept user control Public property variable in in another page .cs file
Thanks advance.
Posted
Comments
[no name] 1-Nov-11 10:07am    
Please explain more
prashanth reddy pola 1-Nov-11 11:12am    
I want to send public variable values to from webuser control to .aspx page
for this i take referece in .aspx
like
<%@ Reference Control ="~/LocationAutoFill.ascx" %>
and in my .cs file
LocationAutoFill UC = (LocationAutoFill)Page.FindControl("LocationAutoFill.ascx");
But wile accepting variale value it showing error object reference not set to instance of object
-Prashanth

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900