Solved

vs2010 web application

Posted on 2011-02-20
6
536 Views
Last Modified: 2013-12-17
Hi experts
in vs 2010,can create an empty web
but create a web application by default , it has a simple design with login, home page and about page
where r those code? where are the account data saved? dont see any DB files , and if i want to change a few functions , where can i find those code working for login control and register control?

thx
0
Comment
Question by:hukaka
  • 2
  • 2
  • 2
6 Comments
 
LVL 5

Accepted Solution

by:
KiasChaos83 earned 250 total points
ID: 34939875
The account data is saved to ~/APP_DATA/aspnetdb_tmp.mdf by default.

Where is what code?

The code for the login page is at ~/Account/Login.aspx, but that uses an inbuilt control (i.e. <asp:Login />). It handles authentication against the database mentioned above. When the user is authenticated, the Login control will use forms authentication to create an auth cookie.

The home page, and about page are at ~/ (i.e. the root directory).

0
 

Author Comment

by:hukaka
ID: 34940639
thank kias
I thought there should be an mdf in App_Data, but cant find it , is it hiden?
also saw those web controls , but cs file for those controls are almost empty.
need to change VS setting to view those code?
0
 
LVL 8

Expert Comment

by:cubaman_24
ID: 34942778
Hello hukaka:
It will be created by aspnet on your first run.
Best regards
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

Author Comment

by:hukaka
ID: 34942860
thanks cuba
thats what i thought

I debugged it ,and registered an account .
later I debugged it again and login with that account , worked , means some data must be saved .
but in solution explorer , no mdf file can be found .
was it saved in somewhere else? like a copy of solution has been made in local iis folder?
0
 
LVL 8

Assisted Solution

by:cubaman_24
cubaman_24 earned 250 total points
ID: 34945020
Hello:
As KiasChaos83 pointed before, it will be created in ~/app_data folder.
Best regards.
0
 
LVL 5

Expert Comment

by:KiasChaos83
ID: 35002272
Thanks for the points

The MDF may not show up in the solution as you would expect. Check the actual build directory at the path mentioned.

Cheers
0

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
c# - Best approach for objects in functions 3 24
SSIS On fail action 5 37
Need a simple RegEx to search for two words 27 41
how to just get time from a date 6 32
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question