Now when running the code and trying to submit the request without filling Inquiry number then a yellow box will appear alerting us about it

Now when running the code and trying to submit the request without filling Inquiry number then a yellow box will appear alerting us about it:
I will remove the red alerts that I used before since I will be using callouts to highlight fields that hold errors. To remove them I will set the Display propery of these error messages into None. I’ve done this using quick replacing by ctrl+h for 4 repalcements. And To highlight the text boxes that have errors I will create a style in the CSS file that’s used by the HightLighCssClass property of the ValidationCalloutExtender and this class is applied via JavaScript. To add this property we go to property panel for ValidatorCalloutExtender and find HightLighCssClass and give value of TextBoxError.
background-color: #FFFFCC;
color: White;
We will see this in the Departments.aspx page by giving an animation to the updating instead of old UpdateProgress control. Before beginning we will enable ASP.NET AJAX Toolkit be available for whole project. This is done by registering the library through putting following code, which is similar to the @register directive in the HelpDesk.aspx, between pages tags in the Web.config file:

Then I will add following code and apply few changes:

We Will Write a Custom Essay Specifically
For You For Only $13.90/page!

order now


Today I will complete yestersay’s work in providingthe login authentication and authorization.
? Using Web.config to store users:
We use the credentials tag inside forms element to define login credentials for users who are permitted to browse the site. So we modify the Web.config file to be like this:

So this will only allow 2 specified users with their passwords to browse the website and denies everyone else. And now we will modify the server code for Login page to be based on the Web.config file:
protected void LoggingUser(Object s, EventArgs e)
if (FormsAuthentication.Authenticate(user_name.Text, password.Text))
FormsAuthentication.RedirectFromLoginPage(user_name.Text, true);
So this will check the username and password entered by the user and if this information matches the one in the Web.config file then the user will be redirected from the login page.
? password hashing:
Algorithms used for hashing perform hashing on the user’s input and when that user tries to login we use the same algorithm again to the entered information and compare it with the stored one. ASP.NET provides built-in hashing algorithms like SHA1 and MD5 , e.g. using MD5 format we can write like this:

? Logging out:
First I create logout button and use the Signout method of FormsAuthentication class by calling it in the event handler of the logout button.
void Signout(Object s, EventArgs e) {
? Membership data structures:
Membership systems, created by ASP.NET, represents supporting for managing customer accounts, user registration forms, login forms and so on. Also Visual Web provides ASP.NET Web Site Administration Tool that let us manage and manipulate data like adding or editing users and perform administrative objectives.
To create needed data structures I go to Project menu from my Visual studio where project is loaded, and choose ASP.NET Web Site Administration Tool then from that page go to Security tab. This will result in having two files inside App_Data folder: ASPNETDB.MDF and ASPNETDB_LOG.LDF which belong to ASPNETDB database called as User Interface Database that allows accessing the database without attaching files to SQL server instance thus copying or transferring and connecting will be easier.
? Storing Membership data in my database:
Keeping data inside AkronDork database is better as I will need to transfer only one database to the production machine. Storing membership data requires creating the data structures in AkronDork and editing Web.Config to define these structures’ location instead of using ASPNETDB database. This is done by opening aspnet_regsql.exe tool from Microsoft.Net folder. Also I have to specify my server and the Database and once finished I will add following code in the Web.Config:


I will be using these controls to display login and logout links and to make sure that admin tools appear only to administrators.
First I edited my login page to appear like this using the login form with auto format option and changing some styles:


Then I will edit the Master page for asking unauthenticated user to login and display logout link for logged-in users and allow them seeing the menu on the left:



I'm Sam!

Would you like to get a custom essay? How about receiving a customized one?

Check it out