473,386 Members | 1,795 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Callback solution for dynamicly loaded DotNetNuke controls

Staying with in the DotNetNuke 3.2 framework I'm attempting to
find the best, simplest solution for making callbacks/RPCs/Ajax
requests.

The biggest obsticles seem to be staying within the DotNetNuke
framework recommendations:

***
1. Default.aspx - One page, one entry point
Staying with this is great because it handles security for
me and all the DotNetNukish stuff.
***

2. Stay away from custom HTTPHandlers
Correct me if I'm wrong; to conform with DNNs "module
installation packages" the web.config file can't be altered by DNN's
"Upload & Install" method of distributing packages. I have looked in
solutions such as JSON's Jayrock and it requires me to stick an
HTTPHandler in the config file to operate. I'm not even sure if many
hosting environments will allow this!

3. Google GWT
So sleek, so simple, so fast, so not IIS.

4. Telerik Ajax suite
Keeping in mind that there are WebControls loaded
dynamically. Telerik's solution for this is to place them into a panel
so it has a control that will produce HTML (I assume so it can get an
ID from that control). I would like the controls I'm making to be
somewhat self contained & able to be reused anywhere under the
umbrella. I don't want to "need" to place them into a panel every
time.

5. Use "DotNetNuke Client API Client Callback" in the WebUtility.dll
Testing with this method; the use of dynamically loaded
control (LoadControl(cb_checkBox)) seems to mess DNN's method of
performing the callback. The GetCallbackEventReference(Page, "blah",
"blah", "blah", ...) can't give me a Control.ID because the control
does not yet have one. The little JavaScript string is passes back
then lacks the right stuff to make the call from the client later.
Even if it had the right stuff... The control would not exist in the
page control hierarchy untill after DNN goes search for it with the
FindControl recursive function it uses to handle the callback request
coming in.

6. Not callback, not RPC, not Real-Time
Looked at the ClientAPI DNN comes with to pass the stuff
back in hidden forms on the pages themselves. This would work for me
if the user posted back to the same page every time; but it's possible
they will not sometimes. Then things that put in that "hidden forms
bucket" are lost. I considered making the Default.ascx page being
responsible for this that way that form would always be processed;
that just would not conform to the DNN standards.

In summary; I'm just looking for a balance of what would be best for
knowing what the user is clicking & typing making that information
avaliable to all modules in my DNN solution(s). I like all the DNNish
stuff that DNN does; but it just seems to be a pain when trying to
implement something like this.

Jun 1 '07 #1
3 2622
<su********@gmail.comwrote in message
news:11**********************@d30g2000prg.googlegr oups.com...
The biggest obsticles seem to be staying within the DotNetNuke
framework recommendations:
You're absolutely right! DNN *only* works so long as you *never* want to
move away (even slightly ) from the defaults...
In summary; I'm just looking for a balance of what would be best for
knowing what the user is clicking & typing making that information
avaliable to all modules in my DNN solution(s). I like all the DNNish
stuff that DNN does; but it just seems to be a pain when trying to
implement something like this.
Forget it if you want to do any serious development...
--
http://www.markrae.net

Jun 2 '07 #2
superbee,
you are making a post about an ASP.NET product that is written in VB.NET -
to the C# language newsgroup.
Try the asp.net newsgroup, which is a much more appropriate venue.
Peter
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"su********@gmail.com" wrote:
Staying with in the DotNetNuke 3.2 framework I'm attempting to
find the best, simplest solution for making callbacks/RPCs/Ajax
requests.

The biggest obsticles seem to be staying within the DotNetNuke
framework recommendations:

***
1. Default.aspx - One page, one entry point
Staying with this is great because it handles security for
me and all the DotNetNukish stuff.
***

2. Stay away from custom HTTPHandlers
Correct me if I'm wrong; to conform with DNNs "module
installation packages" the web.config file can't be altered by DNN's
"Upload & Install" method of distributing packages. I have looked in
solutions such as JSON's Jayrock and it requires me to stick an
HTTPHandler in the config file to operate. I'm not even sure if many
hosting environments will allow this!

3. Google GWT
So sleek, so simple, so fast, so not IIS.

4. Telerik Ajax suite
Keeping in mind that there are WebControls loaded
dynamically. Telerik's solution for this is to place them into a panel
so it has a control that will produce HTML (I assume so it can get an
ID from that control). I would like the controls I'm making to be
somewhat self contained & able to be reused anywhere under the
umbrella. I don't want to "need" to place them into a panel every
time.

5. Use "DotNetNuke Client API Client Callback" in the WebUtility.dll
Testing with this method; the use of dynamically loaded
control (LoadControl(cb_checkBox)) seems to mess DNN's method of
performing the callback. The GetCallbackEventReference(Page, "blah",
"blah", "blah", ...) can't give me a Control.ID because the control
does not yet have one. The little JavaScript string is passes back
then lacks the right stuff to make the call from the client later.
Even if it had the right stuff... The control would not exist in the
page control hierarchy untill after DNN goes search for it with the
FindControl recursive function it uses to handle the callback request
coming in.

6. Not callback, not RPC, not Real-Time
Looked at the ClientAPI DNN comes with to pass the stuff
back in hidden forms on the pages themselves. This would work for me
if the user posted back to the same page every time; but it's possible
they will not sometimes. Then things that put in that "hidden forms
bucket" are lost. I considered making the Default.ascx page being
responsible for this that way that form would always be processed;
that just would not conform to the DNN standards.

In summary; I'm just looking for a balance of what would be best for
knowing what the user is clicking & typing making that information
avaliable to all modules in my DNN solution(s). I like all the DNNish
stuff that DNN does; but it just seems to be a pain when trying to
implement something like this.

Jun 2 '07 #3
Wrong group for this posting; my fault. I was in the mindset of C# at
the time because I was writing my modules in that.

Jun 4 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Henke | last post by:
Hi I have a aspx-page with a panel-control. On this panel control I add user controls dynamicly with LoadControl and panel.Controls.Add(myControl). On some of the dynamicly added user controls I...
0
by: David Rose | last post by:
I have an existing asp.net web application which contains several user controls. Some of these user controls contain other user controls (generic controls) which are located in a subdirectory. Now...
3
by: Nahrin | last post by:
I implimented ASP.NET 2.0 Client callback script (ICallbackEventHandler) to get the result back from server without postback the page. Problem is when seesion expires or authentication times out,...
1
by: Timbo | last post by:
Hi all, This is my first message here so i'll try and include all the information that will help you help me out, if possible. Basically I am using C# in ASP.NET 2.0 and have a Repeater...
7
by: Varangian | last post by:
Hi all, I have a question, what does the function ClientScriptManager.RegisterForEventValidation really does? Does it means securing your client side code? more security? The question is how...
1
by: ThunderMusic | last post by:
Hi, In a page, I dynamicly generate a table in which there are ImageButtons... When the table is first loaded, it's fine, but as soon as the table is modified, the events are not fired until the...
3
by: ThunderMusic | last post by:
Hi, I want to develop an ASP 2.0 Web control that would be just like an update panel (to use with a tab control), so when the user makes a request, the content of the page is loaded dynamicly...
4
by: =?Utf-8?B?U3JpZGhhcg==?= | last post by:
Hi, Is it possible to Hide/Show controls during a callback? I have a radio button list that does the callback. When it does the callback I need to refresh the grid to reflect the selected value...
5
by: aladinsane | last post by:
Hi, I trying to build a table using the TableControl in order manage som image files. What I would like to do is to load an image combined with a linkbutton into each cell and to delete the image...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.