What Is The Best Way To Display A Hierarchy Of Choices In A Forms Application
Sep 13, 2010
I am working on an ASP.net Forms Application that keeps track of information about different offices in an organization. The offices are organized into a hierarchy.
Some users of the program will have access to certain information about all offices in the hierarchy. Some users of the program will have access to only a small part of the hierarchy.
When a user browses for information they are authorized to see, I would like to present the user with a prompt to choose which office in the hierarchy they wish to see information from.
I want to accomplish the following:
A) I want the user to be able to easily navigate the hierarchy of the organization to locate a specific office.
B) I want the user to be able to navigate the hierarchy without refreshing the page.
C) I want my interface to be able to handle a hierarchy at least four layers deep with less than 100 nodes.
I see that Microsoft includes a TreeView control in the standard collection of ASP web controls.
View 3 Replies
Similar Messages:
Oct 7, 2010
I need to display data in GridView with Multileve hierarchy same like Treeview.
View 5 Replies
Mar 8, 2010
Trying to figure out how to programmatically access the web pages in the application. Just something simple like a list of them would be awesome. I know I can create a list but I was wondering if there was something that could 'look' at the pages and add a new one to the list if you make a new page for the application.
Example with 7 pages:
Error
Default
Login
Content
Users
ContactUs
Admin
I am half awake so I may be a little unclear. Maybe puting it all in a single question will be easier.
How do you autogenerate a list of all webpages in your current application?
View 1 Replies
Mar 18, 2010
I'm using a custom sqlsitemapprovider to get my site hierarchy out of the database and display my navigation. Now, I have the following main (parent) nodes:
Home - Products - News. What I want to achieve is this, suppose you click on products then a subnavigation appears like this:
productGroup1,productGroup2, productGroup3.
But when you click products, no selection was made from the subnavigation, how would I achieve that if someone clicks on products, the
first product with content from the first productGroup1 shows up?
To visualize this: I click on Products -> Subnavigaton gets rendered -> PG1 - PG2 - PG3 -> page displays product1 of PG1
Is there as build in manner to accomplish this or how would one create a method to make this work?
P.S.:For my navigation, I'm not using any build in navigation controls, I'm rendering my menu as an html unordered list e.g: <ul><li></li></ul>
View 1 Replies
Jan 6, 2011
I need populate a TreeView control to display Hierarchy Data from a DataBase.
The Hierarchy Order has been dictated by a Column, in my DB called "CategoryNodeString" and "CategoryNodeLevel".
/ = Root
Example:
CategoryId CategoryNodeString CategoryNodeLevel
1 / 0
2 /1/ 1
3 /2/ 1
4 /1/1/ 2
5 /1/2/ 2
6 /1/1/1 3
Can you provide me a sample of code to start?
View 1 Replies
Nov 9, 2010
I have a general question regarding usercontrols' parameters. In the built in web controls, such as the 'runat' parameter, when you begin to type 'runat' in Visual Studio, it gives you an Intellisense choice of 'server'. Or in the RequiredFieldValidator controls, the 'Display' parameter has 3 choices: Dynamic, None, and Static.
My question is, how do I incorporate this feature into my custom Usercontrols?
For instance, I created a usercontrol with a parameter called 'BorderColor'. This parameter will change a textbox's border color to the specified value. The possible values are: Blue, Red, Green, Black, Purple, etc. How do I have Intellisense display these choices when the BorderColor parameter is typed in?
View 2 Replies
Sep 3, 2010
I am using AppCode and have 6 arrays of information I want to display on my web page. However I only want three to be visible at any one time.
________________________________
| | | |
| | | |
________________________________
button button button
i.e. a table like the above.
I have created the layout and the choice buttons etc I am using querystrings to pass the changes to the webpage.
The problem comes however when trying to write the code for the table diplay. Now each has a slightly different layout.
My initial thought was to write a function within the aspx/html page for each table, then in each column of the master table one of the functions can be called to populate it. Each of the functions will contain the HTML tagging for that information. However I dont seem to be able to achieve this as when I try to right a sub or function it doesn't like it. I have also tried to write the functions into the code behing but again this didnt work.
View 1 Replies
Apr 28, 2010
Just trying to figure out a basic script for the following Contact Us form.
1.Name
2.Email
3.Phone
4.Directed to? (this would be a drop down menu of 3 or 4 different emails the info would be mailed to)
5.Comments
View 2 Replies
May 26, 2010
Alright, I am completely baffled by this one. When filling out this page in IE8, it will SOMETIMES clear all entered data (including radio choices) when you select Yes, No, or Not sure (line 892 in the code). This is a postback question, as it should potentially show more questions. This problem does not happen in any other browser, and rarely in IE8. I have no idea what is causing it, the code I am using has been used in similar applications and I can't find any change which results in this behavior.
The full code can be found here: http://pastebin.com/a12cPzyF
View 1 Replies
Jul 1, 2010
how to create Hierarchy Drop Downlist
View 8 Replies
Jan 13, 2011
I am using VS 2010 for developing asp.net application. we have a requirment to display 3 level hierarchy data into the server controls, how can I do this implementation. My data look like.
Reporting Divisions (1st Level)
Reporting Groups (2nd Level)
Reporting Units. (3rd Level)
Ex:
Division1 Description (1st Level)
Group1 N/A (2nd Level)
Unit1 Unit1 Description (3rd Level)
Unit2 Unit2 Description (3rd Level)
Unit3 Unit3 Description (3rd Level)
Group2 Description (2nd Level)
Division2 (1nd Level)
Group1 Description (2nd Level)
DivisionN Description
how to implement this? And user need to edit the "description" data from the controls also.
View 2 Replies
Aug 19, 2010
I,m having some issues with 3 user controls.heres the scenario.i have 3 UserControls: ctrA and ctrB and ctrC.the idea is: ctrC is collections of ctrB plus some minor info and ctrB is a collection of ctrA plus soe other minor info.ctrA is a simple control with 2 textbox and a label.u enter values on the textbox and the label shows the values multiplied by each other.ctrA is totally inside a updatePanel and when i drag-and-drop it on a custom-page or to ctrC it works just fine (notice that im breaking the disired hierarchy).but when i add it dinamically to ctrB (the correct hierarchy) its not working.the page is being posted back synchronously and worst,the controls desapear.like if they were never there.
View 3 Replies
Jun 14, 2010
I have a combo box that looks great in the designer, the list of choices are perfect. But when I view the ASP code, or the published webpage the choices are seriously garbled. I have tried adding items, but it does not seem to regenerate the code. Any ideas why it happened and what I should do? I do most of my editing through the designer GUI. Note the blank items and even items mixed up together: TVCricket
asp Code:
<asp:DropDownList ID="ddlFoundOut" runat="server"> <asp:ListItem Selected="True">(Pick how you found out about us)</asp:ListItem> <asp:ListItem>Another Store</asp:ListItem> <asp:ListItem>Banner at Arena</asp:ListItem> <asp:ListItem>TVCricket</asp:ListItem> <asp:ListItem>West NewsmagazineClear</asp:ListItem> <asp:ListItem>Driving By</asp:ListItem> <asp:ListItem>Friend/Co-worker</asp:ListItem> <asp:ListItem>Internet</asp:ListItem> <asp:ListItem>Mall Sign</asp:ListItem> <asp:ListItem>Online Phone Book</asp:ListItem> <asp:ListItem>Phonebook (paper)</asp:ListItem> <asp:ListItem>Radio</asp:ListItem> <asp:ListItem></asp:ListItem> <asp:ListItem></asp:ListItem> <asp:ListItem>Other</asp:ListItem> <asp:ListItem>Other Magazine</asp:ListItem> <asp:ListItem>Other News Paper</asp:ListItem></asp:DropDownList>
View 12 Replies
Dec 15, 2010
On this page: http://vucsyd.dk/kursus/web/TilmeldingEksamenTest.aspxe.g. student number: 10629 kan mark rows and make choices in dropdownlistsBy next visit i i would like the page to show earlier choises. Do i have to change everything or is there an easy option?Site code:
[Code]....
Stored procedure:
[Code]....
View 1 Replies
Sep 7, 2010
That out of the way, here's my situation: We are looking to port our existing classic ASP application to .NET, but we're unsure of what language to use for the new app.
I personally would 'prefer' C#, as I'm more familiar and comfortable with that languages way of doing things, but, the original code is VBScript, so it would possibly be easier to port to VB.NET ... One possible situation I fear would be that, because the code is so similar between the two variants of VB, that we might end up getting stuck on something that is not similar between the two, even though it looks like it would work. A shift to a wholly different language might avoid that kind of situation.
Does anyone have any practical examples of this kind of situation? Insights to illuminate the issue with? Do the potential benefits of a complete paradigm shift outweigh the gains from a high degree of 'copy-and-paste-ability' ?
View 9 Replies
Dec 3, 2010
I have a master page. This is where I put my ScriptManager control.I have a nested master page within the master page.I have a content page within the nested master page. This content page needs to register a Postback control with the ScriptManager, but I can't figure out how to access the ScriptManager. Both Master.FindControl() and Master.Master.FindControl() always return null. I also attempted to use a strongly typed master page, but like all controls, the ScriptManager is protected and thus inaccessible from the content page. How can I access the ScriptManager?
View 2 Replies
Sep 18, 2010
I am searching for a combobox like control but where a tree will be shown in the dropdown(instead of a list) and multiple choices have to be possible.
I have thought of implementing this [URL] in combination with a jquery dropdown button but it will be alot of work to get there.
View 1 Replies
Aug 14, 2010
i have Successfully binded the Schedular from Objects and its looking Good and the Following code has done that.i am using the Telerik Grid , but the implementation to the grid is the same as the Gridview. What i need is a guidance on how to bind hierachy grids from ojects or lists
[Code]....
Now with the same results i want to bind a Hierachy Grid as it Shows in my attached image. I am using EAE that means the is no Fixed Column name, so the Binding of the Grid Should be Dynamically.
View 2 Replies
Oct 13, 2010
I'm not expecting a full solution here (unless you really want to), just some tips and pointers.
I have a User table and an Area table. The User table has userID, userName etc., and the Area table has areaID, areaName etc.
I'm binding the list of Areas to a checkboxlist where the user MUST choose between 1-3 options. I'm using a stored procedure to update the DB.
Is there a common solution to this problem that I haven't found?
I have thought about saving it as a comma separated string in a field in the user table. This looks like a temporary and ugly solution though, do you think?
A nicer solution would be to create a UserArea table where I save the ID's as foreign keys from areaID and userID. But I don't know how to write this stored procedure where I update and insert the choices made.
View 5 Replies
Feb 21, 2011
I want to bind a field in a View to a property in a ViewModel. The object is "Program" and has the properties "Name" and "Level". So the user should be able to set the name of a program and the level of experience he/she has with this program.Program is a table in an Sql Server database, and is accessed through Entity Framework. So it would be easy enough to bind the Level property in the ViewModel to a textbox:
@Html.TextBoxFor(model => model.Level)
But I want a dropdownlist with a limited number of levels (1-5). So how do I do this and still have the dropdownlist bind to the ViewModel property?
View 1 Replies
Mar 1, 2011
If I want to be able to have a table Consultant, which is the user and their personal information, and I want this user to be able to select their proficiency in a number of Programs (software) on a scale from 0-5 (zero being no experience whatsoever), how do I do this best?
I mean I could have a Consultant table with a one-to-many relationship to a Program table, and then have all the limited Programs availalbe loaded by an XML file or something, and for each Consultant associate all the Programs and their Levels of proficiency. But that seems very wrong and inefficient.
It seems to me I should have a table with all the (limited number of) Programs, and then by some sort of association between the two by Ids. But I can't get my head around how to do this. I'm thinking many-to-many... But first, is this correct? Secondly, how do I do this in an Entity Framework Model? I usually create my database code first, i.e. create the EF model, and then generate database from model. Will I get a junction table where I can add the Level field, because basically a Consultant HAS A Program with a Level, or actually a list of Programs each with a Level.
View 1 Replies
Aug 19, 2010
I'm creating my first server control, and have it working where I can set up an enum and the user can set a property's choices, based off of that enum. But I'd like it to pull records from a database and populate the list of choices for the property from a database. This would allow me to add a new "Host System" to the database, and the other designers wouldn't have to get a new copy of the dll.
View 3 Replies
Feb 8, 2010
Say I'm currently in the code-behind of a root master page of the web site, and I need to know all the different master pages the page is going through to get to me. How do I do that?
this.Page does in fact give me a reference to the page. But when I get this.Page.Master, it seems to give me a reference to back to me even though I know other master pages are in between.
View 2 Replies
Oct 22, 2010
How can I maintain a 3 level heirarchy by using a gridview?
View 1 Replies
Jan 19, 2010
write a Subroutine that takes a parameter value of a Folder name on the server, then looks for all subdirectories beneath it and puts this hierarchy into a DropDownList?
So far I can't get the sub to work as it stuggles with the path structure and the obvious requirement to call itself.
View 3 Replies