473,396 Members | 1,917 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,396 software developers and data experts.

How to insert a c# web control into a web page (if I don't have II

Hi,

I am exploring c#. I want to reference a c# web control in a web page much
like you can with an activeX control. The syntax for doing this in ActiveX is
something like
<OBJECT ID="WKMapControl"
CLASSID="CLSID:9EA6DD6C-5858-4EC3-93D5-79B2863DF2CF"></OBJECT>

I can view this page and see the ActivX control even without a web server.

As I have not got IIS installed I cannot create an ASP project and drag and
drop the component on a web page. Can I do the same thing as above and if I
can what are the parameters for the object?

cheers

Tuckers

Nov 18 '05 #1
7 2701
ActiveX Controls are client-side. Server Controls are server-side. ActiveX
Controls in web pages are generally some kind of exectuable application on
the client that presents a Windows Forms interface to the user, while being
hosted in the browser user interface. Server Controls insert HTML into an
HTML document that is returned to a client by a web server. Therefore, there
is no connection between them. They have no relationship whatsoever, unless
you consider the word "Control" as part of the moniker to be a connection of
some sort.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
If you push something hard enough,
it will fall over.
- Fudd's First Law of Opposition

"Tuckers" <Tu*****@discussions.microsoft.com> wrote in message
news:66**********************************@microsof t.com...
Hi,

I am exploring c#. I want to reference a c# web control in a web page much
like you can with an activeX control. The syntax for doing this in ActiveX
is
something like
<OBJECT ID="WKMapControl"
CLASSID="CLSID:9EA6DD6C-5858-4EC3-93D5-79B2863DF2CF"></OBJECT>

I can view this page and see the ActivX control even without a web server.

As I have not got IIS installed I cannot create an ASP project and drag
and
drop the component on a web page. Can I do the same thing as above and if
I
can what are the parameters for the object?

cheers

Tuckers

Nov 18 '05 #2
I think Kevin miss-understood the question.

This link tells you most of what you need:

http://samples.gotdotnet.com/quickst...eSourcing.aspx

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:eK**************@TK2MSFTNGP09.phx.gbl...
ActiveX Controls are client-side. Server Controls are server-side. ActiveX
Controls in web pages are generally some kind of exectuable application on
the client that presents a Windows Forms interface to the user, while
being hosted in the browser user interface. Server Controls insert HTML
into an HTML document that is returned to a client by a web server.
Therefore, there is no connection between them. They have no relationship
whatsoever, unless you consider the word "Control" as part of the moniker
to be a connection of some sort.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
If you push something hard enough,
it will fall over.
- Fudd's First Law of Opposition

"Tuckers" <Tu*****@discussions.microsoft.com> wrote in message
news:66**********************************@microsof t.com...
Hi,

I am exploring c#. I want to reference a c# web control in a web page
much
like you can with an activeX control. The syntax for doing this in
ActiveX is
something like
<OBJECT ID="WKMapControl"
CLASSID="CLSID:9EA6DD6C-5858-4EC3-93D5-79B2863DF2CF"></OBJECT>

I can view this page and see the ActivX control even without a web
server.

As I have not got IIS installed I cannot create an ASP project and drag
and
drop the component on a web page. Can I do the same thing as above and if
I
can what are the parameters for the object?

cheers

Tuckers


Nov 18 '05 #3
ooops I mid read the question!(sorry Kevin) But in my defense I think the
asker asked the wrong question! ( to which i provided an answer!) %-)

But still check out the link it may be what you were after.


"AdrianJMartin" <Ad***********@newsgroups.nospam> wrote in message
news:ud**************@tk2msftngp13.phx.gbl...
I think Kevin miss-understood the question.

This link tells you most of what you need:

http://samples.gotdotnet.com/quickst...eSourcing.aspx

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:eK**************@TK2MSFTNGP09.phx.gbl...
ActiveX Controls are client-side. Server Controls are server-side.
ActiveX Controls in web pages are generally some kind of exectuable
application on the client that presents a Windows Forms interface to the
user, while being hosted in the browser user interface. Server Controls
insert HTML into an HTML document that is returned to a client by a web
server. Therefore, there is no connection between them. They have no
relationship whatsoever, unless you consider the word "Control" as part
of the moniker to be a connection of some sort.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
If you push something hard enough,
it will fall over.
- Fudd's First Law of Opposition

