DetailsView event ?

N

NEWS

I am using a DetailsView control in ASP.Net / Visual Studio 2005 in a
website project.

The DetailsView contains a number of fields.

the second field is a customerID field which i need to calculate and display
automatically depending on what the user enters into the first field.

I need a GotFocus or LoseFocus event so i can run some code when the user
leave;s the first input field.

any suggestions please.

thanks
 
C

cannontrodder

NEWS said:
I am using a DetailsView control in ASP.Net / Visual Studio 2005 in a
website project.

The DetailsView contains a number of fields.

the second field is a customerID field which i need to calculate and display
automatically depending on what the user enters into the first field.

I need a GotFocus or LoseFocus event so i can run some code when the user
leave;s the first input field.

any suggestions please.

thanks

If doing this clientside, you'd need to attach an onBlur handler to the
text box that holds this first field.
 
D

Dipesh

thanks for your relpy. i am not using a textbox, the text field is
automaticly generated by DetailsView. how would i go about this?

thanks
 
C

cannontrodder

Dipesh, your question is very topical for me as just yesterday, I was
frustrated by not being able to access the components of the
detailsview directly either.

I replaced the detailsview with a formview which has the exact same
functionality but gives you total control over the layout. You will
then be able to access the underlying textboxes directly.

Hope this is helpful.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top