Visual Basic .NET » Visual Basic .NET General Discussion
Onclick event -- Sunil --


Hi,

When I click on a text box then the text inthe text box should be erased. How can I do that in ASP.NET,

Regards,

Sunil

-- Sunil Anupuru --

Hi ,

I want to keep the password textmode as singleline(not password) and after I click on the user name text box then its textmode should become password.

Regards,

Sunil
On 7/6/06, Sunil wrote:

Hi,

When I click on a text box then the text inthe text box should be
erased. How can I do that in ASP.NET,

Regards,

Sunil

 

-- [ÉË¿Ú] --

ok, i can tell you.

first, this is a client job, without server and ASP.NET language.

second, when mouse down on a textbox, it occurs an event named "onmousedown", you can write in the HTML code like this:



the expression "this.value=''", is to set the textbox's text to nothing.
----- Original Message -----
From: "Sunil"
To: "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting"
Sent: Thursday, July 06, 2006 1:27 PM Subject:
Onclick event

Hi,

When I click on a text box then the text inthe text box should be
erased. How can I do that in ASP.NET,

Regards,

Sunil


>

 

-- "Bradley, Peter" --


I don't understand.

If you're doing client-side only processing and if you're not using an ASP.NET language, why are you posting to a .NET Development list?

Maybe I've misunderstood you.
Peter

-----Original Message-----
From: DotNetDevelopment

Sent: 06 July 2006 12:55 To: DotNetDevelopment Subject:
Re: Onclick event

ok, i can tell you.

first, this is a client job, without server and ASP.NET language.

second, when mouse down on a textbox, it occurs an event named
"onmousedown", you can write in the HTML code like this:



the expression "this.value=''", is to set the textbox's text to nothing.
----- Original Message -----
From: "Sunil"
To: "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting"
Sent: Thursday, July 06, 2006 1:27 PM Subject:
Onclick event

Hi,

When I click on a text box then the text inthe text box should be
erased. How can I do that in ASP.NET,

Regards,

Sunil


>


 

-- Nesim_TUNÇ --

Hi;

textbox1_Click
sender.clear or textbox1.text=""

On 7/6/06, Sunil wrote:


Hi,

When I click on a text box then the text inthe text box should be
erased. How can I do that in ASP.NET,

Regards,

Sunil
>

--  

Nesim TUNÇ
Anadolu Bil Professional Higher of Education Computer Tech & Programming

-- "Bradley, Peter" --


I think this is a case for client-side processing. So JavaScript is your answer, I guess.

http://www.devguru.com/Technologies/ecmascript/quickref/evhan_onfocus.ht 
ml

On the other hand, I hope you've thought this through. Making a text box behave like this would mean that a user couldn't amend an entry without deleting it. That would annoy me no end if I were a user.

HTH
Peter

-----Original Message-----
From: DotNetDevelopment
Onclick event
Hi,

When I click on a text box then the text inthe text box should be erased. How can I do that in ASP.NET,

Regards,

Sunil


[Submit Comment]Home