943,697 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 2717
  • ASP.NET RSS
Jun 6th, 2008
0

HTML Controls from vb.Net DLL

Expand Post »
I need to be able to perform the creation of HTML controls (i.e. Tables, form controls) from inside of a DLL in vb.Net

I have searched Goggle far and wide for what Import statement references the HTML objects.

Imports System.Web doesn't do it.

I would like to do something like:

Dim myTable AS Table <--- can do this in asp.Net

Does anyone know the Import or the Microsoft DLL that can be used to do this?

Thanks
Similar Threads
Reputation Points: 10
Solved Threads: 1
Newbie Poster
CornerAnalyst is offline Offline
9 posts
since Jan 2008
Jun 8th, 2008
0

Re: HTML Controls from vb.Net DLL

System.Web.UI.HtmlControls
Reputation Points: 66
Solved Threads: 56
Posting Pro in Training
Fungus1487 is offline Offline
459 posts
since Apr 2007
Jun 13th, 2008
0

Re: HTML Controls from vb.Net DLL

Click to Expand / Collapse  Quote originally posted by Fungus1487 ...
System.Web.UI.HtmlControls
Thanks for getting me started on it!!!

The actual manner to perform this is:

Create a (dll) reference to : System.Web

Then before the Class definition:
Imports System.Web.UI.HtmlControls

Then in the program code :

asp.net Syntax (Toggle Plain Text)
  1. Dim myTable As New HtmlTable
  2. myTable.ID = "ASDFADSF"
  3.  
  4. Dim myTR As New HtmlTableRow
  5. myTR.ID = "Whatever"
  6.  
  7. Dim myTD As New HtmlTableCell
  8. myTD.ID = "whatever"
Last edited by peter_budo; Jun 16th, 2008 at 9:53 am. Reason: Keep It Organized - please use [code] tags
Reputation Points: 10
Solved Threads: 1
Newbie Poster
CornerAnalyst is offline Offline
9 posts
since Jan 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: Is there a way?
Next Thread in ASP.NET Forum Timeline: im a begginer





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC