Membership Editor Works With Atlas March CTP

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

About Peter Kellner

Follow me:


Comments

  1. Can I have the membership too? I might want to look for something.I am just getting a real headache on the codes.

  2. Mr.Carrot21 says:

    Categorically state the importance of Dynamics to the rest of Microsoft, as much as possible. ,

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

  4. 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

  5. Administrator says:

    sdfasfd

  6. Tommy Lewis says:

    awesome!

  7. Jackson Jones says:

    When can we get the source?

  8. Jackson Jones says:

    Great Article. Fun to play with. Very snappy.

Follow

Get every new post delivered to your Inbox

Join other followers: