Atalasoft
Welcome to Atalasoft Community Sign in | Join | Help

Custom Control inheriting WebImageViewer

  •  15 Feb 2007, 7:13 PM

    Custom Control inheriting WebImageViewer

    Hi,
     

    I would like to use a WebImageViewer on Multipage TIFF, but without the ThumbnailViewer.

    So, I need to be able to implement a page management system.

    I created a custom control implementing WebImageViewer.

    I added some properties such as CurrentPage and Pagecount to be able to keep track of the pages.

    I also added a changePage method that will update the CurrentPage property and will reload  the image at CurrentPage.

    I implemented a control State system to save the properties on the server side.

     

    Now, on my aspx page, I put, say, a server side button to display the next page. If I bind this buttn with a code behind function that will call the changePage method of my custom control, this works properly but requires a full postback, which I would like to avoid.

     I tried another solution : Remote Invoking a codebehind  method from javascript; which method will call the changePage method of my custom control. The problem here, is that in this case, my custom contrl can't seem to be able to keep track of the file Name, although I added it in the control state.

     What is odd, is that the call to the same method, but from code behind perfectly works...

     
    I hope  have been clear enough.....

     

    Would you have any idea about what the problem might be ? Or do you know of any other solution to implement the change of pages without requiring PostBacks and without ThumbnailViewer ?
     

    Thanks a lot,
     

    Guillaume
     


     

     

    Filed under: , ,
View Complete Thread