"Tuckers" <Tu*****@discussions.microsoft.com> wrote in message
news:66**********************************@microsof t.com...
Hi,

I am exploring c#. I want to reference a c# web control in a web page
much
like you can with an activeX control. The syntax for doing this in
ActiveX is
something like
<OBJECT ID="WKMapControl"
CLASSID="CLSID:9EA6DD6C-5858-4EC3-93D5-79B2863DF2CF"></OBJECT>

I can view this page and see the ActivX control even without a web
server.

As I have not got IIS installed I cannot create an ASP project and drag
and
drop the component on a web page. Can I do the same thing as above and
if I
can what are the parameters for the object?

cheers

Tuckers



Nov 18 '05 #4
So does this mean a c# web control is by its nature server side based?

"Kevin Spencer" wrote:
ActiveX Controls are client-side. Server Controls are server-side. ActiveX
Controls in web pages are generally some kind of exectuable application on
the client that presents a Windows Forms interface to the user, while being
hosted in the browser user interface. Server Controls insert HTML into an
HTML document that is returned to a client by a web server. Therefore, there
is no connection between them. They have no relationship whatsoever, unless
you consider the word "Control" as part of the moniker to be a connection of
some sort.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
If you push something hard enough,
it will fall over.
- Fudd's First Law of Opposition

"Tuckers" <Tu*****@discussions.microsoft.com> wrote in message
news:66**********************************@microsof t.com...
Hi,

I am exploring c#. I want to reference a c# web control in a web page much
like you can with an activeX control. The syntax for doing this in ActiveX
is
something like
<OBJECT ID="WKMapControl"
CLASSID="CLSID:9EA6DD6C-5858-4EC3-93D5-79B2863DF2CF"></OBJECT>

I can view this page and see the ActivX control even without a web server.

As I have not got IIS installed I cannot create an ASP project and drag
and
drop the component on a web page. Can I do the same thing as above and if
I
can what are the parameters for the object?

cheers

Tuckers


Nov 18 '05 #5
It sounds like what you want is a UserControl, which is a WinForms - based UI
control that is compiled as a dll. This is then hosted in the page also using
an OBJECT tag pointing to the dll.

I'd really discourage this however as handling the various security issues
with trust can be onerous. And of course, the .NET Framework must be
installed on the client machine.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Tuckers" wrote:
Hi,

I am exploring c#. I want to reference a c# web control in a web page much
like you can with an activeX control. The syntax for doing this in ActiveX is
something like
<OBJECT ID="WKMapControl"
CLASSID="CLSID:9EA6DD6C-5858-4EC3-93D5-79B2863DF2CF"></OBJECT>

I can view this page and see the ActivX control even without a web server.

As I have not got IIS installed I cannot create an ASP project and drag and
drop the component on a web page. Can I do the same thing as above and if I
can what are the parameters for the object?

cheers

Tuckers

Nov 18 '05 #6
Yes. It only really exists on the server. It renders HTML to the client. The
user interacts with the HTML, which then posts back information to the
server, where the classes are re-built, handle client-side events, perform
whatever is necessary, and then render HTML back to the client.

That is what ASP.Net is all about.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
If you push something hard enough,
it will fall over.
- Fudd's First Law of Opposition

"Tuckers" <Tu*****@discussions.microsoft.com> wrote in message
news:8C**********************************@microsof t.com...
So does this mean a c# web control is by its nature server side based?

"Kevin Spencer" wrote:
ActiveX Controls are client-side. Server Controls are server-side.
ActiveX
Controls in web pages are generally some kind of exectuable application
on
the client that presents a Windows Forms interface to the user, while
being
hosted in the browser user interface. Server Controls insert HTML into an
HTML document that is returned to a client by a web server. Therefore,
there
is no connection between them. They have no relationship whatsoever,
unless
you consider the word "Control" as part of the moniker to be a connection
of
some sort.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
If you push something hard enough,
it will fall over.
- Fudd's First Law of Opposition

