c# - How to access the database that comes with ASP.NET Web Application? -
i using visual studio 2013.
i have done file -> new -> project
i choose template -> visual c# -> web -> asp.net web application
project name set webapplication1.
when press f5 run website becomes basic working website user can register account.
the problem facing how access database store registered users? how can manage users? intend in future publish website. need find way backup users.
should need add in own tables should put them in separate database or should store database comes project?
i cannot find information on this. suspect keywords used searching might wrong. can give me suggestions?
the default template asp.net creates database localdb light version of sql server , installed visual studio 2013, see generated database, browse appdata folder in project , find long file contains of project name, generated database. can attach db file sql server through management studio if have 1 or can change connection string sql server instance want database name want , rerun application , database generated sql server set can other database.
edit if run , registered 1 user in application database output there, there small icon in solution explorer in vs 2013 shows files (hidden) files, database not part of solution. try icon , should see database file there.
hope helps.
Comments
Post a Comment