Usercontrol In A Webform

S

Scott

Ok....I'm really stumped on this one. I've got a webform
with a usercontrol set in it. The usercontrol handles
login and nav. things. In the UC(usercontrol) i have 3
textboxs and a label.

The webform has some linkbuttons on it that I want to be
able to "interact" with the label in the usercontrol.
Like..if a user clicks a link button and my session shows
them not to be logged in...I want to be able to write an
error message into the label. Also...I want the ability
for a user to just enter their login information into the
3 textboxs in the usercontrol and click the linkbutton on
the webform and get logged in and do the things i've
assigned to the linkbutton.

Hope this makes sense....thanks ahead for any
suggestions!!

-s-
 
J

Jon Yates

I've never done this, but off the top of my head I would
have a go at the following (no guarantees!)

Create a class with some public fields that can be 'set'
and 'got' and then from your button on the webform access
the fields.

I have done similar to this but I just put the button on
the UC.

HTH,

JY
 

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

Forum statistics

Threads
474,076
Messages
2,570,565
Members
47,201
Latest member
IvyTeeter

Latest Threads

Top