"Tuckers" <Tu*****@discussions.microsoft.com> wrote in message
news:66**********************************@microsof t.com...
> Hi,
>
> I am exploring c#. I want to reference a c# web control in a web page
> much
> like you can with an activeX control. The syntax for doing this in
> ActiveX
> is
> something like
> <OBJECT ID="WKMapControl"
> CLASSID="CLSID:9EA6DD6C-5858-4EC3-93D5-79B2863DF2CF"></OBJECT>
>
> I can view this page and see the ActivX control even without a web
> server.
>
> As I have not got IIS installed I cannot create an ASP project and drag
> and
> drop the component on a web page. Can I do the same thing as above and
> if
> I
> can what are the parameters for the object?
>
> cheers
>
> Tuckers
>


Nov 18 '05 #7
Hi Peter,
I have used this technique to embed a control. However, the control attempts
drag and drop functionality. event occurs but the data disapears. I'm
assuming that this is probably a security issue. Do you have any ideas how to
resolve this or could you point me in the direction of good reference
material?

Thanks,
Dan

"Peter Bromberg [C# MVP]" wrote:
It sounds like what you want is a UserControl, which is a WinForms - based UI
control that is compiled as a dll. This is then hosted in the page also using
an OBJECT tag pointing to the dll.

I'd really discourage this however as handling the various security issues
with trust can be onerous. And of course, the .NET Framework must be
installed on the client machine.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Tuckers" wrote:
Hi,

I am exploring c#. I want to reference a c# web control in a web page much
like you can with an activeX control. The syntax for doing this in ActiveX is
something like
<OBJECT ID="WKMapControl"
CLASSID="CLSID:9EA6DD6C-5858-4EC3-93D5-79B2863DF2CF"></OBJECT>

I can view this page and see the ActivX control even without a web server.

As I have not got IIS installed I cannot create an ASP project and drag and
drop the component on a web page. Can I do the same thing as above and if I
can what are the parameters for the object?

cheers

Tuckers

Mar 21 '06 #8

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

Similar topics

3
by: jason | last post by:
How does one loop through the contents of a form complicated by dynamic construction of checkboxes which are assigned a 'model' and 'listingID' to the NAME field on the fly in this syntax:...
6
by: Sean | last post by:
HI There, I am making the transition from asp to asp .net, I am currenty writing an application that requires a bulk insert from a webform into SQL server, normally I would just create rows of...
20
by: Guadala Harry | last post by:
In an ASCX, I have a Literal control into which I inject a at runtime. litInjectedContent.Text = dataClass.GetHTMLSnippetFromDB(someID); This works great as long as the contains just...
5
by: Andrew | last post by:
Hi, friends, In ASP, we use obj = CreateObject("com.dll") obj.GetHTMLText(inVal, outHTMLTxt1, outHTMLTxt2) to get different HTML strings based on input values. Then, we insert them into...
7
by: Lorenzino | last post by:
Hi, I have a problem with bindings in a formview. I have a formview; in the insert template i've created a wizard control and inside it i have an HTML table with some textboxes bound to the...
5
by: Brad Baker | last post by:
I'm trying to write a simple asp.net page which updates some data in a SQL database. At the top of the page I have the following code: <%@ Page Language="C#" Debug="true" %> <%@ import...
1
by: tcc.se7en | last post by:
Hi -- I have an ASP.NET web app that I just converted to use a Master Page for common content (banner and nav). I also just updated my version of the MS Ajax framework to the latest one (and had...
5
by: =?Utf-8?B?bXBhaW5l?= | last post by:
Hello, I am completely lost as to why I can't update a DropDownList inside a DetailsView after I perform an insert into an object datasource. I tried to simply it down to the core demostration:...
3
by: deneushasler | last post by:
Hello my name is Juan Jose. My problem is as follows. When I try to insert a record into a table (access) to control DetailsView Visual Web Developer 2005, when I run the page and insert a record...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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...
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.