Composite webcontrol and postback

G

George Ionescu

Hello all,

while trying to develop a composite webcontrol (which has, among other
things two textboxes and no submit buttons) I've faced the following
problem:

how can I read webcontrol's texboxes values, how can it pass data posted
from the client ?

I've looked into IPostBackDataHandler.LoadPostData, but it doesn't get
fired.

Any examples, if possible.

Thank you.
Regards,
George Ionescu
 
R

Robert Koritnik

the normal way: textBoxID.Text...

But it depends where you want to read those values. If it's inside your
composite control or container (i.e. page). Anyway. If you access those
values inside your webcontrol refer to my first line. If you access those
values from the outside it's best to make two properties on the webcontrol
which actually are just accessing those same Text properties of the
textboxes. So?

If you would just like to examine the text passed from the user side there's
no need for implementing that interface. Why? Should you control fire any
server events or anything else.

But obviewsly I think we're all missing something. Probably there is more
behind this, that you forgot to tell. Sometimes details ARE important... ;)
 

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
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top