HomeHomeDevelopment and...Development and...DotNetNuke Open...DotNetNuke Open...How to write to current page from APIHow to write to current page from API
Previous
 
Next
New Post
3/1/2012 1:18 AM
 

Hi,

I am creating some custom code for a payment processor and need to do a response.write("javascript-here") to the current page for the user in order to make appear a popup for the user to enter some credentials directly with his bank.

However, response.write does not work since the code is in a dll and not for an aspx page.

How do we get to output something to the current page using the dotnetnuke core api?

 
New Post
3/1/2012 2:41 AM
 

There are definitely other ways to do this, but you can find a quick example in my DNNSimpleArticle module's ArticleView control (and code behind)

Basically I inject a literal control into a placeholder control. you could do the same, putting the code you want on the page in that literal

http://dnnsimplearticle.codeplex.com/...

plArticleTitle.Controls.Add(new LiteralControl(curArticle.Title));
plArticleBody.Controls.Add(new LiteralControl(Server.HtmlDecode(curArticle.Body)));


Chris Hammond
dnnCHAT.com a chat room for DotNetNuke discussions
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
 
New Post
3/1/2012 2:12 PM
 
Thanks Chris,

But my code is not in a codebehind, it is a provider, so I get no direct access to the page controls. What I would need is a way to get the page where the user is currently from the api. Maybe it is impossible also..
 
Previous
 
Next
HomeHomeDevelopment and...Development and...DotNetNuke Open...DotNetNuke Open...How to write to current page from APIHow to write to current page from API


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

Attend A Webinar
Start  Professional Edition Trial
Have Someone Contact Me

Like Us on Facebook Join our Network on LinkedIn Follow DNN Corporate on Twitter Follow DNN on Twitter

Advertisers

Sponsors

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.