473,411 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

recover .vb source code in ASP .NET

Hi,

I'm currently updating a website written with ASP.NET. The original
programmer is overseas, there is no documentation, and files are all
over the place.

Here is a code snippet from one of the .vb file used by the
application (the entire code of the file is at the end of the post):

If EmissionsWebBLL.Security.ValidateLogin(txtUserName .Text,
txtPassword.Text, RptYear) = True Then

I can't find where that EmissionsWebBll class comes from. When I try
to Go To Definition, nothing happens. I've looked for an
EmissionsWebBll.vb but can't find it. I fear the source code might be
missing but as I'm not very familiar with ASP.NET, could somebody tell
me whether I should actually be looking for this file or whether I'm
getting confused? I have file called EmissionsWebBll.dll, is there a
way to recover the vb source code from that file?
Thanks for the help

Maelle

Public Class Secure
Inherits System.Web.UI.Page
Protected WithEvents txtUserName As
System.Web.UI.WebControls.TextBox
Protected WithEvents btnSubmit As System.Web.UI.WebControls.Button
Protected WithEvents btnNewRptYear As
System.Web.UI.WebControls.Button
Protected WithEvents vlUserName As
System.Web.UI.WebControls.RequiredFieldValidator
Protected WithEvents vlPassword As
System.Web.UI.WebControls.RequiredFieldValidator
Protected WithEvents lblStatus As System.Web.UI.WebControls.Label
Protected WithEvents txtPassword As
System.Web.UI.WebControls.TextBox

#Region " Web Form Designer Generated Code "

'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub
InitializeComponent()

End Sub

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form
Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub

#End Region

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
If Not Page.IsPostBack Then

End If
End Sub
Private Sub btnSubmit_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles btnSubmit.Click
Dim RptYear As String = CType(Request.Form("eYear"), Integer)
- 1 & "/" & Request.Form("eYear")
Dim LoginID As String

'Check to see whether username and password exists
If EmissionsWebBLL.Security.ValidateLogin(txtUserName .Text,
txtPassword.Text, RptYear) = True Then
'First check to see whether its the users first login
If EmissionsWebBLL.Security.ValidateFirstLogin(txtUse rName.Text,
txtPassword.Text) = True Then
'User has changed password previously, now check how
long ago password was changed
If EmissionsWebBLL.Security.ValidatePasswordHistory(t xtUserName.Text,
txtPassword.Text, RptYear) = False Then
'Password needs changing
Response.Redirect("PasswordChange.aspx?Username="
& txtUserName.Text)
Else
'Everything aok, proceed to asp page with login in
querystring
LoginID =
EmissionsWebBLL.Security.GetLoginID(txtUserName.Te xt,
txtPassword.Text, RptYear)
Response.Redirect("getUserDetails.asp?LoginID=" &
LoginID)
End If

Else
'User needs to activiate a new password, redirect to
FirstLogin page
Response.Redirect("FirstLogin.aspx?Username=" &
txtUserName.Text)
End If
Else
lblStatus.Text = "Incorrect username or password, try
again."
End If
End Sub

Private Sub btnNewRptYear_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles btnNewRptYear.Click
Dim RptYear As String = CType(Request.Form("eYear"), Integer)
- 1 & "/" & Request.Form("eYear")
'Check to see whether username and password exists
If EmissionsWebBLL.Security.ValidateLogin(txtUserName .Text,
txtPassword.Text, RptYear) = True Then
Response.Redirect("NewRPTYearSetup.asp?Alias=" &
txtUserName.Text)
Else
lblStatus.Text = "Incorrect username or password, try
again. To activate this function you must also select the most recent
reporting year."
End If
End Sub
End Class
Nov 18 '05 #1
2 2229
Hi,

I suggest you take a look at decompilers like Anakrino if you want to
recover the source code (remember all comments are gone, as these are
omitted during compilation) http://www.saurik.com/net/exemplar/

Please not, I have not tested anakrino in a while, and not sure if it can
decompile to VB.NET or only to C#.

--
Regards,
Thomas Johansen (aka. Aylar)

Maellic <ma*********@yahoo.fr> wrote:
Hi,

I'm currently updating a website written with ASP.NET. The original
programmer is overseas, there is no documentation, and files are all
over the place.

Here is a code snippet from one of the .vb file used by the
application (the entire code of the file is at the end of the post):

If EmissionsWebBLL.Security.ValidateLogin(txtUserName .Text,
txtPassword.Text, RptYear) = True Then

