This is a migrated thread and some comments may be shown as answers.

Passing data from asp:ImageButton onclick

1 Answer 90 Views
ImageEditor
This is a migrated thread and some comments may be shown as answers.
Geoff
Top achievements
Rank 1
Geoff asked on 16 Jul 2012, 08:09 PM
I have a control that will house several asp:ImageButtons that are separate from my control that holds the RadImageEditor. But both controls are on the same page.

I'm wanting to use an onclick function to load whatever type of thumbnail image is displayed inside the ImageButton to send it's url to my RadImageEditor to display inside the control there.

I'm not sure how to communicate between them since they are both on different ascx.cs pages.

How do I communicate from my asp:ImageButton id="imgTopImage"  to my RadImageEditor id="RadImageEditor1" ?

Click Function thus far. . .
public void ImageButton_Click(object sender, ImageClickEventArgs e)
{
    string imageUrl = imgTopImage.ImageUrl.ToString();
   // RadImageEditor1.ImageUrl = (imageUrl); //This is how easy I would like for it to be :)
}

1 Answer, 1 is accepted

Sort by
0
Geoff
Top achievements
Rank 1
answered on 17 Jul 2012, 07:08 PM
Please disregard this forum post. I was able to find a solution on my own.

Thanks.
Tags
ImageEditor
Asked by
Geoff
Top achievements
Rank 1
Answers by
Geoff
Top achievements
Rank 1
Share this question
or