Click here to Skip to main content
15,889,216 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi guys,
I have a task main functionality is checking the user's age at background and display perticular feature( a clickable link) in front end...

I did all the backdroundstuff and now I have to dispaly this link to user. What is the best way that I can present that link to end user.

Thing is if he is under 18 then there is link display.

Briefly I have to control that link display based on user's age

ASP.Net and C#.Net I am using I can use Java script aswell


Please suggest me a good way..

Thanks
Posted

1 solution

C#
if( age < 18 )
 lnk.visible = true;


JavaScript
if( age < 18 )
  document.GetElementById("lnk").style["display"] = "visible";
 
Share this answer
 
v2

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