如何获取一个表单来填充asp.net中的字段 [英] How to get a form to populate fields in asp.net

查看:70
本文介绍了如何获取一个表单来填充asp.net中的字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好。我试图看看是否可以使用我的数据库中的数据填充表单填充文本框字段。可以这样做吗?我正在寻找的是以用户身份登录并单击一个链接,该链接将我带到报告表单,并且报告表单已经从数据库中的表格中填写。根据用户登录的情况,表单是否可以根据用户显示不同的数据?就像我是ABC公司的首席执行官一样,我希望看到ABC报告,它会出现。或者我是XYZ公司的首席执行官,它将展示XYZ公司的报告。所有这些都可以在一个表格上发生吗?

Hello. I am trying to see if I can get a form to populate the textbox fields with data from one of my database. Can this be done? What I am looking for is to login as a user and click on a link that will take me to a report form and the report form will already be filled out from the data from the database for that form. And depending on which user logsin, can the form display different data depending on the user? Like if I am CEO of ABC Company and I want to see ABC report it will show up. Or I am CEO of XYZ company it will show XYZ company report. Can all of this happen on one form?

推荐答案

看看这里:

如何:实现自定义安全对象(用户,角色,操作权限) [ ^ ]

如何:为ASP.NET 2.0应用程序创建服务帐户 [ ^ ]

使用ASP.NET MVC进行自定义授权 [ ^ ]

http://stackoverflow.com/questions/2296988/c-asp-net-custom-permissions-to-perform-specifc-action [ ^ ]



CodeProject知识库:

使用自定义安全模块扩展基于ASP.NET角色的安全性(基于权限,页面级授权) [ ^ ]

< a href =http://www.codeproject.com/Articles/401015/Create-Custom-Permission-in-Object-Level>在对象级别创建自定义权限 [ ^ ]

创建DotNetNuke具有自定义权限的模块 [ ^ ]

ASP中的权限和级别:菜单 [ ^ ]

允许ASP.NET访问您的资源 [ ^ ]

流失客户tom会员,角色提供商,网站管理工具和基于角色的单个文件访问 [ ^ ]



享受阅读;)
Have a look here:
How to: Implement Custom Security Objects (Users, Roles, Operation Permissions)[^]
How To: Create a Service Account for an ASP.NET 2.0 Application[^]
Custom Authorization with ASP.NET MVC[^]
http://stackoverflow.com/questions/2296988/c-asp-net-custom-permissions-to-perform-specifc-action[^]

CodeProject Knowledge Base:
Extending ASP.NET role based Security with Custom Security Module (Permission Based, Page Level Authorization)[^]
Create Custom Permission in Object Level[^]
Creating a DotNetNuke Module with Custom Permissions[^]
Permissions and Levels in ASP:Menu[^]
Allow your ASP.NET to Access your Resources[^]
Custom Membership, Role Providers, Website administration tool, and Role based access to individual files[^]

Enjoy reading ;)


这篇关于如何获取一个表单来填充asp.net中的字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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