I have a repeater control which displays text using the following code:
[Code]....
What i am trying to do is, i want to limit the total length of text displayed to, lets say 150 characters, how and wat code can i use to achieve this task
I've built a TreeView in ASP.NET 3.5 and it works great, except the expand and collapse images (which are 20px by 20px) do not align properly with the text in the nodes. Below is a screen shot of the applicable tree, with all items selected to allow you to see where the items are lined up. I need the text to be vertically centered (by one means or another) so it lines up with the center of its expand/collapse image.
I've tried numerous tricks to make this happen, including CSS, but can't seem to find the right technique.
Is it possible to get the unique URL of an expanded treeview node? I need to be able to send the URL to someone and he should be able to navigate to that particualr node from the URL.. so I guess I need to somehow use a query string with the treeview control?
I have a question that is very simple to answer, I have a treeview control populated by a sitemap file, what I want to do is to assign a different image to each node/leaf of the control, let me explain a little bit more, this what I have in my sitemap file:
[Code]....
So I know that a different image can be placed for root, parent, leaf and node on the code, but I want a different image for each leaf in the treeview... I know that the easy way to do what I want is to edit/add nodes in the control BUT I populated the control from a sitemap file, so is there a way to put a different image in each leaf of a treeview control being populated from a sitemap file?
if tree node does not have tag property like windows treeview control then i just want to know how could i attach the tag property with each tree node.
I have a treeview which will be generated dynamically which need to be displayed on left side and when user clicks on a node it need to open a page on the right side of the same page. and each node has different aspx page. so whenever user selects a node the page details should be displayed on the right side .we can use an iframe on the page which will display the different pages clicked on the node.Is there any alternative i can use to display different pages based on the user selection on the right side without using iframe.
I have a treeview control where I am dynamically selecting a node depending on user interaction. when a node is selected I want to be able to have the scrollbar go to the location of that selected node in the tree. The scrollbar is simply made by overflow:auto in the div tag where the treeview is located.
I want to know how Can I check the checkbox of a asp.net tree view node ( it can be either parent or child) based on matching a condition from the code behind?First Im getting all the nodes from the database. After that I want to check the checkbox corresponding to the ID which that user is a part of.
I'm trying to get my treeview control to work where a user clicks on a parent node. The node will expand.Then, the user clicks on another parent node and that node expands while the previous parent node stays expanded. My problem is that when I expand one parent node, another expanded parent node collapses.What am I doing wrong?
I've been using hardcoded hyperlinks for my web app navigation, but the app has grown since and managing it is becoming a real pain. I've decided to replace what I have with the TreeView control, however I want to make several changes to the way it looks. Is there any property that needs to be set, that would allow user to expand the TreeView node by clicking its text instead of +/- ? I've already set ShowExpandColapse to 'false'. I want my final result to end up as something similar to the TreeView on the left of the MSDN site.
I am experiencing an issue with the TreeView control when loading new pages. It is databound to web.sitemap, but when loading a new page, it does not select the node of the current page, just resets it to the root. THe new page loads fine, just not preserving the current navigation in the tree view.