I can't find where that EmissionsWebBll class comes from. When I try
to Go To Definition, nothing happens. I've looked for an
EmissionsWebBll.vb but can't find it. I fear the source code might be
missing but as I'm not very familiar with ASP.NET, could somebody tell
me whether I should actually be looking for this file or whether I'm
getting confused? I have file called EmissionsWebBll.dll, is there a
way to recover the vb source code from that file?
Thanks for the help

Maelle

Public Class Secure
Inherits System.Web.UI.Page
Protected WithEvents txtUserName As
System.Web.UI.WebControls.TextBox
Protected WithEvents btnSubmit As System.Web.UI.WebControls.Button
Protected WithEvents btnNewRptYear As
System.Web.UI.WebControls.Button
Protected WithEvents vlUserName As
System.Web.UI.WebControls.RequiredFieldValidator
Protected WithEvents vlPassword As
System.Web.UI.WebControls.RequiredFieldValidator
Protected WithEvents lblStatus As System.Web.UI.WebControls.Label
Protected WithEvents txtPassword As
System.Web.UI.WebControls.TextBox

#Region " Web Form Designer Generated Code "

'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub
InitializeComponent()

End Sub

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form
Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub

#End Region

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
If Not Page.IsPostBack Then

End If
End Sub
Private Sub btnSubmit_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles btnSubmit.Click
Dim RptYear As String = CType(Request.Form("eYear"), Integer)
- 1 & "/" & Request.Form("eYear")
Dim LoginID As String

'Check to see whether username and password exists
If EmissionsWebBLL.Security.ValidateLogin(txtUserName .Text,
txtPassword.Text, RptYear) = True Then
'First check to see whether its the users first login
If
EmissionsWebBLL.Security.ValidateFirstLogin(txtUse rName.Text,
txtPassword.Text) = True Then 'User has changed
password previously, now check how
long ago password was changed
If
EmissionsWebBLL.Security.ValidatePasswordHistory(t xtUserName.Text,
txtPassword.Text, RptYear) = False Then 'Password
needs changing
Response.Redirect("PasswordChange.aspx?Username=" & txtUserName.Text)
Else
'Everything aok, proceed to asp page with login in
querystring
LoginID =
EmissionsWebBLL.Security.GetLoginID(txtUserName.Te xt,
txtPassword.Text, RptYear)
Response.Redirect("getUserDetails.asp?LoginID=" &
LoginID)
End If

Else
'User needs to activiate a new password, redirect to
FirstLogin page
Response.Redirect("FirstLogin.aspx?Username=" &
txtUserName.Text)
End If
Else
lblStatus.Text = "Incorrect username or password, try
again."
End If
End Sub

Private Sub btnNewRptYear_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles btnNewRptYear.Click
Dim RptYear As String = CType(Request.Form("eYear"), Integer)
- 1 & "/" & Request.Form("eYear")
'Check to see whether username and password exists
If EmissionsWebBLL.Security.ValidateLogin(txtUserName .Text,
txtPassword.Text, RptYear) = True Then
Response.Redirect("NewRPTYearSetup.asp?Alias=" &
txtUserName.Text)
Else
lblStatus.Text = "Incorrect username or password, try
again. To activate this function you must also select the most recent
reporting year."
End If
End Sub
End Class

Nov 18 '05 #2
If "EmissionsWebBll.dll" is compiled in debug mode, and if you have
"EmissionsWebBll.pdb", then you should be able to step into the dll
and look at the source code using Visual Studio .NET.

Tommy,

ma*********@yahoo.fr (Maellic) wrote in message news:<15**************************@posting.google. com>...
Hi,

I'm currently updating a website written with ASP.NET. The original
programmer is overseas, there is no documentation, and files are all
over the place.

Here is a code snippet from one of the .vb file used by the
application (the entire code of the file is at the end of the post):

If EmissionsWebBLL.Security.ValidateLogin(txtUserName .Text,
txtPassword.Text, RptYear) = True Then

I can't find where that EmissionsWebBll class comes from. When I try
to Go To Definition, nothing happens. I've looked for an
EmissionsWebBll.vb but can't find it. I fear the source code might be
missing but as I'm not very familiar with ASP.NET, could somebody tell
me whether I should actually be looking for this file or whether I'm
getting confused? I have file called EmissionsWebBll.dll, is there a
way to recover the vb source code from that file?
Thanks for the help

Maelle

