Hi
I am facing problem here. I have a master page and content page. In the content page I have a RadDock whose content is coming from a web user control(Lets say abc.ascx). Now abc.ascx contain dynamic tabstrip which uses separate web user control for each dynamic created tab.
In the first tab(RadTab1.ascx)now by click of a button, I am creating a dynamic RadEditor. Both the button and dynamic RadEditor are in the same user control RadTab1.ascx.Upto this everything works fine.
Now my problem is,
I am not able to get the content of RadEditor, while clicking the Reply button below this editor.
My Code is
1. RadDock dockContent = (RadDock)Page.Master.FindControl("defaultPageHome").FindControl("ForumRadDock");
2. RadMultiPage multiPage = (RadMultiPage)dockContent.ContentContainer.FindControl("MyForumMainControl").FindControl("ForumRadMultiPage");
3. RadPageView PageView = multiPage.FindPageViewByID("Newly Added");
4. RadEditor edit = (RadEditor)PageView.FindControl("replyEditor");
Upto Line 3 its working fine. I am also able to get the PageView Id from line 3.
In the line 4 Error"Object reference not set to an instance of an object".
I guess, I am not able to find the reference of RadEditor. Why so?
Pls. help
Chandan