473,831 Members | 2,324 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Valid ateLogin(txtUse rName.Text,
txtPassword.Tex t, 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.P age
Protected WithEvents txtUserName As
System.Web.UI.W ebControls.Text Box
Protected WithEvents btnSubmit As System.Web.UI.W ebControls.Butt on
Protected WithEvents btnNewRptYear As
System.Web.UI.W ebControls.Butt on
Protected WithEvents vlUserName As
System.Web.UI.W ebControls.Requ iredFieldValida tor
Protected WithEvents vlPassword As
System.Web.UI.W ebControls.Requ iredFieldValida tor
Protected WithEvents lblStatus As System.Web.UI.W ebControls.Labe l
Protected WithEvents txtPassword As
System.Web.UI.W ebControls.Text Box

#Region " Web Form Designer Generated Code "

'This call is required by the Web Form Designer.
<System.Diagnos tics.DebuggerSt epThrough()> Private Sub
InitializeCompo nent()

End Sub

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

#End Region

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArg s) 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.EventArg s) Handles btnSubmit.Click
Dim RptYear As String = CType(Request.F orm("eYear"), Integer)
- 1 & "/" & Request.Form("e Year")
Dim LoginID As String

'Check to see whether username and password exists
If EmissionsWebBLL .Security.Valid ateLogin(txtUse rName.Text,
txtPassword.Tex t, RptYear) = True Then
'First check to see whether its the users first login
If EmissionsWebBLL .Security.Valid ateFirstLogin(t xtUserName.Text ,
txtPassword.Tex t) = True Then
'User has changed password previously, now check how
long ago password was changed
If EmissionsWebBLL .Security.Valid atePasswordHist ory(txtUserName .Text,
txtPassword.Tex t, RptYear) = False Then
'Password needs changing
Response.Redire ct("PasswordCha nge.aspx?Userna me="
& txtUserName.Tex t)
Else
'Everything aok, proceed to asp page with login in
querystring
LoginID =
EmissionsWebBLL .Security.GetLo ginID(txtUserNa me.Text,
txtPassword.Tex t, RptYear)
Response.Redire ct("getUserDeta ils.asp?LoginID =" &
LoginID)
End If

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

Private Sub btnNewRptYear_C lick(ByVal sender As System.Object,
ByVal e As System.EventArg s) Handles btnNewRptYear.C lick
Dim RptYear As String = CType(Request.F orm("eYear"), Integer)
- 1 & "/" & Request.Form("e Year")
'Check to see whether username and password exists
If EmissionsWebBLL .Security.Valid ateLogin(txtUse rName.Text,
txtPassword.Tex t, RptYear) = True Then
Response.Redire ct("NewRPTYearS etup.asp?Alias= " &
txtUserName.Tex t)
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 2250
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*********@ya hoo.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.Valid ateLogin(txtUse rName.Text,
txtPassword.Tex t, 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.P age
Protected WithEvents txtUserName As
System.Web.UI.W ebControls.Text Box
Protected WithEvents btnSubmit As System.Web.UI.W ebControls.Butt on
Protected WithEvents btnNewRptYear As
System.Web.UI.W ebControls.Butt on
Protected WithEvents vlUserName As
System.Web.UI.W ebControls.Requ iredFieldValida tor
Protected WithEvents vlPassword As
System.Web.UI.W ebControls.Requ iredFieldValida tor
Protected WithEvents lblStatus As System.Web.UI.W ebControls.Labe l
Protected WithEvents txtPassword As
System.Web.UI.W ebControls.Text Box

#Region " Web Form Designer Generated Code "

'This call is required by the Web Form Designer.
<System.Diagnos tics.DebuggerSt epThrough()> Private Sub
InitializeCompo nent()

End Sub

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

#End Region

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArg s) 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.EventArg s) Handles btnSubmit.Click
Dim RptYear As String = CType(Request.F orm("eYear"), Integer)
- 1 & "/" & Request.Form("e Year")
Dim LoginID As String

'Check to see whether username and password exists
If EmissionsWebBLL .Security.Valid ateLogin(txtUse rName.Text,
txtPassword.Tex t, RptYear) = True Then
'First check to see whether its the users first login
If
EmissionsWebBLL .Security.Valid ateFirstLogin(t xtUserName.Text ,
txtPassword.Tex t) = True Then 'User has changed
password previously, now check how
long ago password was changed
If
EmissionsWebBLL .Security.Valid atePasswordHist ory(txtUserName .Text,
txtPassword.Tex t, RptYear) = False Then 'Password
needs changing
Response.Redire ct("PasswordCha nge.aspx?Userna me=" & txtUserName.Tex t)
Else
'Everything aok, proceed to asp page with login in
querystring
LoginID =
EmissionsWebBLL .Security.GetLo ginID(txtUserNa me.Text,
txtPassword.Tex t, RptYear)
Response.Redire ct("getUserDeta ils.asp?LoginID =" &
LoginID)
End If

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

