Forum  General Visual ...  Announce It! ( ...  ASP.NET wrapper Control Bug
Previous Previous
 
Next Next
New Post 12/12/2008 1:39 PM
Unresolved
  omirza
24 posts
No Ranking


ASP.NET wrapper Control Bug 

Hi All,

I am trying to wrap an asp.net HtmlTable.

GizmoxHtmlTable tbl = new GizmoxHtmlTable ();

1. if I want to add rows to the table, I get an "object reference not set to an instance  of an object" exception:

           tbl.Rows.Add(htmlTableRow); // the Rows property is null. Take note that the Add method here accepts only asp.net html rows

2. If I want to search for controls in the table,  tbl.Controls.Find("controlName") , the return value of the Find method is an array of Gizmox controls. However, the GixmoxHtmlTable only allows me to add ASP.net html rows and cells and thus asp.net controls in the rows and cells.

 
New Post 12/14/2008 7:49 AM
  dror.shahak
302 posts
3rd Level Poster




Re: ASP.NET wrapper Control Bug 

Hi,

You have some misconceptions.

Wrapped asp.net controls are asp.net entirely. We simply give the control it's expected asp.net environment. There are no VWg components in it.

As for your questions:

1.You should add asp.net rows (HtmlTableRow), cells etc..

2. You have a colision of properties. In asp.net there is no function find as you describe it. The reference to the cells and their functions, for example, is HtmlTable.Rows[0].Cells ...

 

In short, you should make sure you understand the concept as you are prone to code incorrecly and comfuse VWG with asp.net.

The ASP.NET Wrapper is a powerful tool and it's worthwhile to learn how to use it.

Good luck and don't hesitate to ask further, We are here for you.

 

Thanks,
Dror Shahak
The Visual WebGui Team
 


Dror Shahak, The Visual WebGui Team
 
Previous Previous
 
Next Next
  Forum  General Visual ...  Announce It! ( ...  ASP.NET wrapper Control Bug
Azure banner
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS