Membership Editor Works With Atlas March CTP

Posted by Peter Kellner on March 25, 2006 · 2 mins read

Membership Editor Works With Atlas March Community Technology Preview IE and Firefox!

In two previous postings I used the January version of Atlas. At MIX06, Microsoft released the next version which is known as the March CTP. I have updated my web demonstration programs to take advantage of the new Atlas. The basic difference now is that the demonstrations all now work with Firefox as well as IE. I don't know about other browser compatability issues, but I'd sure like to hear if they work in your browser. The code can be run at the following locations:

http://livedemos.peterkellner.net/ (using March Atlas)

http://livedemos.peterkellner.net/DefaultNoAjax.aspx (no Atlas, just for comparison)

and demonstrating adding Membership with Personalization information:

http://livedemos.peterkellner.net/DefaultWithProfile.aspx

I have not yet posted the code for the working versions of this you can download. I'm still not happy with part of the solution. Specifically, to make the textbox field you enter the search name into work correctly the changed behavior has to be added. This is done by declaratively putting the following in the asp page of interest.


<script type="text/xml-script">
 <page>
  <components>
   <textbox id="ctl00_ContentPlaceHolder1_TextBoxUserSearch">
    <behaviors>
     <textchangedbehavior timeout="100"
          changed="onTextChange" />
    </behaviors>
   </textbox>
  </components>
 </page>
</script>

The TextBox is declared in the page as follows:

<asp :TextBox ID="TextBoxUserSearch"
 runat="server" AutoPostBack="False"
 CausesValidation="True">
</asp>

And, of course there must be this little picece of script to make to make it work:

<script type="text/javascript">
function onTextChange() {
__doPostBack('ctl00_ContentPlaceHolder1_GridViewMemberUser','') ;
}
</script>

The actual javascript that gets invoked is from Garbin's "The Atlas Notes blog".

The reason the control can be referenced inside a master page is because of the ct100_ContentPlaceHolder_ prefix on the ID. I'm hoping to find out how to do the above without referencing the control by it's strange ID. Anyone knows, please let me know. I'll then fix my code and post it for everyone to see. (with a blog entry of course)

Thanks