Private Sub btnNewRptYear_C lick(ByVal sender As System.Object,
ByVal e As System.EventArg s) Handles btnNewRptYear.C lick
Dim RptYear As String = CType(Request.F orm("eYear"), Integer)
- 1 & "/" & Request.Form("e Year")
'Check to see whether username and password exists
If EmissionsWebBLL .Security.Valid ateLogin(txtUse rName.Text,
txtPassword.Tex t, RptYear) = True Then
Response.Redire ct("NewRPTYearS etup.asp?Alias= " &
txtUserName.Tex t)
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 "EmissionsWebBl l.dll" is compiled in debug mode, and if you have
"EmissionsWebBl l.pdb", then you should be able to step into the dll
and look at the source code using Visual Studio .NET.

Tommy,

ma*********@yah oo.fr (Maellic) wrote in message news:<15******* *************** ****@posting.go ogle.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.Valid ateLogin(txtUse rName.Text,
txtPassword.Tex t, 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.P age
Protected WithEvents txtUserName As
System.Web.UI.W ebControls.Text Box
Protected WithEvents btnSubmit As System.Web.UI.W ebControls.Butt on
Protected WithEvents btnNewRptYear As
System.Web.UI.W ebControls.Butt on
Protected WithEvents vlUserName As
System.Web.UI.W ebControls.Requ iredFieldValida tor
Protected WithEvents vlPassword As
System.Web.UI.W ebControls.Requ iredFieldValida tor
Protected WithEvents lblStatus As System.Web.UI.W ebControls.Labe l
Protected WithEvents txtPassword As
System.Web.UI.W ebControls.Text Box

#Region " Web Form Designer Generated Code "

'This call is required by the Web Form Designer.
<System.Diagnos tics.DebuggerSt epThrough()> Private Sub
InitializeCompo nent()

End Sub

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

#End Region

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArg s) 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.EventArg s) Handles btnSubmit.Click
Dim RptYear As String = CType(Request.F orm("eYear"), Integer)
- 1 & "/" & Request.Form("e Year")
Dim LoginID As String

'Check to see whether username and password exists
If EmissionsWebBLL .Security.Valid ateLogin(txtUse rName.Text,
txtPassword.Tex t, RptYear) = True Then
'First check to see whether its the users first login
If EmissionsWebBLL .Security.Valid ateFirstLogin(t xtUserName.Text ,
txtPassword.Tex t) = True Then
'User has changed password previously, now check how
long ago password was changed
If EmissionsWebBLL .Security.Valid atePasswordHist ory(txtUserName .Text,
txtPassword.Tex t, RptYear) = False Then
'Password needs changing
Response.Redire ct("PasswordCha nge.aspx?Userna me="
& txtUserName.Tex t)
Else
'Everything aok, proceed to asp page with login in
querystring
LoginID =
EmissionsWebBLL .Security.GetLo ginID(txtUserNa me.Text,
txtPassword.Tex t, RptYear)
Response.Redire ct("getUserDeta ils.asp?LoginID =" &
LoginID)
End If

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

Private Sub btnNewRptYear_C lick(ByVal sender As System.Object,
ByVal e As System.EventArg s) Handles btnNewRptYear.C lick
Dim RptYear As String = CType(Request.F orm("eYear"), Integer)
- 1 & "/" & Request.Form("e Year")
'Check to see whether username and password exists
If EmissionsWebBLL .Security.Valid ateLogin(txtUse rName.Text,
txtPassword.Tex t, RptYear) = True Then
Response.Redire ct("NewRPTYearS etup.asp?Alias= " &
txtUserName.Tex t)
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
2699
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 reset the password but rather recover it. Resetting the password to something else would cause a problem some of the underlying programs that rely on MySQL. I don't feel like changing code for every application that is using MySQL in my site. ...
2
2957
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 2000 Advanced Server installation but the file system is intact. I have installed a new copy of SQL Server 7 onto a new hard disk and have used the sp_attach_db system stored procedure to attach the database from the old hard drive into the new...
1
3595
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
3831
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 Oracle database means entire database, i.e.. all tablespaces (including indexes). I see only recover tablespace and recover indexspace (or index) commands in db2. Therefore, one has to specify all the tablespaces and indexspaces and recover them
3
3176
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? The manual incremental recover works just fine, but having trouble getting the automatic incremental recover to work. Thanks for your help # INCREMENTAL BACKUP
5
1444
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 day, and I don't have the time to rewrite it. I didn't obfuscate the code -- is it possible to recover some semblance of the source? The DLL is only 4K in size. Thanks Mike
10
5825
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 the bad backups)! We do, however still have the EXE modules.. is there a way I can somehow recover the source code from the exe?!?! Thanks!
4
1798
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) through vs.studio at all? I do have these files as they are stored on a remote site for testing. Any idea? thanks in advance. CW
0
1798
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 disk as well. I performed the following in order : 1. OFFLINE BACKUP <time#1> 2. Create table S.T (c1 smallint) 3. Insert several rows into S.T - values 1,2,3,4,5 4. ONLINE BACKUP <time#2> 5. Insert several more rows 6,7,8,9
0
9642
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10494
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10534
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9317
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6951
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5619
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5780
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4416
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3076
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.