473,387 Members | 1,493 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,387 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 1333

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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.