Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. SharePoint
  4. Event handler for controls on a SharePoint form

Event handler for controls on a SharePoint form

Scheduled Pinned Locked Moved SharePoint
questioncsharpsharepointvisual-studiotools
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Roozbeh69
    wrote on last edited by
    #1

    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.

    R N 2 Replies Last reply
    0
    • R Roozbeh69

      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.

      R Offline
      R Offline
      RahulPuneet
      wrote on last edited by
      #2

      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.

      N S 2 Replies Last reply
      0
      • R RahulPuneet

        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.

        N Offline
        N Offline
        Not Active
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • R Roozbeh69

          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.

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          • R RahulPuneet

            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.

            S Offline
            S Offline
            saanj
            wrote on last edited by
            #5

            What do you mean by "default sharepoint custom list"? Can we ever use a SharePoint event handler for a control? Are you sure about what you have written? :laugh:

            There is no foolish question, there is no final answer...

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups