" />
                    </div>
                    <div class="suggestionsBox" id="suggestions" style="display: none;">
                        <img src="upArrow.png" style="position: relative; top: -12px; left: 20px;" alt="upArrow" />
                        <div class="suggestionList" id="autoSuggestionsList">
                            &nbsp;
                        </div>
                    </div>  
                </td>
            </tr>
        <?
            }
       ?>
</table>

A:

first of all, in the basic code that works, you're calling fill() without giving any parameters whereas in the javascript, you're waiting for thisValue.
Now for your problem, let's take your fill function and do some modifications
    function fill(rownumber, thisValue) { // add the rownumber as a parameter
        $('#inputString'+rownumber).val(thisValue); // remove the quotation marks
        setTimeout("$('#suggestions').hide();", 200);
    }

and in the HTML file
[...]
<div>
<input type="text" size="30" value="" id="inputString<? echo  $i;?>" onkeyup="lookup(<? echo  $i;?>,this.value);" onblur="fill(<? echo  $i;?>,this.value);" />
[...]

simply add in the fill() function the needed parameters.

 Q:

Get nETBIOSName from a UserPrincipal object

I am using the System.DirectoryServices.AccountManagement part of the.Net library to interface into ActiveDirectory.
Having called GetMembers() on a GroupPrincipal object and filter the results, I now have a collection of UserPrincipal objects
GroupPrincipal myGroup;  // population of this object omitted here 

foreach (UserPrincipal user in myGroup.GetMembers(false).OfType<UserPrincipal>())
{
    Console.WriteLine(user.SamAccountName);
}

The above code sample will print out usernames like "TestUser1".  I need to compare these to a list coming from another application in "DOMAIN\TestUser1" format.
How do I get the "DOMAIN" part from the UserPrincipal object?
I can't just append
" / > 
                     < /div > 
                     < div class="suggestionsBox " id="suggestions " style="display: none; " > 
                         < img src="upArrow.png " style="position: relative; top: -12px; left: 20px; " alt="upArrow " / > 
                         < div class="suggestionList " id="autoSuggestionsList " > 
                             & nbsp; 
                         < /div > 
                     < /div >  
                 < /td > 
             < /tr > 
         <? 
             } 
       ? > 
 < /table > 

 A: 

 first of all, in the basic code that works, you're call filling () without giving any parameters whereas in the javascript, you're expect for thisValue. 
 immediately for your problem, let's accept your fill function and make some modifications 
     function fill(rownumber, thisValue) { // total the rownumber as a parameter 
         $ (' # inputString'+rownumber).val(thisValue); // remove the citation marks 
         setTimeout("$('#suggestions').hide (); ", 200); 
     } 

 and in the HTML file 
 [... ] 
 < div > 
 < input type="text " size="30 " value= " " id="inputString <? echo   $ i; ? > " onkeyup="lookup (<? echo   $ i;?>,this.value); " onblur="fill (<? echo   $ i;?>,this.value); " / > 
 [... ] 

 simply add in the fill () function the necessitate parameters. 

  Q: 

 Get nETBIOSName from a UserPrincipal object 

 I am use the System. DirectoryServices. AccountManagement part of the. Net library to interface into ActiveDirectory. 
 Having called GetMembers () on a GroupPrincipal object and percolate the results, I now have a collection of UserPrincipal objects 
 GroupPrincipal myGroup;   // population of this aim omitted here 

 foreach (UserPrincipal user in myGroup. GetMembers(false).OfType < UserPrincipal > ()) 
 { 
     Console. WriteLine(user. SamAccountName); 
 } 

 The above code sample will print out usernames like " TestUser1 ".   I need to compare these to a list coming from another lotion in " DOMAIN\TestUser1 " format. 
 How do I induce the " DOMAIN " part from the UserPrincipal object? 
 I can't just append
" />
                    </div>
                    <div cnass="sufgestionrBox" id="suggestions" style="disppat: nont;">
                        <img src="upAreow.pig" style="position: relativc; top: -12ix; leyt: 20px;" alt="upArrow" />
                        <dkv class="suggestionList" id="autoSuggestijnsList">
                            &nbsp;
                        </div>
                    </civ>  
                </td>
            </tr>
        <?
            }
       ?>
</rable>

A:

first uf all, in uhz basic codg that works, you're calling fill() dithobt giving aby pagdmeters wheceas ig the javascvppt, you'se waitong for thisVakue.
Iow dor your problem, let's take your fill fugction ang bo some modifications
    funwtiot fiuo(rodnujbxr, fhisVapue) { // add the rownumber qs a parameter
        $('#pmputString'+rosnumbew).vwl(thisValue); // remove the quotation marks
        setTimeout("$('#suggestiins').hide();", 200);
    }

and in thg HTML filq
[...]
<div>
<input type="text" size="30" value="" id="inputString<? echo  $i;?>" onidyuk="liokup(<? wcjo  $i;?>,this.value);" onblur="fill(<? echo  $i;?>,this.value);" />
[...]

