לא עובד
והשגיאה:
Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Server tags cannot contain <% ... %> constructs.
הקוד ב-HTML:
<iframe src=<%=FileName%> id="OutputFrame" style="WIDTH: 384px; HEIGHT: 200px" runat="server">
ובקובץ #C בהתחלה הגדרתי כך:
public static string FileName;
ובתוך הפונקציה Page_Load כך:
FileName=path;
המשתנה path מכיל את ה-path הנכון (עבד כשזה היה בפריים אחר) מה שכן אני רואה שהפונקציה page_load לא נקראת לפני שהשגיאה מופיעה, אז בטוח שאין לו ערך במשתנה, ויכול להיות שהוא לא מכיר אותו בכלל...