Re: setting a usercontrol property as another control



Wow, i must be tired, please disregard this question

kferron wrote:
if i wanted to expose a property on a usercontrol that basically would
work like the way the validators work with the ControlToValidate
property, whats a reliable way of finding the correct control off of a
text property?

I was figuring i could expose a string, allow the consumer to set it,
and then use some technique in the usercontrol to get the reference to
the instance of the control, but i'm not having much luck with actually
finding the control from the parent page by a string that matches the
control ID of the target control.

it would be great if someone could help.. if i have to end up writing a
recursive FindControl method i will, but that makes me feel a little
sick inside.

.



Relevant Pages

  • setting a usercontrol property as another control
    ... if i wanted to expose a property on a usercontrol that basically would ... work like the way the validators work with the ControlToValidate ... I was figuring i could expose a string, allow the consumer to set it, ... the instance of the control, but i'm not having much luck with actually ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: CreateEventProc error
    ... Private Sub BuildDisplayForm(strPath As String, ... Dim qdf As QueryDef, qdfControls As QueryDef ... Dim ctl As Control, ctlLabel As Control, ctlParent As Control ... Dim strFilter As String, strSuffix As String, strParentName As String, ...
    (microsoft.public.access.forms)
  • Re: unable to load WinSocket dll in Excel Visual Basic Editor
    ... in my "com controls" list but as soon as I try to add the winsock control I ... may or not need the alias portion of the library definiation. ... Public Declare Function FtpSetCurrentDirectory Lib "wininet.dll" Alias ... (ByVal hFtpSession As Long, ByVal lpszCurrentDirectory As String, ...
    (microsoft.public.excel.programming)
  • Having trouble with multi-select list box in Access
    ... Const mstrcRange_Begin As String ... name of a control that represents the End part of a range ... On Error GoTo ErrHandler ...
    (microsoft.public.access.gettingstarted)
  • Re: All Menu Navigation
    ... i based the implementation on sample code from http://www.asp.net/CSSAdapters/Menu.aspx, which shows how to create decent HTML for a Menu control bound to a SiteMapDataSource. ... public void RenderBeginTag(HtmlTextWriter writer, string cssClass) ... static public void RemoveProblemTypes ...
    (microsoft.public.dotnet.framework.aspnet)