Hello,
here is my problem: I've got two radbinaryimages and each one is in a wizardstep inside an asp.net wizard. In step one, the first binaryimage is displayed, but when I switch to page 2, the second one is empty and I get an "Object reference not set" in the processrequestinternalmethod of the radbinaryimagehandler.
If I look inside the cache, I can see the data from the visible image but not from the second one.
The sample belows reproduce the problem. Though it's not a wizard, it's the same problem.
Did I miss something?
Best regards
Laurent
ASPX:
CS:
here is my problem: I've got two radbinaryimages and each one is in a wizardstep inside an asp.net wizard. In step one, the first binaryimage is displayed, but when I switch to page 2, the second one is empty and I get an "Object reference not set" in the processrequestinternalmethod of the radbinaryimagehandler.
If I look inside the cache, I can see the data from the visible image but not from the second one.
The sample belows reproduce the problem. Though it's not a wizard, it's the same problem.
Did I miss something?
Best regards
Laurent
ASPX:
<telerik:RadBinaryImage runat="server" Visible="true" ID="binaryImage1" /> |
<telerik:RadBinaryImage runat="server" Visible="false" ID="binaryImage2" /> |
<asp:Button runat="server" ID="btn" OnClick="btn_Click" /> |
CS:
protected void Page_Load(object sender, EventArgs e) |
{ |
if (!Page.IsPostBack) |
{ |
byte[] img = File.ReadAllBytes(@"d:\mydocuments\My Pictures\IMG_2787.JPG"); |
binaryImage1.DataValue = img; |
binaryImage2.DataValue = img; |
} |
} |
protected void btn_Click(object sender, EventArgs e) |
{ |
binaryImage1.Visible = !binaryImage1.Visible; |
binaryImage2.Visible = !binaryImage2.Visible; |
} |