Forum Moderators: open

Message Too Old, No Replies

retrieve controls value in .Net

need help

         

tomasz

7:03 pm on Aug 31, 2004 (gmt 0)

10+ Year Member



I created custom control. This control is a datagrid with custom item and contains label control, dropdown and checkbox.

I am adding this control pragmatically
..
Dim ctl As Control = LoadControl("Controls/seealso.ascx")
CType(ctl, SeeAlso).Type = Make
CType(ctl, SeeAlso).Category = Model
plcSeeAlso.Controls.Add(ctl)
'plcSeeAlso placeholder
..

How can I retrieve value from this control

I am trying
Dim bChecked As CheckBox = plcSeeAlso.FindControl("chkGetQuote")

but it returns nothing
thanks

tomasz

5:13 pm on Sep 1, 2004 (gmt 0)

10+ Year Member



Any .Net gurus out there?

Small Website Guy

8:57 pm on Sep 1, 2004 (gmt 0)

10+ Year Member



Request.Form("name_of_control")

will tell you the value of any control that posted back information.