i have a master page with various other pages including login page and i want to display username in all content pages after succesfully login..... following is my code which i have used in login.aspx.cs page protected void Button1_Click(object sender, EventArgs e) {mydb.myconnection(); . If a question is poorly phrased then either ask for clarification, ignore it, or. Displaying tags using those tags was the best way of displaying raw source code Reply on Introduction, i am a student of grade 8 studying in indian school dsm, How to Make a IR Proximity Sensor at Home, CheApR - Open Source Augmented Reality Smart Glasses, "High-Fivey" the Cardboard Micro:bit Robot. Does anyone know of a BBCode that I can use to display the user's username who is reading it? To display html tags in html format we have to use different ways. (right above the log out) I am assuming in the master page but I did not see any header.aspx. Here's the same thing, but this time using embedded styles. At last, close a database connection. If exist, store the username in a session and then redirect the user to profile.php. Solved questions live forever in our knowledge base where they go on to help others facing the same issues for years to come. First, the HTML: The Code Given is for only beginners in HTML 1.The code implements a simple login form 2.It checks whether the password and usernames are matching or not 3.While you are using replace the predefined username and password that I'v given that is replace "myuserid" and "mypswrd" with your own userid and password. $location.path(' /student/' + username) }; }); app.controller(" studentController", function ($scope, $routeParams) { $scope.username = $routeParams.username; }); }); < / script > < /body > < /html > php check-login.php if ($_POST['username'] === '1234' && $_POST['password'] === '1234' ) In this example, we have displayed one text field, Password, Reset button and Login button. "); form.username.focus(); } return true; }, 5 years ago An HTML form with a name attribute: