-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: PKSPMR
Message 1 in Discussion

 
Hi, 
I am using asp.net 2.0 and sql server 2005 to create an app for my company. We 
have around 100 pages in the site. In most of the forms lot of controls toggle 
based on user. For example: our user can be internal or external.  
If the user is external: when the page loads, I need to determine which 
controls should be shown or hidden. Further, if user is external, I should show 
branch as text box by populating his branch name which I retrieve in Login 
page. 
If user is internal, I should show branch as drop down box by populating it 
with list of branches from which internal user picks branch.  
This kind of logic applies to lot of controls on a page and on lot of pages.  
One of my colleague was telling me to come up with matrix for  each page for 
user with toggling controls list with values and have  the data in database 
table and retrieve it once initially and later use it on pages instead of 
writting code on each and every page load like 
If (user == "External") 
{ 
       TxtBranch.Visible = true; 
       ddlBranch.Visible = false; 
        TxtCheck.Visible = true; 
} 
else 
If (user == "Internal") 
{ 
  TxtBranch.Visible = false; 
       ddlBranch.Visible = true; 
        TxtCheck.Visible = false; 
} 
I appreciate your suggestions on how to approach on this issue. 
Thanks, 
Prathiba

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to