-
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....
-
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!
-
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....
-
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!
-
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
-
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
-
By aspismyname in forum ASP.NET
Replies: 2
Last Post: 11-07-2007, 07:13 AM
-
By sunilbenjamin in forum ASP.NET
Replies: 2
Last Post: 08-01-2005, 03:12 PM
-
By Kikketer in forum ASP.NET
Replies: 0
Last Post: 05-04-2005, 10:21 AM
-
Replies: 0
Last Post: 05-14-2002, 06:29 AM
-
By Brian Pryor in forum ASP.NET
Replies: 2
Last Post: 02-21-2002, 05: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
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks