How to make a data bound web user control

C

Carlos Javier

I have a web user control (1 textbox, 1 linkbutton, and 1 dropdownlist). When I know the code of my client I just have to type in the textbox and clic the linkbutton, the dropdownlist is refreshed with the 1 only code. But, If I do no know the code I can write the first letters of the name and click the linkbutton (same) and the dropdownlist is populated with all the clients those names start with those letters. Fine

I use that web user control on all the reports form, good. Now I am trying to use it on a data entry form, for adding records very nice, but now when I try to use it with update or canceling records, the textbox and dropdownlists are blank because I can not put the Dst on it because they are web user control

How can I create a property or a piece of code for auto databinding the complete web user control with the data retrieved from SQL Server, I have a sub that when invoked, it looks for the text on the textbox and call the stored procedure for finding the client(s), but I do not know how to pass the information of the code to the web user control for auto refresh on me.databind of the form, table or whatever.
 

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

Members online

No members online now.

Forum statistics

Threads
474,121
Messages
2,570,712
Members
47,282
Latest member
hopkins1988

Latest Threads

Top