hi all,
i have converted one asp page to asp.net using migration tool.
after that when running that it gives 'object variable or with block variable not set'
error.
can u plz help solving this?
thank u in advance
<%@ Import namespace="CDB" %>
<%@ Page explicit="true"%>
<script language="
VB" runat="Server">
Dim sPassword As String
Dim sPrivilage As Object
Dim sLoginName As String
Dim trasnId as String
Dim a As CDB.Subsl
Dim b As Boolean
</script>
<%a = New CDB.Subsl
sLoginName = Request.Form.Item("uid")
sPassword = Request.Form.Item("pwd")
b = False
b = a.CheckLogin(sLoginName, sPassword)
If b = True Then
session("transID") = a.LoginID
session("sLoginName") = sLoginName
session("sPassword") = sPassword
session("sPrivilage") = a.Privilage
If UCase(session("sPrivilage")) = "ADMIN" Then
Response.Redirect(("Scheme_details.aspx"))
Else
Response.Redirect(("default.aspx?flag=false"))
End If
Else
Response.Redirect(("default.aspx?flag=false"))
End If
%>