473,395 Members | 1,530 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Problem accessing WindowsControls in ASP.NET Pages

Hello All,
I am trying to develop a windows control to use in ASP.NET page.
I have seen the samples given by .NET Framework and trying to repeat the
same with my own pages.

I succeded half way but important part is still missing :(

Tried to use SimpleControl(.Net Samples
QuickStart/winforms/samplesWritingControls/SimpleControl..)

Created a solution called Test
Added a project called WinControl and added a new class item. Named it as
Simple
Now the Simple class is part of Test.WinControl name space All this control
does it paints itself to Yellow in the constructor.
This part works as I(everybody in the world probably :) ) tested it

Next I created a web application called IEDemo
in the default webpage webform1.asp I added the following to display my
control
<object height="500" width="300" id="Simple"
classid=http://localhost/../WinControl/bin/Debug/WindowsControl.dll#Test.Win
Control.Simple VIEWASTEXT>
</object>

and this fails to load(not showing control except that it draws a rectangle
with the size I specified)

I created a virtual directory called abc and pointed that to the
winControl/binDebug
and changed the above to

<object height="500" width="300" id="Simple"
classid=http://localhost/abc/WindowsControl.dll#Test.WinControl.Simple
VIEWASTEXT>
</object>
and it works like a charm. What is wrong in my code. I understand that it is
unable to find the Control but even to use a thrid party control in my
webpage what should I do if I get it as a DLL !!!??

Thanks for the help
programmer
Nov 18 '05 #1
0 1335

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Mauro | last post by:
Hi, I've a communication problem with my .NET web application and I need some suggestions. My application is composed of few ASP.NET pages running on a Windows 2003 Enterprise Server (.NET 1.1)....
0
by: Netsharp Ninja | last post by:
Hello All, I am trying to develop a windows control to use in ASP.NET page. I have seen the samples given by .NET Framework and trying to repeat the same with my own pages. I succeded half way...
1
by: Peter Rilling | last post by:
Past threads on Google do not offer much help or explanation, so maybe someone can offer a fresh perspective. I have a website that is installed on both a test and production environments. This...
4
by: reezaali | last post by:
Hi All, I wanted to set up my websites like this c:\websites\intranettemplate c:\websites\app1 c:\websites\app2 Basically I wanted to have the master pages defined in the template folder...
3
by: niju | last post by:
Hi there, I have three web pages (A,B,C). I need to prevent users accessing page B and C without accessing A. What would be the best way to achieve this rule? Many Thanks Niju
2
by: WisTex | last post by:
I've come across a very weird problem. Virtual includes work on all my ASP pages on the entire website, including those in subdirectories, yet they won't work on a particular page I created, even...
8
by: supasnail | last post by:
I have a happily working set of asp pages which read from the database via include file "./_private/include/database.mdb". However, when I try to gain access to this database on pages one folder...
3
by: judy.j.miller | last post by:
Does anyone know why i can't access a form element value using dot notation in firefox, when i'm in a function. Works ok in the body. I'm trying to do this: var FarTemp = faren.temp.value; I...
6
by: Shigun | last post by:
On a website I am working on I am trying to load another page into a div on the the page the user does his work from. What I have works correctly in FireFox, but not in IE. I've rummaged Google for...
2
by: brendan_gallagher_2001 | last post by:
HI I am developog an ASP.net site (using vb.net 1.1) which will be accessed by a number of different office locations, where certain users will be assigned a authoriser profile, and others will...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.