Advertisement

05.09.2008 at 07:28AM PDT, ID: 23389446
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Figuring out asp.net code that I did not write.

Tags: ASP.net, Web Services, Visual Studio
Hello Experts

I have recently been asked to work on a website that was programmed a couple of months ago but abandoned mid way. I have spent many hours trying to make sense of this website and how it actually works but I am stumped. I am including a snippet of the login page below. Any information on how this webpage actually processes the login would be greatly appreciated. I also believe that the website might also be utilizing web services but I am not certain about that and have never worked with web services before. Also please note that I cannot actually find the code behind file Login.aspx.cs which is puzzling me the most. How does the server process the login button click when there is no .cs file?? Any insight you could provide would be greatly appreciated.
Thanks.


<%@ Page Language="C#" MasterPageFile="~/MasterPages/Default.Master" AutoEventWireup="true"
    Codebehind="Login.aspx.cs" Inherits="Web_Client.Login" Title="Login" %>



<asp:Login ID="ClientLogin" runat="server" OnAuthenticate="ClientLogin_Authenticate"
            DestinationPageUrl="~/Default.aspx" DisplayRememberMe="False" PasswordRecoveryText="Forgot Password" PasswordRecoveryUrl="~/Registration/ForgotPassword.aspx">
            <LayoutTemplate>
                <table border="0" cellpadding="1" cellspacing="0" style="border-collapse: collapse">
                    <tr>
                        <td>
                            <table border="0" cellpadding="0">
                                <tr><td></td>
                                    <td align="left" >
                                        Log In For Returning User</td><td></td>
                                </tr>
                               
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">User Name:</asp:Label></td>
                                    <td>
                                        <asp:TextBox ID="UserName" runat="server" ></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                            ErrorMessage="User Name is required." ToolTip="User Name is required." ValidationGroup="ClientLogin">*</asp:RequiredFieldValidator>
                                    </td>
                                    <td></td>
                                </tr>
                                <tr align="left">
                                    <td align="right">
                                        <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label></td>
                                    <td>
                                        <asp:TextBox ID="Password" runat="server" TextMode="Password" Width="151px"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                            ErrorMessage="Password is required." ToolTip="Password is required." ValidationGroup="ClientLogin">*</asp:RequiredFieldValidator>
                                    </td>
                                    <td><asp:HyperLink ID="PasswordRecoveryLink" runat="server" NavigateUrl="~/Registration/ForgotPassword.aspx" TabIndex="3">Forgot My Password</asp:HyperLink></td>
                                </tr>
                                <tr>
                                    <td align="center" colspan="3" style="color: red">
                                        <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" colspan="3">
                                        <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Log In" ValidationGroup="ClientLogin" OnClick="LoginButton_Click1" TabIndex="2" />
                                    </td>
                                 
                                </tr>

                            </table>
                        </td>
                    </tr>
                </table>
            </LayoutTemplate>
        </asp:Login>
Start your free trial to view this solution
Question Stats
Zone: Programming
Question Asked By: wilbur88
Solution Provided By: jcoehoorn
Participating Experts: 4
Solution Grade: B
Views: 0
Translate:
Loading Advertisement...
05.09.2008 at 07:38AM PDT, ID: 21533265

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.09.2008 at 07:52AM PDT, ID: 21533435

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.09.2008 at 08:34AM PDT, ID: 21533935

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.09.2008 at 09:11AM PDT, ID: 21534290

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.09.2008 at 09:16AM PDT, ID: 21534335

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.09.2008 at 09:23AM PDT, ID: 21534391

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.09.2008 at 09:24AM PDT, ID: 21534393

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.09.2008 at 09:25AM PDT, ID: 21534408

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.09.2008 at 09:29AM PDT, ID: 21534442

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.09.2008 at 09:40AM PDT, ID: 21534545

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.09.2008 at 09:49AM PDT, ID: 21534620

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.09.2008 at 10:31AM PDT, ID: 21534956

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.09.2008 at 12:24PM PDT, ID: 21535755

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.12.2008 at 11:39AM PDT, ID: 21549447

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
Microsoft
  • Internet Protocols
  • Applications
  • Development
  • OS
  • Hardware
  • Windows Security
Apple
  • Operating Systems
  • Hardware
  • Programming
  • Networking
  • Software
Internet
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Spy / Ad Blockers
  • Web Browsers
  • New Net Users
  • Web Development
  • Chat / IM
  • Anti Spam
  • Web Servers
  • Anti-Virus
  • Email Clients
