CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > microsoft_downloads.css_friendly_control_adapters Tags:
Item Type: NewsGroup Date Entered: 1/15/2007 11:39:03 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 24 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
oalexandrino
Asp.Net User
Error on TreeView: would be it a bug?1/15/2007 11:39:03 PM

0/0

I've tried the TreeView in a project template with CSS Friendly.

Here is the very simple code:

 <asp:TreeView ID="employeeTreeView" runat="server" ShowLines="True"></asp:TreeView>

There is a code in Page_Load method that populates the componet above.

After it, it's automatically called the method

protected

override void OnLoad(EventArgs e)

on

public class TreeViewAdapter

 after it, it's called

private

string ExpandToState

 and an error is got inside it!

it is as follows:

System.IndexOutOfRangeException was unhandled by user code
  Message="O ?ndice estava fora dos limites da matriz."
  Source="App_Code.z3zjkoru"
  StackTrace:
       em CSSFriendly.TreeViewAdapter.ExpandToState(TreeNodeCollection nodes, String state) na d:\sites\estudo\aspx\asp.net.2.0\DataBaseAccessing\App_Code\Adapters\TreeViewAdapter.cs:linha 681
       em CSSFriendly.TreeViewAdapter.OnLoad(EventArgs e) na d:\sites\estudo\aspx\asp.net.2.0\DataBaseAccessing\App_Code\Adapters\TreeViewAdapter.cs:linha 177
       em System.Web.UI.Control.LoadRecursive()
       em System.Web.UI.Control.LoadRecursive()
       em System.Web.UI.Control.LoadRecursive()
       em System.Web.UI.Control.LoadRecursive()
       em System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

what's the problem?

 

Regards!

Russ Helfand
Asp.Net User
Re: Error on TreeView: would be it a bug?1/16/2007 4:57:44 PM

0/0

This is an interesting problem.  It sounds like a bug.  Let's try to figure out what's going on and develop a fix that you can use right away.

I've looked over the code and I'm still confused how you could have gotten into this state.  Let me ask a few very direct questions:

  1. Does your page crash when it loads the first time?  Or, it the crash only happening when the page posts back?
  2. Does your code behind (Page_Load method) set the tree's ShowExpandCollapse property?  (It might be helpful to see some of you code from Page_Load.)
  3. Is the tree expanded at all (via the code in your Page_Load)?

Sorry that I don't have an immediate answer for you (just lots of questions). Hopefully if I can get a bit more data I can help later today.


Russ Helfand
Groovybits.com
akjoshi
Asp.Net User
Re: Error on TreeView: would be it a bug?1/16/2007 5:29:22 PM

0/0

I would like to add one more point to what Russ asked -

4.Can you translate what this message is

 System.IndexOutOfRangeException was unhandled by user code
  Message="O ?ndice estava fora dos limites da matriz."


Aj
Russ Helfand
Asp.Net User
Re: Error on TreeView: would be it a bug?1/16/2007 7:52:43 PM

0/0

The message is saying that an index is out of the allowable range.  I believe this is happening when the following line is executed in the TreeVIew adapter:

bool bExpand = (state[0] == 'e');

The variable "state" is a character string from which I'm trying to get the zeroth (first) character... in order to determine if it is the letter "e."  However, if "state" is empty (no length) then it isn't legitimate to access its first letter.  If you try (like I do in the statement above) and the string is empty you get the message shown in this posting (albeit in the appropriate language for you).

The question then hinges on why "state" ended up not having any characters in it.  Normally, such is not the case... or at least I certainly didn't anticpate that that would happen at that point in the code.  So you need to look upward in the code to see how "state" gets established before being passed to this method (that is the one that's crashing).  That analysis led to the questions I was asking earlier.

Nonetheless, I'd prefer that the author of this posting add a direct translation of this error message, too, since my linguistic skills are certainly limited and suspect! Meanwhile, interested readers might want to go to http://translate.google.com/translate_t, enter the phrase we want translated and choose (from the dropdown) that you want the translation between "Portuguese to English."  This approximation yields a translation of "The index was of the limits of the matrix."