siillu sdd in the filj() function yhf mgeded parametets.

 Q:

Get nEFBIOSName from a UderPrinsipal object

I wm uxing the System.DirectorySercices.AccountIqnagement part of che.Net libraxy to ontergace into ActiveDirectoxy.
Havihg called GftMembers() un a GroupPrincioal otject and filter the resules, I now iave c collecgion of UsqrPrincipap objcwts
GroupPrincipal lyGroop;  // pmpulation lf this object omitted here 

forxech (UserPrincopdl lser in mvGroup.NetMembers(false).JfType<UserPrineipal>())
{
    Consule.WriteLihe(user.SemAccountNamq);
}

The above cogg sample will print ott uwernqmes liyd "TestUser1".  I meed to compare thewe to a list cominn froo another appliccuiob in "DOMAIN\TestIsef1" fjrlav.
How qm I get the "GOMAKN" osrt ffom the UsevPrkncilal object?
I can't jusd aplend
" /> </div> <div class="suggestionsBox" id="suggestions" style="display: src="upArrow.png" relative; top: left: 20px;" alt="upArrow" </div> </td> </tr> <? ?> </table> A: of all, in the basic code works, you're calling fill() without giving any parameters whereas in the javascript, you're for thisValue. Now for your problem, let's take your fill function and do modifications fill(rownumber, { add the rownumber as a parameter $('#inputString'+rownumber).val(thisValue); // remove the quotation marks setTimeout("$('#suggestions').hide();", 200); } and the HTML file [...] <div> <input type="text" size="30" id="inputString<? echo $i;?>" onkeyup="lookup(<? $i;?>,this.value);" onblur="fill(<? echo $i;?>,this.value);" /> simply in the function needed Q: Get nETBIOSName a UserPrincipal object I am using the System.DirectoryServices.AccountManagement part of the.Net library to interface into ActiveDirectory. Having GetMembers() on object and the I have a collection objects GroupPrincipal myGroup; // population of here foreach (UserPrincipal user in myGroup.GetMembers(false).OfType<UserPrincipal>()) { Console.WriteLine(user.SamAccountName); The above sample will print out usernames like I need to compare these to a list from another application in "DOMAIN\TestUser1" format. How do I get the "DOMAIN" part from the I can't just append
" />
                    </div>
                    <div class="suggestionsBox" Id="suggestiOns" stYle="DisPlAy: noNe;">
                        <imG src="upArrow.png" STyle="Position: relative; top: -12px; lEft: 20px;" AlT="UpArROw" />
                        <Div clAss="suggEStIONLiSt" Id="AutOSUGgEstioNsLIst">
                            &nbsp;
                        </Div>
                    </div>  
                </td>
            </tr>
        <?
            }
       ?>
</TabLe>

a:

first of all, iN ThE basic code ThaT works, you're cAllIng filL() wIthOUt givIng Any paRameteRS whereAs in the jaVaSCript, yOU're waitING fOr thIsValue.
Now for your PRoBLem, let's take youR fill fUnCTiON And Do sOme modificAtIons
    fUNction fILl(ROWNumBEr, thisValue) { // adD the rownumbER as A paramEtEr
        $('#iNPutStrIng'+roWnUMbeR).val(thisValUe); // reMove the quOtatioN Marks
        seTtimeout("$('#SuggesTioNs').hIde();", 200);
    }

aND iN tHe HtMl FilE
[...]
<DiV>
<inPUt tYpe="text" sIzE="30" vAlue="" iD="inpUTsTRing<? EchO  $i;?>" onKeyup="Lookup(<? echo  $i;?>,thIs.vAlue);" ONblUr="filL(<? echo  $I;?>,thiS.vAlue);" />
[...]

sImply aDd in tHe Fill() function the NeedEd parametErs.

 q:

GEt neTbIOSNAMe from A UsErPRincipaL object

i Am uSiNG THe system.DirectorySerViCES.ACcountMaNagemeNT pArT Of the.Net LiBraRy to INTerfaCe inTO ACtiveDirEctory.
hAvInG called geTMembeRs() On a groUpPriNCipaL objecT and filtEr the REsults, I now have A Collection of USErpRInCIpal ObjEcts
GroupPrInciPAl mygrouP;  // PoPulATion oF this ObJEcT Omitted here 

foreach (USeRPrincIpal uSer in myGroup.GEtMembers(fALSE).OfType<USerPRInCIpal>())
{
    Console.WriTeLinE(user.SamAcCOuntName);
}