Gamers
  • Tips
  • Online / MMORPG
  • Puzzle
  • Emulators
  • Action / Adventure
  • Role Playing
  • Consoles
  • Game Programming
  • Strategy
  • Sports
  • Misc
  • Computer Games
Digital Living
  • Hardware
  • New Net Users
  • New Users
  • Software
  • Digital Music
  • Gaming World
  • Home Security
  • Apple
  • Networking Hardware
Virus & Spyware
  • Vulnerabilities
  • IDS
  • Encryption
  • Anti-Virus
  • Operating Systems Security
  • Software Firewalls
  • WebApplications
  • Cell Phones
  • Operating Systems
  • Internet
  • Hardware Firewalls
Hardware
  • Handhelds / PDAs
  • Displays / Monitors
  • Components
  • Networking Hardware
  • Peripherals
  • Laptops/Notebooks
  • Storage
  • Servers
  • Desktops
  • New Users
  • Misc
  • Apple
Software
  • System Utilities
  • Industry Specific
  • Network Management
  • Photos / Graphics
  • Page Layout
  • VMWare
  • Misc
  • Web Development
  • OS
  • CYGWIN
  • Voice Recognition
  • Message Queue
  • Quality Assurance
  • Security
  • Firewalls
  • MultiMedia Applications
  • Development
  • Database
  • Office / Productivity
  • Business Management
  • OS/2 Apps
  • Server Software
  • Internet / Email
ITPro
  • OS
  • Storage
  • Encryption
  • Operating Systems Security
  • Apple Hardware
  • Laptops & Notebooks
  • Servers
  • Networking Hardware
  • Peripherals
  • Devices
  • Displays / Monitors
  • WebTrends / Stats
  • Search Engines
  • Firewalls
  • WebApplications
  • IDS
  • Vulnerabilities
  • Email Clients
  • File Sharing
  • Spy / Ad Blockers
  • Web Browsers
  • Web Servers
  • Networking
  • Anti-Virus
  • Chat / IM
  • Anti Spam
Developer
  • Web Servers
  • Web Browsers
  • Game Programming
  • Dev Tools
  • Industry Specific
  • Office / Productivity
  • Database
  • CYGWIN
  • Web Development
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Programming
  • Content Management
  • Application Servers
  • Protocols
Storage
  • Removable Backup Media
  • Storage Technology
  • Servers
  • Grid
  • Remote Access
  • Backup / Restore
  • Misc
  • Hard Drives
OS
  • Miscellaneous
  • Security
  • Development
  • Linux
  • VMWare
  • MainFrame OS
  • Unix
  • Apple
  • OS / 2
  • AS / 400
  • BeOS
  • Microsoft
  • VMS / OpenVMS
Database
  • Oracle
  • Miscellaneous
  • MySQL
  • Software
  • Sybase
  • Contact Management
  • PostgreSQL
  • Data Manipulation
  • Clarion
  • InterSystems Cache
  • Siebel
  • MUMPS
  • OLAP
  • SQLBase
  • SAS
  • GIS & GPS
  • 4GL
  • Berkeley DB
  • DB2
  • Informix
  • Interbase / Firebird
  • FoxPro
  • Reporting
  • LDAP
  • Filemaker Pro
  • MS SQL Server
  • dBase
  • MS Access
Security
  • Misc
  • Web Browsers
  • Software Firewalls
  • Operating Systems Security
  • File Sharing
  • Spy / Ad Blockers
  • Vulnerabilities
  • WebApplications
  • IDS
  • Anti-Virus
  • Encryption
  • Anti Spam
  • Email Clients
  • VPN
  • Chat / IM
Programming
  • Editors IDEs
  • Installation
  • Handhelds / PDAs
  • Multimedia Programming
  • System / Kernel
  • Algorithms
  • Game
  • Signal Processing
  • Project Management
  • Open Source
  • Database
  • Misc
  • Languages
  • Processor Platforms
  • Theory
Web Development
  • Scripting
  • Blogs
  • Web Servers
  • Software
  • Search Engines
  • Web Graphics
  • Images
  • Internet Marketing
  • Images and Photos
  • Components
  • Document Imaging
  • Web Languages/Standards
  • Illustration
  • WebApplications
  • Fonts
  • WebTrends / Stats
  • Authoring
  • Digital Camera Software
  • Miscellaneous
Networking
  • Protocols
  • Apple Networking
  • Network Management
  • Message Queue
  • Application Servers
  • Content Management
  • File Servers
  • Email Servers
  • Misc
  • Java Editors & IDEs
  • Wireless
  • Networking Hardware
  • Backup / Restore
  • System Utilities
  • ISPs & Hosting
  • Web Servers
  • Storage Technology
  • Removable Backup Media
  • Servers
  • Broadband
  • Grid
  • OS / 2
  • Novell Netware
  • Unix Networking
  • Windows Networking
  • Security
  • Telecommunications
  • Operating Systems
  • Linux Networking
