我正在使用ASP.NET开发网站,我需要帮助 [英] I am developing Website using ASP.NET i need help

查看:69
本文介绍了我正在使用ASP.NET开发网站,我需要帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在使用ASP.NET开发网站,我在新用户注册页面上已经拥有手机号码文本,如果用户选中该复选框,则我有一个复选框,这意味着该手机号码值不应显示在gridview中,而是将其设置为s个人我不会显示给其他人,但这是什么问题,这意味着如果注册他的用户也无法在gridview中看到他/她的手机号码,它将显示为个人.如果用户选中此复选框,则意味着登录的其他人应该需要查看其手机号码,这意味着其他人将无法看到该手机号码...

请有人帮我编码循环.

Hi all,

I am developing Website using ASP.NET , i have on New user registration page i that i am having mobile number text i have one check box if the user select on the checkbox means the mobile number value should not display in gridview i set it s Personal i won''t display to others but what is the issue means if the user who register he also not able to see his/her mobile number in gridview it displays as personal. Who login in they should need to see their mobile number if the user select the checkbox means others not able to see it...

Please some one help me how to code loop.

推荐答案

当用户填写表格并选择我的手机号码时.如果是个人用户,则使用数据库中的字段,例如"P"为个人"或"N"为非个人.根据复选框的选择.
如果用户登录名和该用户的登录ID相匹配(如果两者相同),则显示手机号码.否则,如果其他人登录的ID与ID不相同,则根据显示或隐藏的编号匹配状态.
尝试这种方式.
when user is filling the form and select my mobile no. is personal then use a field in database like status ''P'' for Personal or ''N'' for not-personal. according to the selection of check box.
when user login and match id of that from he has logged in if both are same then show the mobile number. else if anyone else logged in and id are not same then match the status and according to that show or hide number.
Try in this way.


如果用户已选择手机号码作为个人号码,则在登录时,将登录ID保存在会话和网格中,并将登录ID绑定为列.
在显示时,请检查带有网格列(用户ID)的登录ID(如果相同),然后显示手机而不是不显示.
if user has selected mobile no as personal then at time of login, save login id in session and in grid, bind login id as a column.
at time of display check login id with grid column (user id) if same then display mobile no other than not display.


这篇关于我正在使用ASP.NET开发网站,我需要帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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