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