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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Passing DNN Creditials to another applicationPassing DNN Creditials to another application
Previous
 
Next
New Post
4/10/2006 6:22 PM
 

We use DNN v3.2.2 and a in the process of developing an application using .NET v2.0.  In order to expedite the rollout, we would like to present the application using an iFrame within DNN.  However, we need to know the userid in order to furnish store the results appropriately.  Does anyone have any ideas on how to achive this?

 

Thanks

 
New Post
4/11/2006 9:31 AM
 

For your app inside the iframe:

<HTML>
<BODY>
      You are <%=Request.ServerVariables("LOGON_USER")%>
</BODY>
</HTML>


try it out, maybe it will work for you.


    - Doug Vogel     

 
New Post
4/11/2006 10:10 AM
 

Actually, here is some better code to try.  I found it in some of my older files.  Save this to something like "testit.aspx" and then display "testit.aspx" inside an iframe.  You should be able to pick out something that might help.

<%@ Page Language="VB" %>
<script runat="server">

    ' Insert page code here
    dim cap1, cap2 as string
    dim tprop as string
    dim thing as string
    dim tempvalue as string
    Sub Page_Load (sender As Object, e As EventArgs)
    'Insert some cookie creation stuff...
    Dim cookie As HTTPCookie = New HttpCookie("Info_to_be_Passed")
    Dim dt As DateTime = DateTime.Now()
    Dim ts As New TimeSpan(0,0,5,0)
    cookie.Value = "myDNNCookie"
    cookie.Expires = dt.Add(ts)
    Response.Cookies.Add(cookie)

    cap1="Server Variable"
    cap2="Value"

    '<table bordercolor="teal" cellspacing="0" cellpadding="2" bgcolor="#ffffc0" border="2">
    tprop="<table cellpadding=" & chr(34) & "4" & chr(34) & "bordercolor=" & chr(34) & "teal" & chr(34) & "bgcolor=#ffffc0 border=" & chr(34) & "2" & chr(34) & ">"
    response.write(tprop)
    response.write("<tbody>")
    response.write("<tr><td><b>" & cap1 & "</b></td><td><b>" & cap2 & "</b></td></tr>")
        'Send buffered output immediately.
        response.flush
        for each thing in request.servervariables
            tempvalue=request.servervariables(thing)
            response.write("<tr><td>" & thing & "</td><td>" & tempvalue & "</td></tr>")
        next
    response.write("</tbody>")
    response.write("</table>")
        response.flush
    End Sub

</script>
<html>
<head>
    <title>Servervariables</title>
</head>
<body vlink="#666666" alink="#666666" link="#666666">
    <form runat="server">
        <p>
        </p>
    </form>
</body>
</html>


    - Doug Vogel     

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Passing DNN Creditials to another applicationPassing DNN Creditials to another application


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