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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesUsing Popup To Show A CustomPage...Using Popup To Show A CustomPage...
Previous
 
Next
New Post
4/24/2012 5:52 AM
 

Hi Ben,

thank you very much for helping me in this case!

Server Side:
I have got no space between the javascript and the ":".
No Ive seen your comment and replaced the ";" with the ":" (pretty nice comments btw).
Now iam getting the following string in the variable strRedirectURL before adding the scriptblock:

dnnModal.show('http://localhost/dnn_6x/Stellplätze/Stellplätze/tabid/110/ctl/Error/mid/658/Default.aspx?popUp=true',/*showReturn*/false,400,500,true,'')

normally this should be ok I think. Do you have any suggestions?

Client Side:
This is working now but only with the "; return false;" at the end.

Another question:
Do you know a way to prevent DNN to call a page postback after I close the popup?
Iam not edit any Data in the Popup its just for showing some message. So I dont need a complete page postback. This is bad in my situation cause it will destroy to current viewstate of the controls.
Do you know some information about this?

Another one:
Why it is soooo damn hard to find any information about DNN methods in the whole internet? I dont think Iam to stupid to use google so... I cant find any documentation or "How to"'s Its just try and error the whole time. This is rly annoying. Do you know some wiki concerning DotNetNuke or something? :)

Thank you again for your big help man.
best regards, noone

 
New Post
4/24/2012 8:09 AM
 

Marc,

Not a problem! I was glad to help. :-)

I don’t know why your Server-Side code is not functioning. I created a sample using the steps I supplied and on my instance it worked fine. The only way I was able to reproduce the error you described was if the “javascript” portion of the URL was not removed. I am glad that at least you got it working on the Client-Side.

There is unfortunately absolutely no way to prevent the PostBack after closing a PopUp. It’s the behavior of the DNN Core PopUp method. Nature of the beast, so-to-speak. You have a few options if you want your original page to reload data it had at the time of PopUp:

1)      If working w/ single record, trying passing the RecordID to PopUp and back using QueryStrings. Of course you have to reload the record on the original page again on PageLoad.
2)      You can try storing the information temporarily in Cache.
3)      You can try storing the information in Session variables (although I do not recommend this option if there is a chance your module will be used in a Server Farm environment)

It was hard for me too when I first started developing for DNN. There isn’t a good “one stop shop” location to find reference information. But, the Resources Menu on the DotNetNuke website is useful, as is this forum. I found it helpful at times to also have a copy of the Community Source code, so you can look up how certain things are done, or if you need to understand how a method functions.  There is a DNN6 API Documentation website at (http://dotnetnukeru.com/Dnn6Docs/api/...), but it’s only helpful if you know what you are looking for, more of a reference guide than anything else.

HTH!

-Ben


Ben Santiago, MCP Certified & A+ Certified
Programmer Analyst
(SQL, FoxPro, VB, VB.Net, Java, HTML, ASP, JSP, VBS, Cognos ReportNet)
 
New Post
4/24/2012 10:11 AM
 

Hi Ben,

I think I found something interresting:
In DNN6 the core is using telerik's ajax script manager instead of the simple asp one (I guess, please correct me if Iam wrong).

In this case maybe I have to add the script to the telerik scriptmanager?
Look at the following post he is replacing the asp scriptmanager with the "AJAX scriptmanager" if he is using ajax. Maybe this could be my problem? (Iam currently not able to try this out but I will write here if I found some free time).

http://stackoverflow.com/questions/1905716/clientscript-registerclientscriptblock

best regards, marc

 
New Post
4/24/2012 11:01 AM
 

Marc,

What you understand there is partially correct. DNN uses the Telerik ScriptManager (if memory serves) only if you have your ControlPage set as "SupportsPartialRendering=True". Otherwise, the default ScriptManager is loaded. In most cases, running ClientScript works perfectly fine. I myself only ever had to worry about running ScriptManager if I was using AJAX on my ControlPage, because the Asynchronous PostBack ignores changes made using ClientScript since it's not AJAX compatible. I don't know for sure if this change would do anything for you, but I am gonna take a stab in the dark and say it won't make a difference. I could be wrong...but like I said, in my experience ClientScript is what I normally always use, unless the code that is executing the script registration is running from an Asynchronous PostBack because of AJAX.


Ben Santiago, MCP Certified & A+ Certified
Programmer Analyst
(SQL, FoxPro, VB, VB.Net, Java, HTML, ASP, JSP, VBS, Cognos ReportNet)
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesUsing Popup To Show A CustomPage...Using Popup To Show A CustomPage...


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