problem setting properties to User control

L

Lan H. Nguyen

I used the technique from this article
http://msdn.microsoft.com/asp.net/u...l=/library/en-us/dnaspp/html/usercontrols.asp,
that set the properties to ViewState but I have 2 problems:
1. An object reference error when I tried to set user control's property
like the article did ( the sample code from the article actually worked )
2. When I created an instance of that user control to solve the problem from
#1, then set its property but it didn't take. ( I also tried to not use
ViewState but no work either )

The aspx file inherits Page and ascx file inherits UserControl like the
article has.

Anybody has this same problem or knows what I am doing wrong?

Thanks,
Lan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top