ANSWERS: 2
  • one of the main ideas of dynamic web sites is that you don't need static web pages/html files for dynamic content. functionality. so i don't understand why you need static .htm pages. but still it's possible. whenever a user logs in fetch his/her stats from database. write it in html syntax into a file named "{membername}stats.htm" and finally navigate to that file. string userName; using (StreamWriter sw = new StreamWriter(username + "stats.htm")) { sw.WriteLine("<html>"); sw.WriteLine("<head><title>Stats for " + userName + "</title></head>"); //write the details here }
  • You should design the dynamic pages and then protect these pages from the unauthorized users. Show the login page to the users when they visit the site first time. After login fetch the user information from database and set the username on your page to show.

Copyright 2018, Wired Ivy, LLC

Answerbag | Terms of Service | Privacy Policy