-
Archives
-
Meta
Category Archives: 技术研究
asp.net 2.0中扩展login控件
asp.net 2.0中,login登陆控件是个不错的选择,但有时需要扩展该控件,比如,在一个OA系统中,有时要选择登陆的用户所在的是集团的哪一个子公司,这样,除了用户名,密码外,还需要有个dropdownlist,设置为该集团的所有子公司名,象这样应该如何实现呢? 我们可以首先选择login control,并且将其转换为模版列,在其中加上一个dropdownlist,如下: <asp:Login ID="Login1" runat="server" OnLoggingIn="Login1_LoggingIn"> <LayoutTemplate> …. <asp:DropDownList id=”companies” runt=”server” …> …. </asp:DropDownList> …. </LayoutTemplate> </asp:Login> 然后在login控件的Authenticate事件中,写入如下代码: protected void Login1_ Authenticate (object sender, AuthenticateEventArgs e) { string company: … Continue reading
Posted in 技术研究
Leave a comment
aspnetdb.mdf数据字典
表名:aspnet_Applications说明:保存应用程序信息 字段名 类型 属性 说明 ApplicationName nvarchar(256) 应用程序名 LoweredApplicationName nvarchar(256) 小写的应用程序名 ApplicationId uniqueidentifier PK 应用程序的id, GUID值 Description nvarchar(256) nullable 应用程序的 描述 表名:aspnet_Paths说明:路径信息 字段名 类型 属性 说明 ApplicationId uniqueidentifier FK: appnet_Applications.ApplciationId 应用程序Id PathId uniqueidentifier PK 路径Id Path nvarchar(256) … Continue reading