Russ Helfand
Groovybits.com
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
ASP.NET 2.0 Instant Results Authors: Imar Spaanjaars, Paul Wilton, Shawn Livermore, Pages: 456, Published: 2006
Surviving Security: How to Integrate People, Process, and Technology Authors: Amanda Andress, Pages: 528, Published: 2003
What's New in Visual FoxPro 8.0 Authors: Tamar E. Granor, Doug Hennig, Jim Slater, Pages: 200, Published: 2003
The Definitive Guide to Securing Windows in the Enterprise Authors: Don Jones, Pages: 216, Published: 2005
Advanced Controlling mit Excel: Unternehmenssteuerung mit OLAP und Palo Authors: Bernd Held, Bernd Held, Hartmut Erb, Hartmut Erb, Pages: 414, Published: 2006
Visual Basic 6 Complete Authors: Steve Brown, Pages: 1040, Published: 1999
A Programmer's Introduction to C# 2.0 Authors: Eric Gunnerson, Nick Wienholt, Anders Hejlsberg, Pages: 529, Published: 2005
Professional Visual Studio 2005 Team System Authors: Jean-Luc David, Tony Loton, Erik Gunvaldson, Christopher Bowen, Noah Coad, Darren Jefford, Pages: 700, Published: 2006
Microsoft ADO.NET Step by Step: step by step Authors: Rebecca Riordan, Pages: 512, Published: 2001

Web:
Error on TreeView: would be it a bug? - ASP.NET Forums Did anyone has the solution for this?? I also got this error. I have populated my Tree view control with database values. ...
Error on TreeView: would be it a bug? - ASP.NET Forums Error on TreeView: would be it a bug? Last post 04-16-2008 11:57 AM by CsharpAsp .net. 5 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
'Bug#2347: marked as done (Konqueror: Error switching out of ... [prev in thread] [next in thread] List: kfm-devel Subject: Bug#2347: marked as done (Konqueror: Error switching out of Directory Tree view) From: owner ...
BUG: Error Message 438 with the For Each Statement in TreeView Control When you use the For Each statement to go through each node in the Nodes collection of the TreeView control, you encounter the following run-time error ...
Bug #19599 in nautilus (Ubuntu): “Files in Tree view cannot be ... See also bug #19598. Nautilus version: 2.10.0-0ubuntu9. PS. These bugs seemed so closely related that i felt it would be OK to list them in one report. ...
Error on Switching to Tree-View of Forum Groups with Users Sharing ... Is this registered as a bug? It seems to still be there in CS 2.1 Beta 1. I get a similar error trying to go to Tree View although no users ...
LibreSource - Children tree view error Type : BUG. Reporter : maximeca. Assignee :. Sebastien Jourdain ... Children tree view error. In a wiki page, if I include the following macro: ...
'Bug#2347: marked as done (Konqueror: Error switching out of ... [next in thread] List: kde-bugs-dist Subject: Bug#2347: marked as done ( Konqueror: Error switching out of Directory Tree view) From: owner () bugs ! kde ...
Keywords: [bug] A bug fix [new] A new feature or addition [imp] An ... 1.12 [bug] Fixed a bug introduced in 1.11 where tree-view duplication would fail . [bug] Fixed a crash bug with the sort feature, on sorting attributes. ...
News Fixed bug that would cause directory monitoring to stop working under certain .... Bug fixes: - Greater amount of error checking added to treeview control. ...




Search This Site:










slowness how to remove

want my gridview to fit all screen resolutions

cssfriendly menu uses pop-up for target=_blank

help

whats wrong with the asp.net css friendly web site template????

css menuadapter

aspmenu adapter ie problem with fckeditor

transparent menu items

problem with dynamicitemtemplate in css friendly menu

menu adapter with sitemap doesn't fire onclick

how do i make only one control to use css adapters

gridview center certian columns?

cssadapters and moss and another question.

beta 3: menu not firing menuitemclick event

[bug] setting cssclass in a gridview rowdatabound event is ignored

emptydatatemplate does not render with gridview

why does adapter class invoked on startup without doing anything?

pager template in gridview

gridviewadapter beta 3.0 with added support for cssclass, clientid, headerstyle-cssclass, row.cssclass, row.attributes

add assembly to web.config file

menu: selectedstyle of parent node

z-index

plz i need your urgent help .

menu adapter headache - !important, centering, separatorimageurl

menuadapter with a variable size

problems with registration control

sharepoint 2007 and menu adapter: selected page missing

detailsview with dropdownlist template field

wai accessibility and javascript (not ajax-related)

.browser file is not read anymore (iis broke?)

  Privacy | Contact Us
All Times Are GMT