Passing data from asp:ImageButton onclick

2 posts, 0 answers
  1. Geoff
    Geoff avatar
    27 posts
    Member since:
    May 2012

    Posted 16 Jul 2012 Link to this post

    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 :)
    }

  2. Geoff
    Geoff avatar
    27 posts
    Member since:
    May 2012

    Posted 17 Jul 2012 Link to this post

    Please disregard this forum post. I was able to find a solution on my own.

    Thanks.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top