Welcome to the Community Exchange

Welcome to the Community Exchange, a place where community members can exchange questions and answers related to DotNetNuke. If you would like more info about the Community Exchange, please visit this page in our Wiki. 

DNNAlert from codebehind

HI guys,

What I'm trying to achieve is have a nmodal popup window show when my code returns false from a function from my codebehind. 

I've tried to read several forums but didn't get a clear solution.


Thanks

Dennis

asked 8/18/2012
demariano3
demariano
  • The answer to this depends on what you are doing with the window. Are you trying to force a confirmation (like a delete click, this only proceeds properly if the user clicks 'yes') or are you simply informing the user of something (and don't care if they accept or not)? - Chris Paterra 9/4/2012

2 Answers

Thanks Andrew I did try that without success. Maybe I am putting that code line in the wrong place?
answered 5 months ago Darryl Berg 3
Darryl Berg

I coded a simple popup as follows:

<a onclick="$.dnn {text:'text',okText:'OK'})">Link text</a>

This works fine when logged in to DNN, but not as a "guest"?

Any suggestions? 


answered 9/4/2012 Darryl Berg 3
Darryl Berg
edited 9/4/2012
Darryl Berg3
Darryl Berg
  • You need to load the DNN Plugins script. It's already loaded when logged in(as you likely have some kind of edit permissions so some other module has loaded the functionality)

    In codebehind request the registration:

    DotNetNuke.Framework.jQuery.RequestDnnPluginsRegistration() - Andrew Walker 5 months ago

Your Answer

In order to provide an answer to this question, you must Login

I am flagging this question because...




10 inform moderator flags remaining

I am deleting this question because...




I am flagging this answer because...




10 inform moderator flags remaining

Flagging a Post

You have already flagged this post. Clicking "Remove Flag" below will remove your flag, thus reducing the count by one as well.

I am deleting this answer because...




DotNetNuke Corporation

DotNetNuke (DNN) provides a suite of solutions that make designing, building and managing feature-rich sites and communities fast, easy and cost-effective. The DotNetNuke Platform CMS is the foundation for more than one million websites worldwide. DNN Social, our newest solution, enables businesses to create immersive, interactive communities. Thousands of organizations like True Value Hardware, Bose, Cornell University, Glacier Water, Dannon, Delphi, USAA, NASCAR, Northern Health and the City of Denver have leveraged DNN to deploy highly engaging business- critical websites. Our rapid growth in product sales and deployments resulted in DotNetNuke Corp. being named one of the fastest growing private companies in America by Inc. Magazine in 2011 and 2012.