AyrA

Compilation Error

Mar 20th, 2017
2,772
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.21 KB | None | 0 0
  1. Line 1: #ExternalChecksum("G:\inetpub\OilandGasInternational\html\emailpassword.aspx","{406ea660-64cf-4c82-b6f0-42d48172a799}","5F4DC89873F9792B3A87449835052EFD")
  2. Line 2: '------------------------------------------------------------------------------
  3. Line 3: ' <auto-generated>
  4. Line 4: ' This code was generated by a tool.
  5. Line 5: ' Runtime Version:2.0.50727.5485
  6. Line 6: '
  7. Line 7: ' Changes to this file may cause incorrect behavior and will be lost if
  8. Line 8: ' the code is regenerated.
  9. Line 9: ' </auto-generated>
  10. Line 10: '------------------------------------------------------------------------------
  11. Line 11:
  12. Line 12: Option Strict Off
  13. Line 13: Option Explicit On
  14. Line 14:
  15. Line 15: Imports Microsoft.VisualBasic
  16. Line 16: Imports System
  17. Line 17: Imports System.Collections
  18. Line 18: Imports System.Collections.Specialized
  19. Line 19: Imports System.Configuration
  20. Line 20: Imports System.Text
  21. Line 21: Imports System.Text.RegularExpressions
  22. Line 22: Imports System.Web
  23. Line 23: Imports System.Web.Caching
  24. Line 24: Imports System.Web.Profile
  25. Line 25: Imports System.Web.Security
  26. Line 26: Imports System.Web.SessionState
  27. Line 27: Imports System.Web.UI
  28. Line 28: Imports System.Web.UI.HtmlControls
  29. Line 29: Imports System.Web.UI.WebControls
  30. Line 30: Imports System.Web.UI.WebControls.WebParts
  31. Line 31:
  32. Line 32: Namespace ASP
  33. Line 33:
  34. Line 34: <System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()> _
  35. Line 35: Public Class html_emailpassword_aspx
  36. Line 36: Inherits Global.System.Web.UI.Page
  37. Line 37: Implements System.Web.SessionState.IRequiresSessionState, System.Web.IHttpHandler
  38. Line 38:
  39. Line 39:
  40. Line 40: #ExternalSource("G:\inetpub\OilandGasInternational\getConnection.asp",31)
  41. Line 41: Protected WithEvents login As Global.System.Web.UI.HtmlControls.HtmlForm
  42. Line 42:
  43. Line 43: #End ExternalSource
  44. Line 44:
  45. Line 45: Private Shared __initialized As Boolean
  46. Line 46:
  47. Line 47: Private Shared __stringResource As Object
  48. Line 48:
  49. Line 49: Private Shared __fileDependencies As Object
  50. Line 50:
  51. Line 51: <System.Diagnostics.DebuggerNonUserCodeAttribute()> _
  52. Line 52: Public Sub New()
  53. Line 53: MyBase.New
  54. Line 54: Dim dependencies() As String
  55. Line 55: CType(Me,Global.System.Web.UI.Page).AppRelativeVirtualPath = "~/html/emailpassword.aspx"
  56. Line 56: If (Global.ASP.html_emailpassword_aspx.__initialized = false) Then
  57. Line 57: Global.ASP.html_emailpassword_aspx.__stringResource = Me.ReadStringResource
  58. Line 58: dependencies = New String(1) {}
  59. Line 59: dependencies(0) = "~/html/emailpassword.aspx"
  60. Line 60: dependencies(1) = "~/getConnection.asp"
  61. Line 61: Global.ASP.html_emailpassword_aspx.__fileDependencies = Me.GetWrappedFileDependencies(dependencies)
  62. Line 62: Global.ASP.html_emailpassword_aspx.__initialized = true
  63. Line 63: End If
  64. Line 64: Me.Server.ScriptTimeout = 30000000
  65. Line 65: End Sub
  66. Line 66:
  67. Line 67: Protected ReadOnly Property Profile() As System.Web.Profile.DefaultProfile
  68. Line 68: Get
  69. Line 69: Return CType(Me.Context.Profile,System.Web.Profile.DefaultProfile)
  70. Line 70: End Get
  71. Line 71: End Property
  72. Line 72:
  73. Line 73: Protected Overrides ReadOnly Property SupportAutoEvents() As Boolean
  74. Line 74: Get
  75. Line 75: Return false
  76. Line 76: End Get
  77. Line 77: End Property
  78. Line 78:
  79. Line 79: Protected ReadOnly Property ApplicationInstance() As ASP.global_asax
  80. Line 80: Get
  81. Line 81: Return CType(Me.Context.ApplicationInstance,ASP.global_asax)
  82. Line 82: End Get
  83. Line 83: End Property
  84. Line 84:
  85. Line 85: <System.Diagnostics.DebuggerNonUserCodeAttribute()> _
  86. Line 86: Private Function __BuildControllogin() As Global.System.Web.UI.HtmlControls.HtmlForm
  87. Line 87: Dim __ctrl As Global.System.Web.UI.HtmlControls.HtmlForm
  88. Line 88:
  89. Line 89: #ExternalSource("G:\inetpub\OilandGasInternational\getConnection.asp",31)
  90. Line 90: __ctrl = New Global.System.Web.UI.HtmlControls.HtmlForm
  91. Line 91:
  92. Line 92: #End ExternalSource
  93. Line 93: Me.login = __ctrl
  94. Line 94:
  95. Line 95: #ExternalSource("G:\inetpub\OilandGasInternational\getConnection.asp",31)
  96. Line 96: __ctrl.ID = "login"
  97. Line 97:
  98. Line 98: #End ExternalSource
  99. Line 99:
  100. Line 100: #ExternalSource("G:\inetpub\OilandGasInternational\getConnection.asp",31)
  101. Line 101: __ctrl.Method = "post"
  102. Line 102:
  103. Line 103: #End ExternalSource
  104. Line 104: Dim __parser As System.Web.UI.IParserAccessor = CType(__ctrl,System.Web.UI.IParserAccessor)
  105. Line 105:
  106. Line 106: #ExternalSource("G:\inetpub\OilandGasInternational\getConnection.asp",31)
  107. Line 107: __parser.AddParsedSubObject(Me.CreateResourceBasedLiteralControl(102177, 1789, true))
  108. Line 108:
  109. Line 109: #End ExternalSource
  110. Line 110: Return __ctrl
  111. Line 111: End Function
  112. Line 112:
  113. Line 113: <System.Diagnostics.DebuggerNonUserCodeAttribute()> _
  114. Line 114: Private Sub __BuildControlTree(ByVal __ctrl As html_emailpassword_aspx)
  115. Line 115:
  116. Line 116: #ExternalSource("G:\inetpub\OilandGasInternational\getConnection.asp",1)
  117. Line 117: Me.InitializeCulture
  118. Line 118:
  119. Line 119: #End ExternalSource
  120. Line 120: Dim __ctrl1 As Global.System.Web.UI.HtmlControls.HtmlForm
  121. Line 121:
  122. Line 122: #ExternalSource("G:\inetpub\OilandGasInternational\getConnection.asp",1)
  123. Line 123: __ctrl1 = Me.__BuildControllogin
  124. Line 124:
  125. Line 125: #End ExternalSource
  126. Line 126: Dim __parser As System.Web.UI.IParserAccessor = CType(__ctrl,System.Web.UI.IParserAccessor)
  127. Line 127:
  128. Line 128: #ExternalSource("G:\inetpub\OilandGasInternational\getConnection.asp",1)
  129. Line 129: __parser.AddParsedSubObject(__ctrl1)
  130. Line 130:
  131. Line 131: #End ExternalSource
  132. Line 132: __ctrl.SetRenderMethodDelegate(AddressOf Me.__Render__control1)
  133. Line 133: End Sub
  134. Line 134:
  135. Line 135: Private Sub __Render__control1(ByVal __w As System.Web.UI.HtmlTextWriter, ByVal parameterContainer As System.Web.UI.Control)
  136. Line 136:
  137. Line 137: #ExternalSource("G:\inetpub\OilandGasInternational\getConnection.asp",1)
  138. Line 138:
  139. set objDoc = Server.Createobject("Msxml2.DOMDocument.4.0")
  140. objDoc.load(Request.ServerVariables("APPL_PHYSICAL_PATH") & "web.config")
  141.  
  142.  
  143.  
  144. set curNode = objDoc.selectSingleNode("/configuration/appSettings/add[@key='DSN']")
  145.  
  146. dsn = curNode.getAttribute("value")
  147.  
  148. set curNode = objDoc.selectSingleNode("/configuration/appSettings/add[@key='password']")
  149.  
  150. password = curNode.getAttribute("value")
  151.  
  152. cnString = dsn
  153.  
  154.  
  155.  
  156. Line 139:
  157. Line 140: #End ExternalSource
  158. Line 141:
  159. Line 142: #ExternalSource("G:\inetpub\OilandGasInternational\html\emailpassword.aspx",2)
  160. Line 143: 'on error resume next
  161. Line 144: set oConn = server.CreateObject("ADODB.connection")
  162. Line 145: set rs = server.CreateObject("ADODB.Recordset")
  163. Line 146: oConn.Open cnString
  164. Line 147: rs.Open "select * from OGIUser where email = '" & Request.querystring("email") & "'",oConn
  165. Line 148: 'Response.Write "select * from Member where email = '" & Request.querystring("email") & "'"
  166. Line 149: if not rs.EOF then
  167. Line 150:
  168. Line 151: Dim objCDO
  169. Line 152: Set objCDO = Server.CreateObject("CDONTS.NewMail")
  170. Line 153:
  171. Line 154: objCDO.To = rs("firstname") & " " & rs("lastname") & "<" & rs("email") & ">"
  172. Line 155: objCDO.From = "Oil and Gas International <[email protected]>"
  173. Line 156:
  174. Line 157: objCDO.Subject = "Here is your Oil and Gas International Info."
  175. Line 158: objCDO.Body = "Here is your Oil and Gas International Password: " & rs("password")
  176. Line 159: objCDO.Send
  177. Line 160:
  178. Line 161: Else
  179. Line 162: Response.Write "Your email address could not be found."
  180. Line 163: End If
  181. Line 164:
  182. Line 165:
  183. Line 166: #End ExternalSource
  184. Line 167: Me.WriteUTF8ResourceString(__w, 103966, 666, true)
  185. Line 168: parameterContainer.Controls(0).RenderControl(__w)
  186. Line 169: Me.WriteUTF8ResourceString(__w, 104632, 1423, true)
  187. Line 170: End Sub
  188. Line 171:
  189. Line 172: <System.Diagnostics.DebuggerNonUserCodeAttribute()> _
  190. Line 173: Protected Overrides Sub FrameworkInitialize()
  191. Line 174: MyBase.FrameworkInitialize
  192. Line 175: Me.SetStringResourcePointer(Global.ASP.html_emailpassword_aspx.__stringResource, 0)
  193. Line 176: Me.__BuildControlTree(Me)
  194. Line 177: Me.AddWrappedFileDependencies(Global.ASP.html_emailpassword_aspx.__fileDependencies)
  195. Line 178: Me.Request.ValidateInput
  196. Line 179: End Sub
  197. Line 180:
  198. Line 181: <System.Diagnostics.DebuggerNonUserCodeAttribute()> _
  199. Line 182: Public Overrides Function GetTypeHashCode() As Integer
  200. Line 183: Return -511707810
  201. Line 184: End Function
  202. Line 185:
  203. Line 186: <System.Diagnostics.DebuggerNonUserCodeAttribute()> _
  204. Line 187: Public Overrides Sub ProcessRequest(ByVal context As System.Web.HttpContext)
  205. Line 188: MyBase.ProcessRequest(context)
  206. Line 189: End Sub
  207. Line 190: End Class
  208. Line 191: End Namespace
  209. Line 192:
Advertisement
Add Comment
Please, Sign In to add comment