ASP TO ASP.NET Conversion


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 6 of 6

Thread: ASP TO ASP.NET Conversion

  1. #1
    Join Date
    Dec 2007
    Posts
    2

    ASP TO ASP.NET Conversion

    Hello All,

    I have this one rek to convert 2 classic asp pages to asp.net 2.0.

    Dont know hoe to start. Here is the code..
    <CODE>
    <html>
    <head>
    <script src="http://pine.tagteam.com/ttTagteamGatewayWS/TagTeamGateway.asmx">
    </script>
    </head>
    <body>
    <%
    Dim Username
    Dim oAUO
    Dim userTicket
    Dim CompanyToken


    'Get the username.
    Set oAUO = Server.CreateObject("Membership.UserObjects")
    Username = oAUO.GetValue("username")
    Set oAUO = Nothing

    'TagTeam Assigned Company (Wyeth) Token
    'Username = "shernej"
    CompanyToken = "B273DFA6-5968-475C-BADB-D946ADD7A307"

    'Get TagTeam Authorization code by using CompanyToken and UserName


    Dim webServiceUrl, httpReq, node, myXmlDoc

    webServiceUrl = "http://pine.tagteam.com//ttTagteamGatewayWS/TagTeamGateway.asmx/AuthenticateUser?companyToken=" & CompanyToken & "&userName=" & Username

    Set httpReq = Server.CreateObject("MSXML2.ServerXMLHTTP")

    httpReq.Open "GET", webServiceUrl, False
    httpReq.Send

    Set myXmlDoc = Server.CreateObject("MSXML.DOMDocument")
    myXmlDoc.load(httpReq.responseBody)

    Set httpReq = Nothing

    Set node = myXmlDoc.documentElement

    If Not node Is Nothing Then
    userTicket = node.text
    End If

    Set myXmlDoc = Nothing
    'Response.Write "Wyeth Company Token = " & CompanyToken & "<br><br>"
    'Response.Write "UserName = " & username & "<br><br>"
    'Response.Write "TagTeam User Ticket = " & userTicket

    Response.Redirect("http://www.tagteam.com/ttGatewayLogin/TagteamGatewaylogin.aspx?userTicket=" & userTicket)

    %>


    <!--<form action="http://www.tagteam.com/TagTeamGatewayLogin.aspx?userTicket=<% UserTicket %>" method="post" id="TagTeamF" name="TagTeamF">



    </form>
    <script language="javascript">
    param = document.TagTeamF.submit();
    </script>-->


    </CODE>


    Any help would be much appreciated....

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  3. #3
    Join Date
    Dec 2007
    Posts
    2

    Thanks

    Thanks Phil,

    That was quick and an obvious answer. I have converted the webiste using the ASP To ASP.NET converter and then reopened the website in .NET 2.0.

    Now the issues.
    It is looking for Membership.Objects library and gives the following exception

    System.Web.HttpException was unhandled by user code
    ErrorCode=-2147467259
    Message="Could not create an object of type 'Membership.UserObjects'."


    Now should I be rewriting the membership function or just run the above application on the environment which has the said dll or components registered.

    Thansk again for your prompt help....

  4. #4
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    I am not aware of a .NET equivalent to the Site Server Membership object. It's probably best to run the application on a server with Site Server installed rather than try to rewrite Site Server in ASP.NET.
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  5. #5
    Join Date
    Dec 2007
    Posts
    3

    asp and asp.net

    hello friends i am new in this forum and would like to know about the conversion
    of asp to asp.net can u plz provide me a link related to that

  6. #6
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    Hello, Vijay: Please see the link I posted earlier in this thread.
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

Similar Threads

  1. ASP to ASP.Net conversion....
    By aspismyname in forum ASP.NET
    Replies: 2
    Last Post: 11-07-2007, 08:13 AM
  2. Replies: 2
    Last Post: 08-01-2005, 04:12 PM
  3. Useful ASP technique to ASP.NET?
    By Kikketer in forum ASP.NET
    Replies: 0
    Last Post: 05-04-2005, 11:21 AM
  4. ASP to ASP.net
    By Eric in forum ASP.NET
    Replies: 0
    Last Post: 05-14-2002, 07:29 AM
  5. Replies: 2
    Last Post: 02-21-2002, 06:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center