|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Dynamically show different web controlsHi Experts,
I am trying to create a web form insert a record into Microsoft Access database. In my web form I'll have a dropdown list. Let say my dropdown list will have 4 available options (New User, Others, Network). When I chose "New User" I want my form to show a group/list of controls different from the option "Others" and "Network". Am I able to program the web form in this kind of situation? Please advise. Many thanks in advance. Rgds, SB Hello:
You can make a panel in your page, and make this panel invisible. You can add a subPanel in the invisible panel. So you add the controls you want to dynamiclly show in the subPanel. At last, you can add the subPanel into the page in the Page_Load function. "Bobby" <newcarcr***@gmail.com> wrote in message Suppose you want to dynamically load many different controls fro an news:1136535882.288237.263760@z14g2000cwz.googlegroups.com... > Hello: > You can make a panel in your page, and make this panel invisible. > You can add a subPanel in the invisible panel. So you add the controls > you want to dynamiclly show in the subPanel. > At last, you can add the subPanel into the page in the Page_Load > function. everchanging collection. Is ther no way to do this truely dynamically as discussed in my postings in the thread "Dynamically load webcontrol"? Kind Regards, Allan Ebdrup By using the Visible property of any control (including the Panel) you can
determine whether the control is rendered or not. So if you have 3 panels on the page you can set their Visible property to false and only change this value to true for the panel that corresponds to the dropdownlist selection. Show quoteHide quote "Seok Bee" wrote: > Hi Experts, > > I am trying to create a web form insert a record into Microsoft Access > database. In my web form I'll have a dropdown list. Let say my dropdown list > will have 4 available options (New User, Others, Network). When I chose "New > User" I want my form to show a group/list of controls different from the > option "Others" and "Network". Am I able to program the web form in this kind > of situation? > Please advise. > > Many thanks in advance. > > Rgds, > SB
Disable Button after click it
How to deselect item on single select listbox? I really need to get this working...... Where in the viewstate is a GridView's rows? Dynamically load webcontrol dropdownlists, their items and viewstate WebControl Click Event Not Firing HTML editor for Safari browser Clearing textbox controls after postback DynamicMenuItemStyle override style (cursor:text) |
|||||||||||||||||||||||