Event handler for controls on a SharePoint form
-
Hello everybody, I have a custom list and I use SharePoint created forms for that list (NewForm.aspx, EditForm.aspx, ...). One of these forms, i.e. NewForm.aspx has some controls on it, e.g. textbox, dropdownlist, etc. How can I define and attach an event handler function for one of these controls? for example the dropdownlist's item_changed. I am using visual studio developer tools for sharepoint. I would appreciate if someone replies to me. Thank you in advance, Roozbeh.
-
Hello everybody, I have a custom list and I use SharePoint created forms for that list (NewForm.aspx, EditForm.aspx, ...). One of these forms, i.e. NewForm.aspx has some controls on it, e.g. textbox, dropdownlist, etc. How can I define and attach an event handler function for one of these controls? for example the dropdownlist's item_changed. I am using visual studio developer tools for sharepoint. I would appreciate if someone replies to me. Thank you in advance, Roozbeh.
Event handlers are used with the lists if you customised your code then you can use the event handler for any of the controls. But you cannot use it for the default sharepoint custom list.
-
Event handlers are used with the lists if you customised your code then you can use the event handler for any of the controls. But you cannot use it for the default sharepoint custom list.
Please give up, you have no idea what you are talking about in regard to SharePoint.
I know the language. I've read a book. - _Madmatt
-
Hello everybody, I have a custom list and I use SharePoint created forms for that list (NewForm.aspx, EditForm.aspx, ...). One of these forms, i.e. NewForm.aspx has some controls on it, e.g. textbox, dropdownlist, etc. How can I define and attach an event handler function for one of these controls? for example the dropdownlist's item_changed. I am using visual studio developer tools for sharepoint. I would appreciate if someone replies to me. Thank you in advance, Roozbeh.
You would need to create customized versions of the forms to handle the control events as desired and associate the forms with the list or use SPD to customize the existing forms, http://blah.winsmarts.com/2007-5-Customize_the_-and-quot;NewFormaspx-and-quot;_page_for_a_SharePoint_List.aspx[^]
I know the language. I've read a book. - _Madmatt
-
Event handlers are used with the lists if you customised your code then you can use the event handler for any of the controls. But you cannot use it for the default sharepoint custom list.