Solved

vs2010 web application

Posted on 2011-02-20
6
511 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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now