יום חמישי, 21 במאי 2015

הוספת helper לקבצי CSHTML

ראשית נריץ את הפרוייקט, נקבל בכתובת של הדף משהו כזה:
http://localhost:10707/
כדי להוסיף את האפשרות להוסיף HELPER לדף, נכנס לממשק הניהול:
http://localhost:10707/_Admin

לאחר בחירת הסיסמא, וכתיבת הסיסמא בפעם השנייה, נקבל הודעה כזו 
For security reasons your password hash is saved in a file named _Password.config in the /App_Data/Admin/ folder of your website. To fully enable site administration, rename the file to Password.config by removing the underscore (_) character from the file name. If this is the first time you are seeing these instructions and you have not yet created a password, then remove the /App_Data/Admin/_Password.config file. This will remove a previously created password and allow you to create your own password 

שבעצם מספרת לנו שהכל הפיך, וגם אם נשכח את הסיסמא נוכל למחוק את הקובץ שמכיל את הסיסמא מתוך הפרוייקט ולעשות חדשה.

כרגע יתווסף לנו קובץ /App_Data/Admin/_Password.config 


נשנה את שם הקובץ (לחיצה על F2), ונמחק את הקו תחתון. כעת במידה ונכנס לדף בשנית, נכתוב סיסמא, והופ...
נקבל ממשק להוספת קבצי DLL. מתוך תפריט הONLINE נוכל לבחור את החבילה ASP.NET Web Helpers Library

אין תגובות:

הוסף רשומת תגובה