Other
  • Community Advisor
  • Lounge
  • Community Support
  • New Net Users
  • Philosophy / Religion
  • Math / Science
  • Miscellaneous
  • URLs
  • Expert Lounge
  • Politics
  • Puzzles / Riddles
Community Support
  • Suggestions
  • New to EE
  • New Topics
  • Community Advisor
  • CleanUp
  • Announcements
  • General
  • Feedback
  • Input
  • EE Bugs
 
05.09.2008 at 07:38AM PDT, ID: 21533265

Rank: Guru

Quite a large subject mate, try starting here:

http://msdn.microsoft.com/en-us/library/ms178331.aspx

And let me know if you need any specific pointers.
 
05.09.2008 at 07:52AM PDT, ID: 21533435

Rank: Guru

In asp.net, the code-behind files can be compiled into a dll, which is located in the /bin folder.  Once this is done, the code-behind files are no longer needed to run the web site, and don't need to be deployed to the web server.  They be located somewhere else entirely, or even have been deleted, but you MUST find them if you want to make any changes to the site.

After you find those files, look in the Login.aspx.cs file for the ClientLogin_Authenticate() function to see how it processes the login.
Accepted Solution
 
05.09.2008 at 08:34AM PDT, ID: 21533935

Rank: Guru

It looks like they're using the built-in ASP.NET forms authentication. Check out the Web.config for more information.
 
05.09.2008 at 09:11AM PDT, ID: 21534290
Hi jcoehoorn

Thats very interesting information, can you please tell me how to compile a website to create these dll files, I tried to build a test website but that did not create any dll files. I am using visual studio.net 2005.

Thanks
 
05.09.2008 at 09:16AM PDT, ID: 21534335
Hi DotNetThinker

I also noticed that and searched the web.config file, and at least did not find any login information (like allow user xyz) but what still puzzles me is that fact that I cannot find the code for onclick event of the login button. Can you shed some light on that?

Thanks.
 
05.09.2008 at 09:23AM PDT, ID: 21534391

Rank: Guru

Well there are two different ways to build web sites in ASP.Net.  What you're looking at here is a pre-compiled web site, which is generally preferred because it's faster (web server can skip the compiling step) and because it's more secure (you don't have source code in a folder exposed by the web server).
 
05.09.2008 at 09:24AM PDT, ID: 21534393

Rank: Guru

Yeah, forms authentication is a little odd when it comes to using the built-in controls. For whatever reason you're not going to find the event that actually authenticates the user. As long as you have the web.config setup right the controls will interact with your database without much (if any) development. I know it's a little overwhelming but I read the article below when I first used the built in authentication and it helped me to understand what's going on.

http://aspnet.4guysfromrolla.com/articles/120705-1.aspx
 
05.09.2008 at 09:25AM PDT, ID: 21534408

Rank: Guru

The onclick code will be in your missing .cs file.  You MUST find that or you're not going to get anywhere.
 
05.09.2008 at 09:29AM PDT, ID: 21534442

Rank: Guru

If you click on the hammer and earth icon in the solution explorer (upper right) you can setup users, roles, etc.
 
05.09.2008 at 09:40AM PDT, ID: 21534545
Perhaps bear in mind as well that maybe the code and pages aren't actually finished. If it was abandoned mid way then it obviously doesn't do everything it was supposed to and there may be errors/missing code, etc. in there as well.  Just a thought...
 
05.09.2008 at 09:49AM PDT, ID: 21534620
Hi ReinisB

Valid point but in this case not so. The pages I am trying to figure out were completed and running. The company had planned to expand the website and add various other features and information, but at that point it was abandoned. Now they want to pick it up again and continue developing it further.
 
05.09.2008 at 10:31AM PDT, ID: 21534956
HI jcoehoorn

Thank for your comments. I do understand that the website i have currently is a precompiled website, but if i make another test website using visual studio 2005, how do i compile the website so that I can get the dll file for all the codebehind files in my test website.

thanks
 
05.09.2008 at 12:24PM PDT, ID: 21535755

Rank: Guru

Right click on the web site in the solution explorer and select 'Publish'
 
05.12.2008 at 11:39AM PDT, ID: 21549447
Hi jcoehoorn

Thanks for all you help. You were correct, I only had the DLL's and not the source code.

Thanks
 
 
20080236-EE-VQP-29 / EE_QW_2_20070628