Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I tried the following -
It throws an error. How do I set it to null value ?
string tj = ProgramNode.GetProperty("programPhoto").ToString(); Media thisMedia = new Media(Convert.ToInt32(tj)); thisMedia.delete(true);
ProgramNode.GetProperty("programPhoto").Value = String.Empty();
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Programmaticaly deleting a media in "media picker"
I tried the following -
It throws an error. How do I set it to null value ?
string tj = ProgramNode.GetProperty("programPhoto").ToString();
Media thisMedia = new Media(Convert.ToInt32(tj));
thisMedia.delete(true);
ProgramNode.GetProperty("programPhoto").Value = String.Empty();
is working on a reply...