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

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPIProblem accessing form valuesProblem accessing form values
Previous
 
Next
New Post
12/5/2006 10:01 AM
 

I've been trying to figure this out all day and it's driving me crazy. I made a new module in DotNetNuke which implements the ClientApi. I've followed all the steps in the manual and looked at the examples that are available.

It works when I pass the value of one textbox (as strArgument) to the server. But when I try to pass all the values in a form to the server (by adding "Form" as strPostChildrenOf) I can't seem to access the values of the controls in my code. I'm not getting an error but every time I try to access the value of a textbox (by using Request(Me.nameofcontrol.ClientID) I get an empty string instead of the value.

Does anyone have any idea what might be the problem? I've been studying the manual and the examples for ages and I can't seem to find anything that I'm doing wrong.

Thanks in advance!

Roanld

 
New Post
12/6/2006 12:11 PM
 

Have you looked at the ClientAPI Callback With Elements Sample?

If you add code similar to what is found in that sample to yours you can interogate the values posted.  Something like

For Each sKey As String In Request.Form.AllKeys
 sb.Append(sKey & ":" & Request.Form(sKey) & vbCrLf)
Next


 
New Post
12/7/2006 10:16 AM
 

Thanks for your answer.

I've studied both the HelloAjax and the Callback with elements examples and my code is similar to those. I'm not getting any errors. The 'succes' function is always started but I just can't access the values from the textbox controls in the form. I can access the 'eventArgument' though that's sent along with the request.

I've tried using your code from the previous post but the only values I get back are values for '__DNNCAPISCI' and '__DNNCAPISCP'.

Have you got any idea what I might be doing wrong? Would it cause a problem if the controls I'm trying to access are nested in a table or panel?

Ronald

 
New Post
12/7/2006 12:37 PM
 
Any chance you can post a url for me to look at?

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPIProblem accessing form valuesProblem accessing form values


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