Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows control library in Internet Explorer

Status
Not open for further replies.

theweirdo

Programmer
Aug 7, 2002
17
CA
Hi there,

I'm trying to put a Windows control library that I created into a web page. The problem is when the page loads, I don't see anything, I just see a box where the control is supposed to be, but the control doesn't seem to load.

I tried putting this control library into a regular windows form, and it works fine... Anyone know what the problem might be?

The only thing I might see as a problem is that the control library has to connect to a database... But for now, both web server and database server are located on my local machine, so I just connect to the DB using Data Source=(local).

Thanks in advance!!
 
Did you derived the control from System.Web.UI.WebControls.WebControl ?
-obislavu-
 
Actually, I got it from System.Windows.Forms.TreeView... I'm now looking around and I see that there's a TreeView specifically for browsers at Microsoft.Web.UI.WebControls. Perhaps I should use that instead? I wonder if I can use it with a DataSet.
 
When a postback occurs on an event (since I want to dynamically load the data into the treeview based on which node the user clicks on), does the page reload? Is it possible to dynamically load the data into the treeview without having the page refresh?

Thanks.
 
I still want to know why my Windows User Control does not work. When I load the web page, I see a blank box. Here is the object tag that I used to embed it:
<object id="TreeView" height="40" width="500" classid=" VIEWASTEXT></object>

I'm sure all the files are in the right places.

I've changed the DB access to Trusted_Connection=No and set a user id and password. I don't know what else to do. Everything is on my machine (web server, db, files)

Thanks.
 
It seems that the problem was the application was having trouble connecting to the database. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top