yoavmardok
New member
ארגומנט שלישי ב- event handler
event handler מקבל באופן אוטומטי שני ארגומנטים כך:
event handler מקבל באופן אוטומטי שני ארגומנטים כך:
Sub sub_ddlist_pic(ByVal obj As System.Object, ByVal e As System.EventArgs)
אך אני מעוניין לשלוח ארגומנט שלישי, למשל כך:Sub sub_ddlist_pic(ByVal obj As System.Object, ByVal e As System.EventArgs, ByVal the_third_arg As String)
אך כל ניסיונותי נכשלו. כך, למשל כשניסיתי להפעיל את ההנדלר הזה מתוך קונטרול DropDownList:<asp
ropDownList id="ddlist_pic_1" onselectedindexchanged="sub_ddlist_pic('the string')" runat="server" AutoPostBack="True">
קיבלתי את הודעת השגיאה הזאת:Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: BC30201: Expression expected.
כנ"ל לגבי כל ניסיון אחר. גם כל החיפושים באינטרנט עלו בתוהו. האם שליחה של יותר משני ארגומנטים ב-event handler היא פשוט בלתי אפשרית?