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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...how to get server variables in DNN page?how to get server variables in DNN page?
Previous
 
Next
New Post
4/22/2010 10:17 AM
 

Any help is appreciated, I'm trying to output the server variables from the browser in a DNN page, from a text/HTML module, and it will not put put anything, and I cannot see what I'm doing wrong.

This is the script:

<div align="left">
<table border="0" cellpadding="0" cellspacing="0" width="750">
<tr>
<td valign="top" align="left" width="150"><font face="Arial" size="2" color="#FF0000"><b>Variable Name</b></font></td>
<td valign="top" align="left" width="600"><font face="Arial" size="2"><b>Value</font></b></td>
</tr>
<%
for each name in request.servervariables
%>

<tr>
<td valign="top" align="left" width="150">
<font face="Arial" size="1" color="#FF0000">
<%= name %></font></td>
<td valign="top" align="left" width="600">
<font face="Arial" size="1"><%= request.servervariables(name) %></font></td>
</tr>

<%
Next
%>

</table>
</div>

 
New Post
4/22/2010 11:23 AM
 

The HTML module only accepts HTML content, not any sort of server-side script (with the exception of specific tokens, if you've turned that feature on).

Hope that helps,


Brian Dukes
Engage Software
St. Louis, MO
866-907-4002
DNN partner specializing in custom, enterprise DNN development.
 
New Post
4/22/2010 12:12 PM
 
is there any way to output these variables in a dnn page? thanks again
 
New Post
4/22/2010 2:11 PM
 

There is not a way that you can see those from within the website itself, you would need to create your own module to be able to see those values.

If you're using DNN 5.2 or higher, they're made it easy to create your own module which consists of just one control file (which should be all that you need) from within the website.  In the Module Definitions tab under the Host menu, choose Create New Module from the action menu (probably a drop down in the top left of the module, or a link at the bottom).  You can then say that you want to create a new module, give it a name, and it'll let you view it and, on a local website, edit it directly through the site.

Otherwise you will need to create a control and upload it to the site as a module.

Hope that helps,


Brian Dukes
Engage Software
St. Louis, MO
866-907-4002
DNN partner specializing in custom, enterprise DNN development.
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...how to get server variables in DNN page?how to get server variables in DNN page?


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