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. ASP.NET
  4. AUTOCOMPLETE

AUTOCOMPLETE

Scheduled Pinned Locked Moved ASP.NET
toolscomtestingquestion
5 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
    padmanabhan N
    wrote on last edited by
    #1

    Hi experts, Autocomplete can be done in 3 ways 1.

    1. 3.Textbox1.Attributes.Add("autocomplete", "off");. We can also set AutoCompleteType="disabled" But i want to do this in whole application. Is it possible to put it in web.config or is there any other solutions for this.

    Padmanabhan My Articles: Articles[^] My latest Article: Word Automation[^]

    P Steve EcholsS 2 Replies Last reply
    0
    • P padmanabhan N

      Hi experts, Autocomplete can be done in 3 ways 1.

      1. 3.Textbox1.Attributes.Add("autocomplete", "off");. We can also set AutoCompleteType="disabled" But i want to do this in whole application. Is it possible to put it in web.config or is there any other solutions for this.

      Padmanabhan My Articles: Articles[^] My latest Article: Word Automation[^]

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      Theoretically, you could write a Http Module that would add this. Basically, you would register for the PreSendRequestContent and PreRequestHandlerExecute events and modify the output content there.

      I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be

      Forgive your enemies - it messes with their heads

      My blog | My articles | MoXAML PowerToys | Onyx

      1 Reply Last reply
      0
      • P padmanabhan N

        Hi experts, Autocomplete can be done in 3 ways 1.

        1. 3.Textbox1.Attributes.Add("autocomplete", "off");. We can also set AutoCompleteType="disabled" But i want to do this in whole application. Is it possible to put it in web.config or is there any other solutions for this.

        Padmanabhan My Articles: Articles[^] My latest Article: Word Automation[^]

        Steve EcholsS Offline
        Steve EcholsS Offline
        Steve Echols
        wrote on last edited by
        #3

        You can also do this in a skin file. 1) Right click on your the root of your web project and select Add ASP.Net Folder -> Theme. Give it a name. 2) Right click on the new theme and select Add New Item -> Skin File 3) In your new .skin file add: <asp:textbox runat="server" autocomplete="off"></asp:textbox> 4) In web.config modify: <pages theme="Name of your theme in step 1"> That should get you rolling.


        - S 50 cups of coffee and you know it's on! Code, follow, or get out of the way.

        • S
          50 cups of coffee and you know it's on!
          Code, follow, or get out of the way.
        P 1 Reply Last reply
        0
        • Steve EcholsS Steve Echols

          You can also do this in a skin file. 1) Right click on your the root of your web project and select Add ASP.Net Folder -> Theme. Give it a name. 2) Right click on the new theme and select Add New Item -> Skin File 3) In your new .skin file add: <asp:textbox runat="server" autocomplete="off"></asp:textbox> 4) In web.config modify: <pages theme="Name of your theme in step 1"> That should get you rolling.


          - S 50 cups of coffee and you know it's on! Code, follow, or get out of the way.

          P Offline
          P Offline
          padmanabhan N
          wrote on last edited by
          #4

          Thanks a lot........:thumbsup: It works great....... one doubt..... will it have any impact(disadvantage)

          Padmanabhan My Articles: Articles[^] My latest Article: Word Automation[^]

          Steve EcholsS 1 Reply Last reply
          0
          • P padmanabhan N

            Thanks a lot........:thumbsup: It works great....... one doubt..... will it have any impact(disadvantage)

            Padmanabhan My Articles: Articles[^] My latest Article: Word Automation[^]

            Steve EcholsS Offline
            Steve EcholsS Offline
            Steve Echols
            wrote on last edited by
            #5

            I'm not aware of any draw backs to using skin files, other than having to manually override the skin for every textbox you want autocomplete enabled for (using txtWhatever.Attributes.Add("autocomplete", "on")).


            - S 50 cups of coffee and you know it's on! Code, follow, or get out of the way.

            • S
              50 cups of coffee and you know it's on!
              Code, follow, or get out of the way.
            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