Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0PayPalSubscription.aspx -- UNsubscribe?PayPalSubscription.aspx -- UNsubscribe?
Previous
 
Next
New Post
7/14/2008 3:03 PM
 

Thank you CJ, now my next question is:

I am going to have to have a VERY large number of roles > 1000. Obviously I dont want to have to create each one individually, is their a way to dynamically check if the role exists and create it if not?

 
New Post
7/14/2008 3:26 PM
 

OK CJ, I am still having a issue. Actually it is the same issue I was having with my Paypal code. When I click the button, the page simply refreshes, nothing more. As A test I set a button_click to Response.redirect("Http://www.google.com")   still nothing. Is there something special you have to do to link to a page outside DNN??

 

Thanks

 
New Post
7/14/2008 4:31 PM
 

RDO wrote

Thank you CJ, now my next question is:

I am going to have to have a VERY large number of roles > 1000. Obviously I dont want to have to create each one individually, is their a way to dynamically check if the role exists and create it if not?

Hmmm.. I haven't tried this, but you might be able to use:  DotNetNuke.Security.Roles.RoleController.GetPortalRoles()

That should return an arraylist of (I assume to be) all of the Roles within the portal.  You could compare the current role to the list of PortalRoles and if it's not on the list, you can create it:  DotNetNuke.Security.Roles.RoleController.AddRole()

Have a look at the DNN Source Package, then go to the following:

\Library\Components\Security\Roles

There are serveral .vb files in there that actually give descriptions of what the DNN objects (related to roles) do.

CJ

 
New Post
7/14/2008 4:36 PM
 

RDO wrote

OK CJ, I am still having a issue. Actually it is the same issue I was having with my Paypal code. When I click the button, the page simply refreshes, nothing more. As A test I set a button_click to Response.redirect("Http://www.google.com")   still nothing. Is there something special you have to do to link to a page outside DNN??

 

Thanks

Hmm.. Not that I know of.  To test it, I went in and edited my "Join" button and changed the redirect to:  Response.Redirect("http://www.google.com")  and it worked fine.

Are you sure your button is accepting the correct arguments (I am using an ImageButton)?:   Protected Sub RegisterandJoin(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles btnJoin.Click

What are you using for writing the code?  Are you using VWD or VS or ???

CJ

 
New Post
7/14/2008 10:12 PM
 

CJ, thank you very much for all of your help. I determined the reason why the page was only refreshing. Im sad to say is was a very stupid mistake on my part. When I changed my buttons to ImageButtons, I never removed the "Text="    "" aparently this is enough to kill the whole thing.

As for the role question, I have not had the tie to play with that more, but I will let you know what I figure out.

Thanks again

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0PayPalSubscription.aspx -- UNsubscribe?PayPalSubscription.aspx -- UNsubscribe?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out