Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Security and Ajax.NET Professional
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Michael Schwarz  
View profile  
 More options May 12 2006, 4:59 am
From: "Michael Schwarz" <michael.schw...@gmail.com>
Date: Fri, 12 May 2006 10:59:46 +0200
Local: Fri, May 12 2006 4:59 am
Subject: Security and Ajax.NET Professional
Hi,

I have added a new example page to the web project template
(http://www.ajaxpro.info) that will show how to use the
AuthenticationService and SecurityPermission attribute.

See this example:

------------------------------
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Security.Permissions;

public partial class SecurityCS : System.Web.UI.Page
{
  [AjaxPro.AjaxMethod]
  [PrincipalPermission(SecurityAction.Demand, Role = "Admin")]
  public static string AdminMethod()
  {
    return "Hello Admin!";
  }

  protected void Page_Load(object sender, EventArgs e)
  {
    // Register Ajax.NET methods from this class
    AjaxPro.Utility.RegisterTypeForAjax(typeof(AjaxPro.Services.AuthenticationS ervice));
    AjaxPro.Utility.RegisterTypeForAjax(typeof(SecurityCS));
  }

}

------------------------------

The AuthenticationService lets you sign in and out directly from
JavaScript code:

<script type="text/javascript>
AjaxPro.Services.Authentication.Login(username, password, callback);
</script>

If you then access a AjaxMethod without the needed security rights you
will get an SecurityException.

Download the latest version 6.5.12.1 and play around with the
security.aspx, available in C# and VB.NET at http://www.ajaxpro.info/.

--
Best regards | Schöne Grüße
Michael

Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer

http://weblogs.asp.net/mschwarz/
http://www.schwarz-interactive.de/
mailto:i...@schwarz-interactive.de


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
lijing  
View profile  
 More options May 12 2006, 7:43 am
From: "lijing" <li_j...@cau.edu.cn>
Date: Fri, 12 May 2006 04:43:55 -0700
Local: Fri, May 12 2006 7:43 am
Subject: Re: Security and Ajax.NET Professional
Great work! Michael

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Schwarz  
View profile  
 More options May 12 2006, 7:46 am
From: "Michael Schwarz" <michael.schw...@gmail.com>
Date: Fri, 12 May 2006 13:46:53 +0200
Local: Fri, May 12 2006 7:46 am
Subject: Re: [ajaxpro] Re: Security and Ajax.NET Professional
I will add more and more examples to show how powerful Ajax.NET
Professional is today. As I can imagine not everything that is inside
the lib is known by everyone, so, let me create these examples and
tutorials next days.

Regards,
Michael

PS: Do you have any need as an example? Next I will show how to use
the ProfileService, after this I will build a page with DropDown
controls...

On 5/12/06, lijing <li_j...@cau.edu.cn> wrote:

> Great work! Michael

--
Best regards | Schöne Grüße
Michael

Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer

http://weblogs.asp.net/mschwarz/
http://www.schwarz-interactive.de/
mailto:i...@schwarz-interactive.de


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
lijing  
View profile  
 More options May 12 2006, 10:42 am
From: "lijing" <li_j...@cau.edu.cn>
Date: Fri, 12 May 2006 07:42:38 -0700
Local: Fri, May 12 2006 10:42 am
Subject: Re: Security and Ajax.NET Professional
yeah,there aren't enough tutorials now,  esp the structure of AjaxPro
lib,the usage of all classes...  and more examples are really needed.
well,i can see the power of AjaxPro, so Michael ,keep going.
looking forward to more great works from you.

great thanx


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gonzalo Brusella  
View profile  
 More options May 12 2006, 2:19 pm
From: "Gonzalo Brusella" <gbruse...@gmail.com>
Date: Fri, 12 May 2006 15:19:01 -0300
Local: Fri, May 12 2006 2:19 pm
Subject: Re: [ajaxpro] Re: Security and Ajax.NET Professional

It also will be usefull to have the full source of the last version (the
page is outdated)...

On 5/12/06, lijing <li_j...@cau.edu.cn> wrote:

> yeah,there aren't enough tutorials now,  esp the structure of AjaxPro
> lib,the usage of all classes...  and more examples are really needed.
> well,i can see the power of AjaxPro, so Michael ,keep going.
> looking forward to more great works from you.

> great thanx

--
Saludos
Gonzalo!

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Schwarz  
View profile  
 More options May 12 2006, 4:41 pm
From: "Michael Schwarz" <michael.schw...@gmail.com>
Date: Fri, 12 May 2006 22:41:01 +0200
Local: Fri, May 12 2006 4:41 pm
Subject: Re: [ajaxpro] Re: Security and Ajax.NET Professional
Because I don't want to see my source built in own assemblies/products
the source code will be everytime some weeks older than the current
release. I hope you understand me... The source code was uploaded to
show how the lib is done internal and not to build your own lib from
the source code. I have already had a lot of discussions about this...

Regards,
Michael

On 5/12/06, Gonzalo Brusella <gbruse...@gmail.com> wrote:

--
Best regards | Schöne Grüße
Michael

Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer

http://weblogs.asp.net/mschwarz/
http://www.schwarz-interactive.de/
mailto:i...@schwarz-interactive.de


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
GarDavis  
View profile  
 More options May 15 2006, 9:36 am
From: "GarDavis" <g...@webguild.com>
Date: Mon, 15 May 2006 13:36:13 -0000
Local: Mon, May 15 2006 9:36 am
Subject: Re: Security and Ajax.NET Professional

> Download the latest version 6.5.12.1 and play around with the

I downloaded this but the AjaxPro.2.DLL version says 6.5.9.1 and the
date is 5/9.

GarDavis


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Schwarz  
View profile  
 More options May 15 2006, 10:32 am
From: "Michael Schwarz" <michael.schw...@gmail.com>
Date: Mon, 15 May 2006 16:32:22 +0200
Local: Mon, May 15 2006 10:32 am
Subject: Re: [ajaxpro] Re: Security and Ajax.NET Professional
Yes, sorry, this is my fault. I will update the files shortly...

Regards,
Michael

On 5/15/06, GarDavis <g...@webguild.com> wrote:

> > Download the latest version 6.5.12.1 and play around with the

> I downloaded this but the AjaxPro.2.DLL version says 6.5.9.1 and the
> date is 5/9.

> GarDavis

--
Best regards | Schöne Grüße
Michael

Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer

http://weblogs.asp.net/mschwarz/
http://www.schwarz-interactive.de/
mailto:i...@schwarz-interactive.de


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »