473,395 Members | 1,891 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.

Windows Control in Webpage Problems

I am not sure this belongs to C# group but as I could not get a respond I
wondering anybody here could help me

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 16 '05 #1
0 1238

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

Similar topics

1
by: fredy | last post by:
how to display a webpage in windows forms, i'm writing a windows forms app. how can i display a webpage without having to write a web application???
0
by: Netsharp Ninja | last post by:
I am not sure this belongs to C# group but as I could not get a respond I wondering anybody here could help me Hello All, I am trying to develop a windows control to use in ASP.NET page. I have...
0
by: Inigo Jimenez | last post by:
I have an ASP .net web application installed in a Windows 2003 server. This web application has a webform that has a Datagrid with smartnavigation enabled. In this webpage I have a button that...
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...
44
by: Viken Karaguesian | last post by:
Hello all, On occasion I want to open hyperlinks (images, etc.) in a new window. In the past, I've used target="_blank" to open the link in a new window. However, using the "target" attribute...
6
by: Boris | last post by:
Has anyone ever managed to read a Windows registry key in a PHP webpage? I installed the PHP extension win32std and saved their sample script from...
0
by: gxl034000 | last post by:
Hi, I have been trying to use a .net Forms control in my webpage to open up an application(notepad) on the client. The control works fine when embedded in a windows form, but I keep getting a...
3
by: arun.hallan | last post by:
Hi, I'm having problems with authentication. I have a set of users that are allowed to use a webpage. They are in domain A. My goal is to get the username of these users and then check them...
3
by: sonicwrx | last post by:
Am I missing something? I have a form with a browser control and a button. The code under the button is: private void btnGo_Click(object sender, EventArgs e) { wbScrape.Navigate(@"http://...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
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
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,...

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.