且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

需要高级登录功能帮助

更新时间:2023-02-18 11:55:40

那会很烦人,每次我想登录系统时都必须从许多不同的下拉菜单中进行选择?

选择用户类型",如果用户是医生",他的相关医生单位"-这是有关个人的所有信息,只需将其存储在数据库中即可.

用户只需输入用户名+密码即可登录系统.然后,您应该转到数据库并检索有关用户的信息,并采取所需的任何操作
That would be very annoying, every time I want to login to the system I have to select from lots of different drop downs?

''select the user type'', ''if the user is a doctor'', ''his relevant doctor unit'' - this is all information about an individual, just store it in the database.

the user should only have to enter username + password to login to your system. You should then go off to the database and retrieve the information about the user and take whatever actions you need to


如果我忘记了动态内容,它将真正保存下来时间,而是预先填充不可见的下拉菜单,并且仅在选择某些内容后才显示.

使下拉菜单可见,具体取决于其他用户的选定值,
在表单上创建一个下拉列表,将"AutoPostBack"属性设置为True,
在该下拉菜单的事件中,将代码放置在"SelectedItemChanged"事件或类似的
因此,当用户从该下拉菜单中选择一项时,
if i were u i''d forget the dynamic stuff, it wuddnt really save time, instead have invisible drop downs pre-populated and only show them if certain things are selected.

to make a dropdown visible depending on another''s selected value,
create a dropdown on your form, set the ''AutoPostBack'' Property to True,
in the events for that dropdown, place code in the ''SelectedItemChanged'' event or similar
so when the user selects an item from this dropdown,
if(DropDown1.SelectedItem.Text = "Surgeon")
{
    DropDownSurgeon.visible = true;
}


依此类推,对于每个下拉菜单,您将拥有一个下拉列表层次结构,该层次结构显示并隐藏基于先前选定项目的每个列表.

重定向到基于所选项目的url,其基本思路相同-
在上一个下拉列表中的on selected item changes事件中,您要放置2个case语句或一些if语句,


and so on, for each dropdown, then you''l have a dropdown heirarchy that show''s and hides each based on the previous selected item.

to redirect to an url based on a selected item its basically the same idea-
in the on selected item changed event for the last dropdown, your gonna hav 2 put a case statement, or some if statements,

if(DropDownFinalDrpDwn.selectedItem.Text = "SurguryScreen"){
 Response.Redirect("~SurgeryScreen.aspx");
}