493
צפיות
צפיות
0
תשובות
תשובות
אפלייקציה ב- asp.net
אני רוצה לפתוח חלון של Browse איך עושים את זה הכי פשוט.
אני עשיתי את זה כך:
OpenFileDialog OpenFile = new OpenFileDialog();
OpenFile.Filter = " Text files (*.txt)|*.txt|All files (*.*)|*.*";
OpenFile.RestoreDirectory = true;
OpenFile.ShowDialog();
if (OpenFile.FileName != "")
TxtPictureUrl.Text = OpenFile.FileName;
ומשום מה זה לא עובד זורק הודעת שגיעה כזאת:
It is invalid to show a modal dialog or form when the application is not running in UserInteractive mode. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application
0 תשובות