M
Mr Not So Know It All
newbie question - capture user control property values (ascx) to an
aspx file
sorry if this is a fundamental question. im new to c# and .Net.
is there a way to expose a property from an ascx file (user control) to
the parent aspx file. for example, let's say i have an user control
file called radiobuttons.ascx. radiobuttons.ascx inherits a compiled cs
file called radiobuttons. in radiobuttons.cs, i have a property called
radioValue. in radiobuttons.ascx i have a radiobuttonlist with two
buttons (values equal 1 and 2).
i loadcontrol the radiobuttons file (with proper casting) into an aspx
file. scenario 1 is this
i want the parent aspx file to capture the radiobutton value from
radiobuttons.ascx file.
scenario 2 is this
radiobutton.ascx is loaded into the aspx file. you click the button. it
fires an event that calls a function that gets a value from a database.
i set that value to the radioValue property from the radiobuttons.cs
file. how do i get the aspx file to capture that radioValue property
value.
thx in advance and i look forward to any help.
aspx file
sorry if this is a fundamental question. im new to c# and .Net.
is there a way to expose a property from an ascx file (user control) to
the parent aspx file. for example, let's say i have an user control
file called radiobuttons.ascx. radiobuttons.ascx inherits a compiled cs
file called radiobuttons. in radiobuttons.cs, i have a property called
radioValue. in radiobuttons.ascx i have a radiobuttonlist with two
buttons (values equal 1 and 2).
i loadcontrol the radiobuttons file (with proper casting) into an aspx
file. scenario 1 is this
i want the parent aspx file to capture the radiobutton value from
radiobuttons.ascx file.
scenario 2 is this
radiobutton.ascx is loaded into the aspx file. you click the button. it
fires an event that calls a function that gets a value from a database.
i set that value to the radioValue property from the radiobuttons.cs
file. how do i get the aspx file to capture that radioValue property
value.
thx in advance and i look forward to any help.