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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Default Button of a page -- how?

Default Button of a page -- how?

Scheduled Pinned Locked Moved ASP.NET
csharpquestionasp-net
4 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.
  • D Offline
    D Offline
    dipak dipak
    wrote on last edited by
    #1

    Hello, how can i set default button of a ASP.NET webpage with C# code? We set default button of a windows application Form as this.AcceptButton = btnShow; i want like this. but for a webpage. Please reply.. THANK YOU :-O

    Dipak

    T E A 3 Replies Last reply
    0
    • D dipak dipak

      Hello, how can i set default button of a ASP.NET webpage with C# code? We set default button of a windows application Form as this.AcceptButton = btnShow; i want like this. but for a webpage. Please reply.. THANK YOU :-O

      Dipak

      T Offline
      T Offline
      ToddHileHoffer
      wrote on last edited by
      #2

      In 2.0 and up... Drop an asp:panel control on your page. Each panel control has a Default Button Property.

      I didn't get any requirements for the signature

      1 Reply Last reply
      0
      • D dipak dipak

        Hello, how can i set default button of a ASP.NET webpage with C# code? We set default button of a windows application Form as this.AcceptButton = btnShow; i want like this. but for a webpage. Please reply.. THANK YOU :-O

        Dipak

        E Offline
        E Offline
        eyeseetee
        wrote on last edited by
        #3

        form1.DefaultButton = btnShow; :)

        1 Reply Last reply
        0
        • D dipak dipak

          Hello, how can i set default button of a ASP.NET webpage with C# code? We set default button of a windows application Form as this.AcceptButton = btnShow; i want like this. but for a webpage. Please reply.. THANK YOU :-O

          Dipak

          A Offline
          A Offline
          Ajeet mittal
          wrote on last edited by
          #4

          simply write defaultbutton="button name" in form tag. this will work as default button on the page.

          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