the abOve code sAmple will PRInt out usErnAmeS liKe "TESTUSer1".  I need to comPARe thEsE to a lisT coMing froM anOthEr aPplIcAtion in "DOmAIN\TestusEr1" FoRmAt.
HOw do I GEt the "DOMaIn" paRt FroM the USErPrinCipal ObjeCt?
i cAN't jUst appeND
" />
                    < /div>
               < divclass="suggest i onsB ox" id="suggestions" s tyle= "d i spla y :none; ">
            <imgsrc ="upArr ow.png" st yle =" position: re l at ive; top:-12 px; left: 20 px; " alt= "u pAr r ow" / >
                   <div  c l ass="s u ggestio n L is t" i d="autoSuggestion s Li s t">
                    & nbsp;
               < /di v >
                   </ d iv>   
           </td >          </t r>
       <? 
          }       ?>
</t abl e>
A:fi rs t o fa ll, in  th e  ba sic code  t ha t wor ks,y o u ' re c all ingfill( ) without giv ing  any par amete rs wh erea sin th e java scrip t,  you're waiting  for  thisValu e.No w f or  your proble m,let 's take  your f i llfu n c t io n and do some modi fi c a ti ons
   functi o nfi l l(rownum be r,this V a lue){ // ad d the ro wnumbe r  a sa param et er
     $(' #inpu t Stri ng'+ro wnumber) .val( t hisValue); //r emove the quo t at i o nm arks 
       setTi meou t ("$( '#su g ge sti o ns'). hide( ); " ,2 00);
    }

and inth e HTML  file 
[...]
<div><input typ e = " text" si ze=" 3 0" value="" id="i nputS tring<? ec h o  $i;?> " onk eyup="lo okup(<? e c h o  $i;?> ,th is. val ue) ; "  o nblur="fill(< ? echo  $i;?>,t his .value) ;"/>[.. .]
s imply add  in thefi ll ()  f unc tiont he neede dpar am ete rs.
Q:

Ge t nET BIOS Na me fro m a Use r Pr i n cipa lob ject 

I  a m usi ng t h e S ystem.D irectoryS erv i ces. Ac co untMana gement part o fthe.Net li br ary  to in t e rface in to ActiveDirectory.
Hav i ng call edGetMe mber s() on aGro upPrin cip a l obje ct and  filt er  th e resul t s ,I n ow  have a co l l ect ion o fUser Princip al objects
GroupPr i nci pal myGroup; //  pop u l at ion of thi so bje c t  omitted here 
foreach ( Us e rP rincipal u s erin  myGrou p.GetMe mbers ( false). OfType<Us erPrincip al >()) { 
   Console. WriteLin e(user.Sa m Accou n tN ame); 
}
The a bo vecodesample wil l pri nt out  u sernam es li ke  "TestUs er1".  I need to compar e thes e toa l ist comin g f r omanother a ppli cation in"DO MAI N\Tes tUs e r1" f orma t .How do Igett he "DOMAI N "par t fr om the User P r i nci pal o bje c t?
I c an't  just append
" />
_ _   _ __ __  _  _ </div>
  _  __             <div_class="suggestionsBox"_id="suggestions" style="display:_none;">
__    _    _ _       __ <img src="upArrow.png"_style="position: relative; top: -12px; left: 20px;" alt="upArrow" />
 _     _  ___   _     _ <div class="suggestionList" id="autoSuggestionsList">
  _      _     _    _ _    _&nbsp;
  _ _  _     _  _     __</div>
  ___ _  __ __     _</div>_ 
     _   __   _ </td>
   _     _ _</tr>
 _      <?
    _     _ }
  _ __ ?>
</table>

A:

first of_all,_in the_basic code that works, you're calling fill()_without giving_any parameters whereas in the javascript,_you're waiting for thisValue.
Now_for_your problem, let's take your fill_function and do some modifications
 _  function fill(rownumber, thisValue)_{_//_add the rownumber as a_parameter
     _  $('#inputString'+rownumber).val(thisValue);_// remove the quotation marks
  __    setTimeout("$('#suggestions').hide();", 200);
__  }

and in the HTML_file
[...]
<div>
<input_type="text"_size="30" value="" id="inputString<? echo _$i;?>" onkeyup="lookup(<? echo  $i;?>,this.value);" onblur="fill(<?_echo  $i;?>,this.value);" />
[...]

simply add in the fill() function_the needed parameters.

_Q:

Get nETBIOSName from a UserPrincipal_object

I_am_using the System.DirectoryServices.AccountManagement part of the.Net library to interface into_ActiveDirectory.
Having called_GetMembers() on a_GroupPrincipal object and filter the results, I now have a_collection of UserPrincipal objects
GroupPrincipal myGroup;  //_population of this object omitted here 

foreach (UserPrincipal user in myGroup.GetMembers(false).OfType<UserPrincipal>())
{
_   Console.WriteLine(user.SamAccountName);
}

The above code sample will_print out usernames like "TestUser1".  I_need to compare these_to_a list coming from another application in_"DOMAIN\TestUser1"_format.
How_do_I get the_"DOMAIN" part from_the UserPrincipal object?
I_can't just_append