קבלת תמונה בקובץ שהוגדר כ - embedded ב - Custom Control
כיצד להגדיר תמונה ב - Custom Control כשקובץ התמונה הוגדר כ - embedded.
הקוד עצמו הוא די פשוט:
string rn = "assemblyName.folderName.fileName.bmp";
Type type = typeof(YourControl);
string url = Page.ClientScript.GetWebResourceUrl(type, rn);
כשיש לכם את ה - url תוכלו להוסיף אובייקט img ולהגדיר את ה - src ל - url שקבלתם