473,466 Members | 1,470 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 1338

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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
1
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.