Click here to Skip to main content
15,911,786 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Friends Hi,
I am using tool tip on my signUp page's controls...

now my client ask to me.that please show one button on the page.
with me help on/ help off.

if user click on help on then it show the tool tip on controls

and when he press off help

then the tool tip help get off.


and next time when my user come on other screen.

i need to get remember that at last login time.

which option he choosed.

because i am using tool tip on my other pages also.

if my user first time select help on.

then i need to get remember and for next time i on the help option for him

till that time when he press help off.

please guaid me in right direction

regards,

Rana Rumeel
Posted

1. save this option value in database and in session.
2. use this session value in all other forms. 3.when user relogin than get this option value from database and set this value to session.
4. now do same as step 2.
 
Share this answer
 
Comments
prince_rumeel 19-Jun-12 7:45am    
bro if you dont mind can u show me a little example with code?


and please guaid me that how can i on the tool tip on the session variable of the button click?

i want to open dev-express popup controls
Hi,

You can use a function in your aspx.cs file which will store the tool tip strings . As suggested above you can save this in Database / Cookie and session.
When ever any users logs in you can fetch this flag (show / no show) to call this function which sets tooltip property of all controls.

C#
if(ShowFlag)
{
  SetTootips();
}


Your SetTooltips should be like this

C#
private void SetTootips()
{
  TextBox1.ToolTip = "Blablabla";
  TextBox2.ToolTip = "Blablabla";
  TextBox3.ToolTip = "Blablabla";
  Button1.ToolTip = "Blablabla";
  Button2.ToolTip = "Blablabla";
  Image1.ToolTip = "Blablabla";

}


As an UI suggestion, you can use a link button on your master page, so that user can set this option on and off at any time.
 
Share this answer
 
Comments
prince_rumeel 19-Jun-12 8:01am    
bro i am using dev-express popup control in place of tool tip

here is my code

<dx:ASPxPopupControl ClientInstanceName="ASPxPopupHintClientControl" SkinID="None"
Width="500px" ID="pcHint" runat="server" EncodeHtml="False" EnableViewState="False"
PopupHorizontalAlign="OutsideRight" PopupVerticalAlign="TopSides" ShowHeader="False"
EnableHotTrack="False" PopupHorizontalOffset="1" PopupAction="None" CloseAction="CloseButton"
PopupVerticalOffset="-10" EnableHierarchyRecreation="True">
<windows>
<dx:popupwindow name="Email" text="Enter in your primary email address as your User ID. We will send you a confirmation email to this email address, so please make sure to type it correctly."
="" popupelementid="txtEmail">
<contentcollection>


and this is the properties control of popup control

<contentstyle backcolor="#FFFFCC" forecolor="#9999CC">
<Paddings PaddingBottom="12px" PaddingLeft="14px" PaddingRight="14px" PaddingTop="8px" />
<border borderwidth="0px">

<contentcollection>
<dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">


<border borderwidth="1px">



and on my control mean to say of the focus of my text box.i am getting popup using this code

<asp:textbox id="txtrePassword" TextMode="password" tabIndex="3" runat="server"
MaxLength="15" Width="190px" CssClass="txtbox" onblur="SetHintVisible('RePassword', false);" onfocus="SetHintVisible('RePassword', true);" ToolTip=" ">



so now help me that how can i on or off the button on my master page???

how i can on or off the popup control option on the user requirement..
Hi,

Well, If the user wants that, the HELP ON /OFF to be remembered for that user session, you can save the value in session, and based the session value, you must show/hide the tool tips.

Ex.
Session["ToolTip"]=True; or
Session["ToolTip"]=False;

if it is permanent store untill user clicks the other option, then you must save that in database, and get that value in Page_Load, and show or hide accordingly.

And on click of the button. you can eable or disable using jquery.

check these links.

Google[^]

http://stackoverflow.com/questions/10968785/qtips-how-do-i-disable-all-tooltips-on-a-page-with-a-click-function[^]

http://stackoverflow.com/questions/7099119/how-do-enable-tooltip-on-dynaically-added-code[^]

Hope it helps.
 
Share this answer
 
Comments
prince_rumeel 19-Jun-12 8:04am    
bro i am using popup control

you can see above my code also plz

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900