DetailsView event ?

  • Thread starter Thread starter NEWS
  • Start date Start date
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
 
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.
 
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
 
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.
 
Back
Top