473,327 Members | 1,952 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,327 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 1325

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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.