I have a rad window that calls another aspx page with a control attached to it and I would like to pass info to the control with in that rad window. Is this possible. I have tried something like this, but am getting an "Object reference not set to an instacne of an object" error.
cntl_add_note.ascx User Control code:
<table style="width: 575px; height: 175px;">
<tr>
<td>
Add Notes Section: <asp:Label ID="lblProjectID" runat="server" Text=""></asp:Label>
</td>
</tr>
</table>
This is the server side code that is calling the rad window:
RadWindow1.NavigateUrl = "~/note.aspx"
RadWindow1.Visible = True
RadWindow1.VisibleOnPageLoad = True
RadWindow1.Left = Unit.Percentage(50)
RadWindow1.Top = Unit.Percentage(50)
RadWindow1.Enabled = True
RadWindow1.Width = Unit.Pixel(600)
RadWindow1.Height = Unit.Pixel(300)
Dim lblProjectID As Label = DirectCast(RadWindow1.FindControl("lblProjectID"), Label)
lblProjectID.Text = "Test"
The 2 lines above are where I tried to insert "Test" into the label on the cntl_add_note.ascx User Control, but got the error. Is it possible to pass the info to that control?
Thanks