-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: marshal
Message 1 in Discussion
Hi to All,
I am using <% @ OutputCache Duration="60" VaryByParam="none" %>
in my usercontrol say "myControl.ascx". This
user control has a property say "title".
Now am Dynamically Loading this
control in "myPage.aspx" like this
Control ctl =
LoadControl("myControl.ascx").
and then performing casting
operation in order to set the property value
((myControl)ctl).title = "Welcome to my
Site"
But when i run the page is give me following error
System.InvalidCastException. Specified cast is not valid.
And
the beauty of this problem is that when i remove the line <% @ OutputCache
Duration="60" VaryByParam="none" %>
The page successfully
executes.
Please suggest.
Thanx in
advance
Marshal
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]