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. text box selection

text box selection

Scheduled Pinned Locked Moved ASP.NET
csharpquestion
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.
  • B Offline
    B Offline
    biaali
    wrote on last edited by
    #1

    i need to know the events related to text box workin in c#.net asp forms.. how can i select a specefic text from the text box and manipulate like underline it or highligh it manually..

    C M 2 Replies Last reply
    0
    • B biaali

      i need to know the events related to text box workin in c#.net asp forms.. how can i select a specefic text from the text box and manipulate like underline it or highligh it manually..

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Nothing works in C#, your code runs on the client, and so needs to be javascript, if it's to interact directly with a control. You can't make text underlined in a text box in the browser, there are controls that do it, but the basic textbox does not. This is also true for Windows forms, as it happens. What exactly do you want to do ?

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

      B 1 Reply Last reply
      0
      • B biaali

        i need to know the events related to text box workin in c#.net asp forms.. how can i select a specefic text from the text box and manipulate like underline it or highligh it manually..

        M Offline
        M Offline
        M A A Mehedi Hasan
        wrote on last edited by
        #3

        Hello, You will find a free textbox control here. You can use it to underline text in client side. http://freetextbox.com/default.aspx[^]

        Mehedi Hasan

        1 Reply Last reply
        0
        • C Christian Graus

          Nothing works in C#, your code runs on the client, and so needs to be javascript, if it's to interact directly with a control. You can't make text underlined in a text box in the browser, there are controls that do it, but the basic textbox does not. This is also true for Windows forms, as it happens. What exactly do you want to do ?

          Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

          B Offline
          B Offline
          biaali
          wrote on last edited by
          #4

          i m confused by the statement that nothing works in C# .. but it does allow me to write a code behind the button that i wana use on my asp.net page ....so y java script??

          C 1 Reply Last reply
          0
          • B biaali

            i m confused by the statement that nothing works in C# .. but it does allow me to write a code behind the button that i wana use on my asp.net page ....so y java script??

            C Offline
            C Offline
            Christian Graus
            wrote on last edited by
            #5

            Your code behind runs on the server and can run business logic for you. But, C# code does not run on the client, javascript does. So, the interaction of form elements can be defined in C# only to the degree that the framework exposes C# properties which get turned into javascript code for you.

            Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

            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