imageCropper

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
9/3/2014 3:51:48 AM
Gravatar
Total Posts 17

imageCropper

I need to use the control ImageCropper.

I put the control in the aspx page in this way: 

<portal:ImageCropper ID="imgCoverCropper" runat="server" />

but in the c# code are not present the properties like ResultImagePath

What I wrong?

P.S. designer.cs file this control is seen as x
protected global::System.Web.UI.UserControl imgCoverCropper;

instead of as 

protected global::mojoPortal.Web.UI.ImageCropper imgCoverCropper;

9/8/2014 8:53:52 AM
Gravatar
Total Posts 17

Re: imageCropper

Nobody can help me?

because the control is not correctly identified as mojoPortal.Web.UI.ImageCropper?

what's worng?

9/8/2014 9:00:17 AM
Gravatar
Total Posts 18444

Re: imageCropper

I suggest study how that control is used in places where is it already used and working.

If using it in your own project it may be seen by your project as only UserControl, you must cast it to ImageCropper in code in that case.

9/8/2014 9:43:59 AM
Gravatar
Total Posts 17

Re: imageCropper

I saw how the control is used in AvatarUploadDialog.

I try to replicate everything, but it does not work.

In the html code when I try to set the property (eg. ResultImagePath) these are presented to me while in the codebehind file does not.

I have not figured out how to cast instead in the code as suggested.

 

9/8/2014 10:25:35 AM
Gravatar
Total Posts 18444

Re: imageCropper

using mojoPortal.Web.UI;

 

ImageCropper cropper = (ImageCropper)imgCoverCropper;

cropper.ResultImagePath = ...

9/10/2014 4:41:17 AM
Gravatar
Total Posts 17

Re: imageCropper

Thanks!!! 

I did not understand what you mean (my english is not the best).
In any case, it all seems ok.

Then a well-deserved beer for you incoming!!!. :)

9/10/2014 12:49:58 PM
Gravatar
Total Posts 18444

Re: imageCropper

Thanks for the beer!

Cheers,

Joe

You must sign in to post in the forums. This thread is closed to new posts.