如何向最终用户展示链接或充值 [英] How to present a link or top up to end user

查看:76
本文介绍了如何向最终用户展示链接或充值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我有一项任务主要功能是在后台检查用户的年龄并在前端显示垂直功能(可单击链接)...

我做了所有的backdroundstuff,现在我必须向用户显示此链接.将链接呈现给最终用户的最佳方法是什么.

如果他未满18岁,则显示链接显示.

简要地说,我必须根据用户的年龄来控制该链接的显示

我正在使用ASP.Net和C#.Net我也可以使用Java脚本


请给我建议一个好方法..

谢谢

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

推荐答案

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



JavaScript



JavaScript

if( age < 18 )
  document.GetElementById("lnk").style["display"] = "visible";


这篇关于如何向最终用户展示链接或充值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