Re: Change image gallery path by user

  •  10-08-2006, 8:50 AM

    Re: Change image gallery path by user

    OK, figured it out. Not sure, but the documentation seems to be a little misleading, it lists the following:
    Editor1.SetSecurityImageGalleryPath= "~/uploads";
    but here is how I got it to work:

    protected void FormView1_PreRender(object sender, EventArgs e)

       {

          try

             {

             string theUser= ....some code
             ............... some code

          CuteEditor.Editor editor1 = (CuteEditor.Editor)(FormView1.FindControl("MyAnswerTextBox"));

          if (editor1 != null)

          {

          string securityPath = Server.MapPath(MyPath + theUser + @"/MyPics");
          .... some code
          editor1.SetSecurityImageGalleryPath(securityPath);
          ... some code
     
    Thanks,
     
     
View Complete Thread