HTML Controls from vb.Net DLL

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jan 2008
Posts: 9
Reputation: CornerAnalyst is an unknown quantity at this point 
Solved Threads: 1
CornerAnalyst CornerAnalyst is offline Offline
Newbie Poster

HTML Controls from vb.Net DLL

 
0
  #1
Jun 6th, 2008
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
Reply With Quote Quick reply to this message  
Join Date: Apr 2007
Posts: 439
Reputation: Fungus1487 is on a distinguished road 
Solved Threads: 50
Fungus1487's Avatar
Fungus1487 Fungus1487 is offline Offline
Posting Pro in Training

Re: HTML Controls from vb.Net DLL

 
0
  #2
Jun 8th, 2008
System.Web.UI.HtmlControls
When Autumn Falls [ http://www.whenautumnfalls.co.uk ] &&
Designdotworks [ http://www.designdotworks.co.uk ] Web / Graphic / Software Design
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 9
Reputation: CornerAnalyst is an unknown quantity at this point 
Solved Threads: 1
CornerAnalyst CornerAnalyst is offline Offline
Newbie Poster

Re: HTML Controls from vb.Net DLL

 
0
  #3
Jun 13th, 2008
Originally Posted by Fungus1487 View Post
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 :

  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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the ASP.NET Forum


Views: 1718 | Replies: 2
Thread Tools Search this Thread



Tag cloud for ASP.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC