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. How to create a button in aspx page and also how to write the onclick event for that button in .cs file for sharepoint site

How to create a button in aspx page and also how to write the onclick event for that button in .cs file for sharepoint site

Scheduled Pinned Locked Moved SharePoint
questionsharepointhelptutorialworkspace
6 Posts 3 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.
  • P Offline
    P Offline
    pavan garlapati
    wrote on last edited by
    #1

    Hi, I designed an aspx page to show in sharepoint site. I designed with two text boxes and one button in anaspx page. Now I want to write the code for that button click event. how can I do that ? In Dot net environment we write as follows: aspx page code -------------- ---- ---- .CS file code -------------- protected void EventName(object sender,EventArgs e) { --- --- } how to achieve the same above in Sharepoint web page? can anybody help ?

    J N 2 Replies Last reply
    0
    • P pavan garlapati

      Hi, I designed an aspx page to show in sharepoint site. I designed with two text boxes and one button in anaspx page. Now I want to write the code for that button click event. how can I do that ? In Dot net environment we write as follows: aspx page code -------------- ---- ---- .CS file code -------------- protected void EventName(object sender,EventArgs e) { --- --- } how to achieve the same above in Sharepoint web page? can anybody help ?

      J Offline
      J Offline
      JimmyRopes
      wrote on last edited by
      #2

      Take a look here[^]

      Simply Elegant Designs JimmyRopes Designs
      Think inside the box! ProActive Secure Systems
      I'm on-line therefore I am. JimmyRopes

      N 1 Reply Last reply
      0
      • P pavan garlapati

        Hi, I designed an aspx page to show in sharepoint site. I designed with two text boxes and one button in anaspx page. Now I want to write the code for that button click event. how can I do that ? In Dot net environment we write as follows: aspx page code -------------- ---- ---- .CS file code -------------- protected void EventName(object sender,EventArgs e) { --- --- } how to achieve the same above in Sharepoint web page? can anybody help ?

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

        Have a look here for a discusion of using code-behind files in SharePoint, http://www.andrewconnell.com/blog/articles/UsingCodeBehindFilesInSharePointSites.aspx[^]


        I know the language. I've read a book. - _Madmatt

        1 Reply Last reply
        0
        • J JimmyRopes

          Take a look here[^]

          Simply Elegant Designs JimmyRopes Designs
          Think inside the box! ProActive Secure Systems
          I'm on-line therefore I am. JimmyRopes

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

          Not excatly relevant to the question. There are special consideration to take into account when using code-behind files with SharePoint.


          I know the language. I've read a book. - _Madmatt

          J 1 Reply Last reply
          0
          • N Not Active

            Not excatly relevant to the question. There are special consideration to take into account when using code-behind files with SharePoint.


            I know the language. I've read a book. - _Madmatt

            J Offline
            J Offline
            JimmyRopes
            wrote on last edited by
            #5

            It had an example of how to specify an event handler which is what I thought he was asking.

            Simply Elegant Designs JimmyRopes Designs
            Think inside the box! ProActive Secure Systems
            I'm on-line therefore I am. JimmyRopes

            N 1 Reply Last reply
            0
            • J JimmyRopes

              It had an example of how to specify an event handler which is what I thought he was asking.

              Simply Elegant Designs JimmyRopes Designs
              Think inside the box! ProActive Secure Systems
              I'm on-line therefore I am. JimmyRopes

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

              Yes, he was, but using code-behind in a SharePoint environment is different than a normal ASP.NET environment.


              I know the language. I've read a book. - _Madmatt

              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