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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Another clasic asp  page open in side the dotnetnuke skin Another clasic asp page open in side the dotnetnuke skin
Previous
 
Next
New Post
5/1/2009 6:49 AM
 

plz tell me i want some another clasic  asp application in side the dotnet nuke skin . i think iframe same as HTML parent page is not cahange but inner page can be chages. this is possible in dotnetnuke skin links  is not but inside the my clasic ASP application run.

 

 

 

 


Ashish Tiwari
 
New Post
5/1/2009 10:49 AM
 

one way of doing this could be with httpwebrequest

[code]

            Dim uri1 As New Uri("http://localhost/WhereMyoldASPsiteisLogin")
            Dim uri2 As New Uri("http://localhost/WhereMyoldASPsiteisPagesAre")

            Dim data1 As String = "username=" + My.Settings.USER.ToString + "&password=" + My.Settings.LoginPWD.ToString

            Try

       

                If uri2.Scheme = Uri.UriSchemeHttp Then
                    Dim cookieContainer1 As New CookieContainer

                    Dim request1 As HttpWebRequest = HttpWebRequest.Create(uri1)
                    request1.Accept = "*/*"
                    request1.KeepAlive = True
                    request1.CookieContainer = cookieContainer1
                    request1.UserAgent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"
                    request1.Method = "GET"

                    Dim oResponse1 As HttpWebResponse = request1.GetResponse()

                    If (Not oResponse1.Cookies Is Nothing Or oResponse1.Cookies.Count > 0) Then

                        Dim cookie2 As Cookie
                        For Each cookie2 In oResponse1.Cookies

                            Dim kalle4 As Integer = 0
                            cookieContainer2.Add(cookie2)
                        Next
                    End If

                    Dim request As HttpWebRequest = HttpWebRequest.Create(uri2)

                    request.CookieContainer = cookieContainer2

                    request.Method = WebRequestMethods.Http.Post
                    request.ContentLength = data1.Length
                    request.ContentType = "application/x-www-form-urlencoded"

                    request.ProtocolVersion = HttpVersion.Version10

                    Dim writer As New StreamWriter(request.GetRequestStream)

                    writer.Write(data1)

                    writer.Close()

                    Dim oResponse As HttpWebResponse = request.GetResponse()
                    Dim reader As New StreamReader(oResponse.GetResponseStream())
                    Dim tmp As String = reader.ReadToEnd()
                    oResponse.Close()

[/code]

/Johan Affärssystem

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Another clasic asp  page open in side the dotnetnuke skin Another clasic asp page open in side the dotnetnuke skin


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