Solved

vs2010 web application

Posted on 2011-02-20
6
521 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

863 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

26 Experts available now in Live!

Get 1:1 Help Now