Click here to Skip to main content
15,881,173 members
Articles / Web Development / ASP.NET

Help Technique in Web Applications

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
23 Aug 2010CPOL3 min read 27.4K   111   11   8
Help Technique in Web applications

Introduction

“Help” is the most important part of our web applications, as mostly we don’t notice it, but sometimes it plays a very big role for saving our time and work.

Suppose a button has only an image, many times we are not able to understand what it means but when we place the mouse pointer over it, it shows the usage of that as a tooltip, which is a part of web help technique.

Many times, when we read a topic that contains special words, definition then don’t we have to search on the net about it, we just click and a small window opens with the description - this is also a part of “help” for web applications.

So here I'm going to explain some techniques about “How to add help to web applications”.

Displaying ToolTips

ToolTip is a very basic and very important part of the web, as I discussed in the introduction.

"Suppose a button has only an image, many times we are not able to understand what it means but when we place the mouse pointer over it, it shows the usage of that as a tooltip".

About

Tooltip shows at runtime, almost all "server" controls having this (tooltip) property inbuilt.

One important thing about tooltip is that Internet Explorer dosn’t accept the "tooltip" property of ASP.NET controls; it takes this property as "title".

In HTML controls, you have to use the "title" property instead of "tooltip" for controls to show the help.

Server control_

Code

ASP.NET
<asp:ImageButton runat="server" ID="imgbutton" 

ToolTip="This is an eye,Click here to enter in web" ImageUrl="~/Lilac_by_KinkyPink.jpg"/>

Output

tooltip.JPG

Html control_

Code

HTML
<input type="image" title="This is an amazing eye" runat="server" 

src="Lilac_by_KinkyPink.jpg" style="height: 46px; width: 64px"/>

Output

The output will look the same as server control.

Displaying Help in a Popup Window

Sometimes while discussing a long term, we use some keywords that include long definitions and it is difficult to understand for a newbie. For this purpose, a popup window can be used for help purposes, it can be an HTML page or an .aspx page-depending on your requirement.

Code

HTML
<a href="#" onclick="window.open('procedure.htm','popup','left = 900 height=200,
    width=200,scrollbars=yes'); 
return(false);"> Procedure </a>are the most important topic of SQL.

Explanation

We have used # in href to give the current page reference and we used an onclick to open a new window "procedure.htm" which we have already created.

"Left = 900" is the pop window position and further are some properties.

Here procedure keyword is a link and the rest are simple chars.

Output

When you click on the "Procedure" keyword, it will open a new window containing the text entered in that page "procedure.htm" by you.

Try it.

HTML Help

If you have HTMLHELP.chm created in your system, then a simple link can be used to pop it up any time.

Download "HTML Help Workshop" for this type of help facility.

You can download it from the following link for free:

Installed.

Now follow these steps to create an HTML help workshop for a project, website, etc.

Starts - All Programs - HTML Help Workshop - HTML Help Workshop

help1.JPG

Now click on the "New" toolbar.

A new window will open like this:

help2.JPG

Select Project, then click OK button.

help3.JPG

Click on the next button to proceed.

help4.JPG

Browse the location where you want to create the file, just give a name and click open.

Click on the next button again.

help5.JPG

Don't check any check box if you haven't created any file.

Click on the next button and then click on the finish button, then a new window will appear like this.

help6.JPG

Just use these buttons to make your help project.

When you have done all the editing for creating help project, click on this "Compile HTML file" button and then give the path of that .hhp file.

help7.JPG

Compile the project.

help8.JPG

Now see that a helpfile.chm has been created in that location.

Done!!

Conclusion

We learned how to use Help techniques for web applications.

History

  • 23rd August, 2010: Initial post

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Technical Writer Fast-Get
India India
Nikhil is a Microsoft MCTS and MCP.
developed many websites.
interested in web designing and modifying things with
creativity.
-Nikhil

Comments and Discussions

 
GeneralCouple of things Pin
JoseMenendez23-Aug-10 8:03
JoseMenendez23-Aug-10 8:03 
First, I consider ToolTips more of a usability affair, but still valid. Using the HTML title attribute to show tooltips is a little risky, because people usually miss them; why? because it delays from 1 to 2 secs to popup, depending on the browser.

Secondly, beware of using href="#", because this may result on a page reload on some browsers. Is better to use href="javascript:void(0)" to nullify the link click default behavior.

Always good to see people working hard on sw help topics.
Jm
www.menendezpoo.com
www.amazingpedia.com

GeneralRe: Couple of things Pin
NikhilJohari23-Aug-10 21:13
NikhilJohari23-Aug-10 21:13 
GeneralNice topic Pin
Md. Marufuzzaman23-Aug-10 3:19
professionalMd. Marufuzzaman23-Aug-10 3:19 
GeneralRe: Nice topic Pin
NikhilJohari23-Aug-10 21:14
NikhilJohari23-Aug-10 21:14 
GeneralRe: Nice topic Pin
Md. Marufuzzaman23-Aug-10 21:25
professionalMd. Marufuzzaman23-Aug-10 21:25 
GeneralLooks good... Pin
Sandeep Mewara23-Aug-10 1:07
mveSandeep Mewara23-Aug-10 1:07 
GeneralAlmost there Pin
Not Active22-Aug-10 3:45
mentorNot Active22-Aug-10 3:45 
GeneralRe: Almost there Pin
NikhilJohari23-Aug-10 21:15
NikhilJohari23-Aug-10 21:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.