I did not write the error down; however, reading a little further from the
It is a better approach. Thanks for your help!!
"Steve C. Orr [MVP, MCSD]" wrote:
> What is the error you are getting?
>
>
> "greatdane" <greatdane@discussions.microsoft.com> wrote in message
> news:649C5581-6163-45C9-8ADD-7CACA8BE485D@microsoft.com...
> > This helped me... Thanks
> > In addition I am trying to create on my page an array of 4 strings
> > containing the name of 4 textboxes from my control.
> > Dim a(4) as string
> > a(0) = "txtCrownofroad"
> > a(1) = "txtcntyfld"
> > a(2) = "txtreviewzone"
> > a(3) = "txtreviewbfe"
> > Dim x As Integer
> >
> > For x = 0 To a.Length
> > CType(ctlFReview_entry.FindControl(a(x)), TextBox).ReadOnly =
> > False
> > CType(ctlFReview_entry.FindControl(a(x)), TextBox).BorderColor
> > =
> > Color.SteelBlue
> > Next
> > I am getting an error because it is not reading '.FindControl(a(x))...
> > "Steve C. Orr [MVP, MCSD]" wrote:
> >
> >> The simplest way is to declare the textbox as public (instead of the
> >> default
> >> of private).
> >> You may be able to do this by setting its Modifiers property.
> >>
> >> Here are more details about best practices on this subject:
> >>
http://SteveOrr.net/faq/PassDataToUserControl.aspx > >>
> >> --
> >> I hope this helps,
> >> Steve C. Orr, MCSD, MVP
> >>
http://SteveOrr.net > >>
> >>
> >> "greatdane" <greatdane@discussions.microsoft.com> wrote in message
> >> news:60B2E709-0405-4E5C-9813-3F7615696CE6@microsoft.com...
> >> >I have a usercontrol with a textbox.
> >> > I displayed the control programmatically on my .aspx
> >> >
> >> > How could I manipulate the 'enable property' and/or bordercolor of the
> >> > ucl
> >> > textbox from my .aspx page?
> >>
> >>
> >>
>
>
> .