Membership Editor Works With Atlas March CTP
Friday 24 March 2006 @ 8:17 pm

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

 

- Posted in Uncategorized  




6 Responses to “Membership Editor Works With Atlas March CTP”

  1. Jackson Jones Windows Server 2003 Internet Explorer 6.0 Says:

    Great Article. Fun to play with. Very snappy.

  2. Jackson Jones Windows Server 2003 Internet Explorer 6.0 Says:

    When can we get the source?

  3. Tommy Lewis Windows Server 2003 Internet Explorer 6.0 Says:

    awesome!

  4. Administrator Windows XP Mozilla Firefox 1.5.0.3 Says:

    sdfasfd

  5. LukCAD Windows XP Internet Explorer 6.0 Says:

    Hello Peter!

    I use your code in many my applications. I am very thankfull that you wrote the membership for internet.

    I wrote one improvements for your membeship module and i hope it will usefull to know everyone how to do it.

    Image: What happend if username will consists the tabspaces!!! It will error of execution, because your programm splits the sentence of name of the assing/unassing button to get name of user, role and action.

    I propose more better way:

    - username we can get via ToolTip of Button!!!
    (Simplest way but the we can not use retrieving the username from splitting of name of button)
    - role must be before Username in sentence of our name of button (because when we have any tabspace in username, then role will pointed on any another but not on role name)

    I hope my notes will very useful for your next version of membership file.

    Sincerely, LukCAD

  6. joel Windows XP Internet Explorer 7.0 Says:

    I’m getting a yellow screen ‘o’ death when trying to view your demo?

Leave a Reply