Public Class Secure
Inherits System.Web.UI.Page
Protected WithEvents txtUserName As
System.Web.UI.WebControls.TextBox
Protected WithEvents btnSubmit As System.Web.UI.WebControls.Button
Protected WithEvents btnNewRptYear As
System.Web.UI.WebControls.Button
Protected WithEvents vlUserName As
System.Web.UI.WebControls.RequiredFieldValidator
Protected WithEvents vlPassword As
System.Web.UI.WebControls.RequiredFieldValidator
Protected WithEvents lblStatus As System.Web.UI.WebControls.Label
Protected WithEvents txtPassword As
System.Web.UI.WebControls.TextBox

#Region " Web Form Designer Generated Code "

'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub
InitializeComponent()

End Sub

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form
Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub

#End Region

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
If Not Page.IsPostBack Then

End If
End Sub
Private Sub btnSubmit_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles btnSubmit.Click
Dim RptYear As String = CType(Request.Form("eYear"), Integer)
- 1 & "/" & Request.Form("eYear")
Dim LoginID As String

'Check to see whether username and password exists
If EmissionsWebBLL.Security.ValidateLogin(txtUserName .Text,
txtPassword.Text, RptYear) = True Then
'First check to see whether its the users first login
If EmissionsWebBLL.Security.ValidateFirstLogin(txtUse rName.Text,
txtPassword.Text) = True Then
'User has changed password previously, now check how
long ago password was changed
If EmissionsWebBLL.Security.ValidatePasswordHistory(t xtUserName.Text,
txtPassword.Text, RptYear) = False Then
'Password needs changing
Response.Redirect("PasswordChange.aspx?Username="
& txtUserName.Text)
Else
'Everything aok, proceed to asp page with login in
querystring
LoginID =
EmissionsWebBLL.Security.GetLoginID(txtUserName.Te xt,
txtPassword.Text, RptYear)
Response.Redirect("getUserDetails.asp?LoginID=" &
LoginID)
End If

Else
'User needs to activiate a new password, redirect to
FirstLogin page
Response.Redirect("FirstLogin.aspx?Username=" &
txtUserName.Text)
End If
Else
lblStatus.Text = "Incorrect username or password, try
again."
End If
End Sub

Private Sub btnNewRptYear_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles btnNewRptYear.Click
Dim RptYear As String = CType(Request.Form("eYear"), Integer)
- 1 & "/" & Request.Form("eYear")
'Check to see whether username and password exists
If EmissionsWebBLL.Security.ValidateLogin(txtUserName .Text,
txtPassword.Text, RptYear) = True Then
Response.Redirect("NewRPTYearSetup.asp?Alias=" &
txtUserName.Text)
Else
lblStatus.Text = "Incorrect username or password, try
again. To activate this function you must also select the most recent
reporting year."
End If
End Sub
End Class

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: chuy | last post by:
Is there a way to recover a lost password in Mysql 4.1. I have seen many articles and howto's on how to kill the Mysql process and then restart using skip grant tables option. I am not trying to...
2
by: Nate | last post by:
Hello, I am trying to recover a SQL Server 7 database from another hard disk drive that has a corrupted Windows 2000 Advanced Server installation. I am not able to repair the corrupted Windows...
1
by: KoliPoki | last post by:
Folks. I screwed up big time, I deleted a very long and smart stored proc (pls don't ask how). Is there anyway I can recover it? Any advice appreciated.
5
by: Prem K Mehrotra | last post by:
I come from Oracle background. In Oracle, when one wants to do a point in time recovery, one can specify recover database until timestmap. Oracle's database maps to a db2 subsystem, i.e., in...
3
by: apple | last post by:
UDB v8 fp 6a on AIX 5.1.0.0 Below is a manual incremental recover from compressed backup datasets. With external compress backup datasets, can it be coded to do an automatic incremental recover?...
5
by: Mike | last post by:
Hard drive failure recently caused me to loose a little data that hadn't been backed up yet. One of the things was a small custom web control I was writing -- not very fancy, but it took me all...
10
by: James Radke | last post by:
Hello, I have an emergency question - it was just determined that our backups were incomplete, and we do not have the source code for an application we developed (due to some system delete, and...
4
by: C.W. | last post by:
I lost my laptop as well as my backup server. I am wondering if there is a way to step through the code without the source code, but only with the dll and pdb (which are compiled in debug mode)...
0
by: mike_dba | last post by:
I have been testing the db2 recover command on a DB2 V8.2 Linux database. The database contains a single partition. I am not archiving logs but retaining them on disk. the backup image is to...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.