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

WebControl

Hello to all

I'm trying to make a webcontrol. I need to put on it 4 butons and one label
but i have no idia how to make it. I already wrote some windowsformrs
controls and it is very diferent from webcontrols. Can any one give me an
idia how to make it?

Thanks in advance
Nov 19 '05 #1
11 1658
If you are asking how to make Web User Controls, then its simple. Add a New
Item to your project and choose the Web User Control Template. Add your
controls to the design area and there you go. There are a few things to
watch out for, but you should do some reading for that.

If however, you are referring to a Web Custom Control which is rendered (
You are in complete control of the visual UI ) then you need to create one
of those and override the Render member function of the base class. These
controls are far more tricky to get right than a simple Web User Control
because you have to do most of the work in the code.

I suggest you google the subject up and do some reading first and then come
back with specific questions as asking generalised questions like you have
tend to illicit little in the way of replies, because you are almost asking
someone to give you a complete tutorial on the subject.

However, I hope that I have been of some help to you in at least pointing
you in the right direction, Im a novice myself and know little about the
subject. Im probably way down low on the learning curve but Im striving each
day to learn more.

--
Best Regards

The Inimitable Mr Newbie º¿º

"Henrry Pires" <Nelson@Don'tuse.com> wrote in message
news:uD**************@TK2MSFTNGP12.phx.gbl...
Hello to all

I'm trying to make a webcontrol. I need to put on it 4 butons and one
label but i have no idia how to make it. I already wrote some
windowsformrs controls and it is very diferent from webcontrols. Can any
one give me an idia how to make it?

Thanks in advance

Nov 19 '05 #2
Why everythingin ASP is so hard?

Thanks

"Mr Newbie" <he**@now.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
If you are asking how to make Web User Controls, then its simple. Add a
New Item to your project and choose the Web User Control Template. Add
your controls to the design area and there you go. There are a few things
to watch out for, but you should do some reading for that.

If however, you are referring to a Web Custom Control which is rendered
( You are in complete control of the visual UI ) then you need to create
one of those and override the Render member function of the base class.
These controls are far more tricky to get right than a simple Web User
Control because you have to do most of the work in the code.

I suggest you google the subject up and do some reading first and then
come back with specific questions as asking generalised questions like
you have tend to illicit little in the way of replies, because you are
almost asking someone to give you a complete tutorial on the subject.

However, I hope that I have been of some help to you in at least pointing
you in the right direction, Im a novice myself and know little about the
subject. Im probably way down low on the learning curve but Im striving
each day to learn more.

--
Best Regards

The Inimitable Mr Newbie º¿º

"Henrry Pires" <Nelson@Don'tuse.com> wrote in message
news:uD**************@TK2MSFTNGP12.phx.gbl...
Hello to all

I'm trying to make a webcontrol. I need to put on it 4 butons and one
label but i have no idia how to make it. I already wrote some
windowsformrs controls and it is very diferent from webcontrols. Can any
one give me an idia how to make it?

Thanks in advance


Nov 19 '05 #3
This is ASP.NET , not ASP. It's not hard, it's just different, and
sometimes it can be overwhelming like many new things. But if you stick with
it, you will be ok.

--
Best Regards

The Inimitable Mr Newbie º¿º

"Henrry Pires" <Nelson@Don'tuse.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Why everythingin ASP is so hard?

Thanks

"Mr Newbie" <he**@now.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
If you are asking how to make Web User Controls, then its simple. Add a
New Item to your project and choose the Web User Control Template. Add
your controls to the design area and there you go. There are a few things
to watch out for, but you should do some reading for that.

If however, you are referring to a Web Custom Control which is rendered
( You are in complete control of the visual UI ) then you need to create
one of those and override the Render member function of the base class.
These controls are far more tricky to get right than a simple Web User
Control because you have to do most of the work in the code.

I suggest you google the subject up and do some reading first and then
come back with specific questions as asking generalised questions like
you have tend to illicit little in the way of replies, because you are
almost asking someone to give you a complete tutorial on the subject.

However, I hope that I have been of some help to you in at least pointing
you in the right direction, Im a novice myself and know little about the
subject. Im probably way down low on the learning curve but Im striving
each day to learn more.

--
Best Regards

The Inimitable Mr Newbie º¿º

"Henrry Pires" <Nelson@Don'tuse.com> wrote in message
news:uD**************@TK2MSFTNGP12.phx.gbl...
Hello to all

I'm trying to make a webcontrol. I need to put on it 4 butons and one
label but i have no idia how to make it. I already wrote some
windowsformrs controls and it is very diferent from webcontrols. Can any
one give me an idia how to make it?

Thanks in advance



Nov 19 '05 #4
It's not all that hard, but it's a lot of stuff to know/remember.

Just keep at it, learning a bit every day, and you'll learn what you need.

<practical mode>
In a way, I'm kinda glad it is, because if this was too easy,
who would pay us the big bucks we want to get for our work ?
</practical mode>


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Mr Newbie" <he**@now.com> wrote in message news:%2***************@TK2MSFTNGP09.phx.gbl...
This is ASP.NET , not ASP. It's not hard, it's just different

Nov 19 '05 #5
Well I'm entering in the ASP.Net world, I come from windows forms that's why
i find so hard ASP
Programing client side and server side some times is confuse. And takes a
lot of work to do some kind of simple things.

:-(

Thanks

"Mr Newbie" <he**@now.com> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
This is ASP.NET , not ASP. It's not hard, it's just different, and
sometimes it can be overwhelming like many new things. But if you stick
with it, you will be ok.

--
Best Regards

The Inimitable Mr Newbie º¿º

"Henrry Pires" <Nelson@Don'tuse.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Why everythingin ASP is so hard?

Thanks

"Mr Newbie" <he**@now.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
If you are asking how to make Web User Controls, then its simple. Add a
New Item to your project and choose the Web User Control Template. Add
your controls to the design area and there you go. There are a few
things to watch out for, but you should do some reading for that.

If however, you are referring to a Web Custom Control which is rendered
( You are in complete control of the visual UI ) then you need to
create one of those and override the Render member function of the base
class. These controls are far more tricky to get right than a simple Web
User Control because you have to do most of the work in the code.

I suggest you google the subject up and do some reading first and then
come back with specific questions as asking generalised questions like
you have tend to illicit little in the way of replies, because you are
almost asking someone to give you a complete tutorial on the subject.

However, I hope that I have been of some help to you in at least
pointing you in the right direction, Im a novice myself and know little
about the subject. Im probably way down low on the learning curve but Im
striving each day to learn more.

--
Best Regards

The Inimitable Mr Newbie º¿º

"Henrry Pires" <Nelson@Don'tuse.com> wrote in message
news:uD**************@TK2MSFTNGP12.phx.gbl...
Hello to all

I'm trying to make a webcontrol. I need to put on it 4 butons and one
label but i have no idia how to make it. I already wrote some
windowsformrs controls and it is very diferent from webcontrols. Can
any one give me an idia how to make it?

Thanks in advance



Nov 19 '05 #6
It is completely different. One of the things you have trouble with when
switching is the fact that you have to preserve things between posts back to
the server which is something you dont need to wory about with windows forms
because once you instantiate an object it stays put until you tell it
otherwise or close the form.

You'll be fine, and there are loads of really good folks here with lots of
experience in ASP.NET to help you. Unfortunately I as my name suggests I'm
still a newbie, but I hope to shed that in the next few months or so.
--
Best Regards

The Inimitable Mr Newbie º¿º

"Henrry Pires" <Nelson@Don'tuse.com> wrote in message
news:OH****************@TK2MSFTNGP09.phx.gbl...
Well I'm entering in the ASP.Net world, I come from windows forms that's
why i find so hard ASP
Programing client side and server side some times is confuse. And takes a
lot of work to do some kind of simple things.

:-(

Thanks

"Mr Newbie" <he**@now.com> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
This is ASP.NET , not ASP. It's not hard, it's just different, and
sometimes it can be overwhelming like many new things. But if you stick
with it, you will be ok.

--
Best Regards

The Inimitable Mr Newbie º¿º

"Henrry Pires" <Nelson@Don'tuse.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Why everythingin ASP is so hard?

Thanks

"Mr Newbie" <he**@now.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
If you are asking how to make Web User Controls, then its simple. Add
a New Item to your project and choose the Web User Control Template.
Add your controls to the design area and there you go. There are a few
things to watch out for, but you should do some reading for that.

If however, you are referring to a Web Custom Control which is rendered
( You are in complete control of the visual UI ) then you need to
create one of those and override the Render member function of the base
class. These controls are far more tricky to get right than a simple
Web User Control because you have to do most of the work in the code.

I suggest you google the subject up and do some reading first and then
come back with specific questions as asking generalised questions like
you have tend to illicit little in the way of replies, because you are
almost asking someone to give you a complete tutorial on the subject.

However, I hope that I have been of some help to you in at least
pointing you in the right direction, Im a novice myself and know little
about the subject. Im probably way down low on the learning curve but
Im striving each day to learn more.

--
Best Regards

The Inimitable Mr Newbie º¿º

"Henrry Pires" <Nelson@Don'tuse.com> wrote in message
news:uD**************@TK2MSFTNGP12.phx.gbl...
> Hello to all
>
> I'm trying to make a webcontrol. I need to put on it 4 butons and one
> label but i have no idia how to make it. I already wrote some
> windowsformrs controls and it is very diferent from webcontrols. Can
> any one give me an idia how to make it?
>
> Thanks in advance
>



Nov 19 '05 #7
Yes, it's difficult. The major differences are due to several things:

1. A Windows Form operates continuously in a single area of memory for the
lifetime of the application. A Web Page operates across a TCP/IP network,
where the client-side browser and the server don't share any memory in
common, but can only pass messages back and forth. In addition, as HTTP is
stateless, each Request re-creates the Page class. Each instance of the Page
class is brand-new, like shutting down your Windows Form and restarting it.

2. A Windows Form has persistent memory. HTTP, on the other hand, is
stateless. Each Request/Response happens without any memory of any
Request/Response that previously happened. It's like 2 senile men trying to
carry on a conversation. Neither one can remember the last thing the other
said. So, ASP.Net has to resort to tricks to emulate some form of continuity
of memory. The 2 senile men pass notes back and forth to remind each other
of the last thing they said. This is done via a combination of the available
resources: Cookies, hidden form fields, temporary server memory storage in
Session, QueryStrings, etc.

3. Any network application works via network messaging; in the case of
ASP.Net, it is HTTP across a TCP/IP network. Therefore, there is no
guarantee that the data sent by either side will make it to the other, or
that it will make it intact.

4. When a user using a Windows Forms app is done, he closes it, freeing up
memory. An ASP.Net application is a service that must serve many users at
any given time, and doesn't shut down unless there are no users, and a
sufficient amount of time has passed. Therefore, there is no way for a user
to tell the server to de-allocate any memory associated with his Session.
The server waits for a Request for about 20 minutes, and if the user has not
made one, shuts down that client Session all by itself. Otherwise, every
user would accumulate more and more memory on the server, and create a very
fast memory leak.

Knowing all of this, you have 2 choices. You can go back to the nice, safe,
and relatively easy sandbox of Windows Form programming (something most of
us dream about from time to time!), or you can accept the challenge, and
move forward with ASP.Net.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
A watched clock never boils.
"Henrry Pires" <Nelson@Don'tuse.com> wrote in message
news:OH****************@TK2MSFTNGP09.phx.gbl...
Well I'm entering in the ASP.Net world, I come from windows forms that's
why i find so hard ASP
Programing client side and server side some times is confuse. And takes a
lot of work to do some kind of simple things.

:-(

Thanks

"Mr Newbie" <he**@now.com> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
This is ASP.NET , not ASP. It's not hard, it's just different, and
sometimes it can be overwhelming like many new things. But if you stick
with it, you will be ok.

--
Best Regards

The Inimitable Mr Newbie º¿º

"Henrry Pires" <Nelson@Don'tuse.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Why everythingin ASP is so hard?

Thanks

"Mr Newbie" <he**@now.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
If you are asking how to make Web User Controls, then its simple. Add
a New Item to your project and choose the Web User Control Template.
Add your controls to the design area and there you go. There are a few
things to watch out for, but you should do some reading for that.

If however, you are referring to a Web Custom Control which is rendered
( You are in complete control of the visual UI ) then you need to
create one of those and override the Render member function of the base
class. These controls are far more tricky to get right than a simple
Web User Control because you have to do most of the work in the code.

I suggest you google the subject up and do some reading first and then
come back with specific questions as asking generalised questions like
you have tend to illicit little in the way of replies, because you are
almost asking someone to give you a complete tutorial on the subject.

However, I hope that I have been of some help to you in at least
pointing you in the right direction, Im a novice myself and know little
about the subject. Im probably way down low on the learning curve but
Im striving each day to learn more.

--
Best Regards

The Inimitable Mr Newbie º¿º

"Henrry Pires" <Nelson@Don'tuse.com> wrote in message
news:uD**************@TK2MSFTNGP12.phx.gbl...
> Hello to all
>
> I'm trying to make a webcontrol. I need to put on it 4 butons and one
> label but i have no idia how to make it. I already wrote some
> windowsformrs controls and it is very diferent from webcontrols. Can
> any one give me an idia how to make it?
>
> Thanks in advance
>



Nov 19 '05 #8
Well said !

I have made the switch now, and I'm probably not going back as there are far
more jobs out there for ASP.NET than there are for Windows Forms
Applications as far as I can tell.

I thought Smart Applications would bite into the web based stuff but it does
not seem to have made the inroads we thought it would. Mobile Smart Apps
might be the exception in time.

--
Best Regards

The Inimitable Mr Newbie º¿º
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Yes, it's difficult. The major differences are due to several things:

1. A Windows Form operates continuously in a single area of memory for the
lifetime of the application. A Web Page operates across a TCP/IP network,
where the client-side browser and the server don't share any memory in
common, but can only pass messages back and forth. In addition, as HTTP is
stateless, each Request re-creates the Page class. Each instance of the
Page class is brand-new, like shutting down your Windows Form and
restarting it.

2. A Windows Form has persistent memory. HTTP, on the other hand, is
stateless. Each Request/Response happens without any memory of any
Request/Response that previously happened. It's like 2 senile men trying
to carry on a conversation. Neither one can remember the last thing the
other said. So, ASP.Net has to resort to tricks to emulate some form of
continuity of memory. The 2 senile men pass notes back and forth to remind
each other of the last thing they said. This is done via a combination of
the available resources: Cookies, hidden form fields, temporary server
memory storage in Session, QueryStrings, etc.

3. Any network application works via network messaging; in the case of
ASP.Net, it is HTTP across a TCP/IP network. Therefore, there is no
guarantee that the data sent by either side will make it to the other, or
that it will make it intact.

4. When a user using a Windows Forms app is done, he closes it, freeing up
memory. An ASP.Net application is a service that must serve many users at
any given time, and doesn't shut down unless there are no users, and a
sufficient amount of time has passed. Therefore, there is no way for a
user to tell the server to de-allocate any memory associated with his
Session. The server waits for a Request for about 20 minutes, and if the
user has not made one, shuts down that client Session all by itself.
Otherwise, every user would accumulate more and more memory on the server,
and create a very fast memory leak.

Knowing all of this, you have 2 choices. You can go back to the nice,
safe, and relatively easy sandbox of Windows Form programming (something
most of us dream about from time to time!), or you can accept the
challenge, and move forward with ASP.Net.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
A watched clock never boils.
"Henrry Pires" <Nelson@Don'tuse.com> wrote in message
news:OH****************@TK2MSFTNGP09.phx.gbl...
Well I'm entering in the ASP.Net world, I come from windows forms that's
why i find so hard ASP
Programing client side and server side some times is confuse. And takes a
lot of work to do some kind of simple things.

:-(

Thanks

"Mr Newbie" <he**@now.com> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
This is ASP.NET , not ASP. It's not hard, it's just different, and
sometimes it can be overwhelming like many new things. But if you stick
with it, you will be ok.

--
Best Regards

The Inimitable Mr Newbie º¿º

"Henrry Pires" <Nelson@Don'tuse.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Why everythingin ASP is so hard?

Thanks

"Mr Newbie" <he**@now.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
> If you are asking how to make Web User Controls, then its simple. Add
> a New Item to your project and choose the Web User Control Template.
> Add your controls to the design area and there you go. There are a few
> things to watch out for, but you should do some reading for that.
>
> If however, you are referring to a Web Custom Control which is
> rendered ( You are in complete control of the visual UI ) then you
> need to create one of those and override the Render member function of
> the base class. These controls are far more tricky to get right than a
> simple Web User Control because you have to do most of the work in the
> code.
>
> I suggest you google the subject up and do some reading first and then
> come back with specific questions as asking generalised questions
> like you have tend to illicit little in the way of replies, because
> you are almost asking someone to give you a complete tutorial on the
> subject.
>
> However, I hope that I have been of some help to you in at least
> pointing you in the right direction, Im a novice myself and know
> little about the subject. Im probably way down low on the learning
> curve but Im striving each day to learn more.
>
> --
> Best Regards
>
> The Inimitable Mr Newbie º¿º
>
>
>
> "Henrry Pires" <Nelson@Don'tuse.com> wrote in message
> news:uD**************@TK2MSFTNGP12.phx.gbl...
>> Hello to all
>>
>> I'm trying to make a webcontrol. I need to put on it 4 butons and one
>> label but i have no idia how to make it. I already wrote some
>> windowsformrs controls and it is very diferent from webcontrols. Can
>> any one give me an idia how to make it?
>>
>> Thanks in advance
>>
>
>



Nov 19 '05 #9
> I have made the switch now, and I'm probably not going back as there are
far more jobs out there for ASP.NET than there are for Windows Forms
Applications as far as I can tell.
I think you're right on that point, Mr. N.

As for Smart devices and Mobile apps, I think the infrastructure needs a bit
more beefing up, and then we'll see a massive growth in that market.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
A watched clock never boils.

"Mr Newbie" <he**@now.com> wrote in message
news:OP*************@tk2msftngp13.phx.gbl... Well said !

I have made the switch now, and I'm probably not going back as there are
far more jobs out there for ASP.NET than there are for Windows Forms
Applications as far as I can tell.

I thought Smart Applications would bite into the web based stuff but it
does not seem to have made the inroads we thought it would. Mobile Smart
Apps might be the exception in time.

--
Best Regards

The Inimitable Mr Newbie º¿º
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Yes, it's difficult. The major differences are due to several things:

1. A Windows Form operates continuously in a single area of memory for
the lifetime of the application. A Web Page operates across a TCP/IP
network, where the client-side browser and the server don't share any
memory in common, but can only pass messages back and forth. In addition,
as HTTP is stateless, each Request re-creates the Page class. Each
instance of the Page class is brand-new, like shutting down your Windows
Form and restarting it.

2. A Windows Form has persistent memory. HTTP, on the other hand, is
stateless. Each Request/Response happens without any memory of any
Request/Response that previously happened. It's like 2 senile men trying
to carry on a conversation. Neither one can remember the last thing the
other said. So, ASP.Net has to resort to tricks to emulate some form of
continuity of memory. The 2 senile men pass notes back and forth to
remind each other of the last thing they said. This is done via a
combination of the available resources: Cookies, hidden form fields,
temporary server memory storage in Session, QueryStrings, etc.

3. Any network application works via network messaging; in the case of
ASP.Net, it is HTTP across a TCP/IP network. Therefore, there is no
guarantee that the data sent by either side will make it to the other, or
that it will make it intact.

4. When a user using a Windows Forms app is done, he closes it, freeing
up memory. An ASP.Net application is a service that must serve many users
at any given time, and doesn't shut down unless there are no users, and a
sufficient amount of time has passed. Therefore, there is no way for a
user to tell the server to de-allocate any memory associated with his
Session. The server waits for a Request for about 20 minutes, and if the
user has not made one, shuts down that client Session all by itself.
Otherwise, every user would accumulate more and more memory on the
server, and create a very fast memory leak.

Knowing all of this, you have 2 choices. You can go back to the nice,
safe, and relatively easy sandbox of Windows Form programming (something
most of us dream about from time to time!), or you can accept the
challenge, and move forward with ASP.Net.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
A watched clock never boils.
"Henrry Pires" <Nelson@Don'tuse.com> wrote in message
news:OH****************@TK2MSFTNGP09.phx.gbl...
Well I'm entering in the ASP.Net world, I come from windows forms that's
why i find so hard ASP
Programing client side and server side some times is confuse. And takes
a lot of work to do some kind of simple things.

:-(

Thanks

"Mr Newbie" <he**@now.com> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
This is ASP.NET , not ASP. It's not hard, it's just different, and
sometimes it can be overwhelming like many new things. But if you stick
with it, you will be ok.

--
Best Regards

The Inimitable Mr Newbie º¿º

"Henrry Pires" <Nelson@Don'tuse.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
> Why everythingin ASP is so hard?
>
> Thanks
>
> "Mr Newbie" <he**@now.com> wrote in message
> news:%2****************@TK2MSFTNGP12.phx.gbl...
>> If you are asking how to make Web User Controls, then its simple.
>> Add a New Item to your project and choose the Web User Control
>> Template. Add your controls to the design area and there you go.
>> There are a few things to watch out for, but you should do some
>> reading for that.
>>
>> If however, you are referring to a Web Custom Control which is
>> rendered ( You are in complete control of the visual UI ) then you
>> need to create one of those and override the Render member function
>> of the base class. These controls are far more tricky to get right
>> than a simple Web User Control because you have to do most of the
>> work in the code.
>>
>> I suggest you google the subject up and do some reading first and
>> then come back with specific questions as asking generalised
>> questions like you have tend to illicit little in the way of replies,
>> because you are almost asking someone to give you a complete tutorial
>> on the subject.
>>
>> However, I hope that I have been of some help to you in at least
>> pointing you in the right direction, Im a novice myself and know
>> little about the subject. Im probably way down low on the learning
>> curve but Im striving each day to learn more.
>>
>> --
>> Best Regards
>>
>> The Inimitable Mr Newbie º¿º
>>
>>
>>
>> "Henrry Pires" <Nelson@Don'tuse.com> wrote in message
>> news:uD**************@TK2MSFTNGP12.phx.gbl...
>>> Hello to all
>>>
>>> I'm trying to make a webcontrol. I need to put on it 4 butons and
>>> one label but i have no idia how to make it. I already wrote some
>>> windowsformrs controls and it is very diferent from webcontrols. Can
>>> any one give me an idia how to make it?
>>>
>>> Thanks in advance
>>>
>>
>>
>
>



Nov 19 '05 #10
Welcome to ASP.NET Henry.
You should thank Mr N and Kevin.
Patrick

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:uv**************@TK2MSFTNGP09.phx.gbl...
I have made the switch now, and I'm probably not going back as there are
far more jobs out there for ASP.NET than there are for Windows Forms
Applications as far as I can tell.
I think you're right on that point, Mr. N.

As for Smart devices and Mobile apps, I think the infrastructure needs a

bit more beefing up, and then we'll see a massive growth in that market.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
A watched clock never boils.

"Mr Newbie" <he**@now.com> wrote in message
news:OP*************@tk2msftngp13.phx.gbl...
Well said !

I have made the switch now, and I'm probably not going back as there are
far more jobs out there for ASP.NET than there are for Windows Forms
Applications as far as I can tell.

I thought Smart Applications would bite into the web based stuff but it
does not seem to have made the inroads we thought it would. Mobile Smart
Apps might be the exception in time.

--
Best Regards

The Inimitable Mr Newbie º¿º
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Yes, it's difficult. The major differences are due to several things:

1. A Windows Form operates continuously in a single area of memory for
the lifetime of the application. A Web Page operates across a TCP/IP
network, where the client-side browser and the server don't share any
memory in common, but can only pass messages back and forth. In addition, as HTTP is stateless, each Request re-creates the Page class. Each
instance of the Page class is brand-new, like shutting down your Windows Form and restarting it.

2. A Windows Form has persistent memory. HTTP, on the other hand, is
stateless. Each Request/Response happens without any memory of any
Request/Response that previously happened. It's like 2 senile men trying to carry on a conversation. Neither one can remember the last thing the
other said. So, ASP.Net has to resort to tricks to emulate some form of
continuity of memory. The 2 senile men pass notes back and forth to
remind each other of the last thing they said. This is done via a
combination of the available resources: Cookies, hidden form fields,
temporary server memory storage in Session, QueryStrings, etc.

3. Any network application works via network messaging; in the case of
ASP.Net, it is HTTP across a TCP/IP network. Therefore, there is no
guarantee that the data sent by either side will make it to the other, or that it will make it intact.

4. When a user using a Windows Forms app is done, he closes it, freeing
up memory. An ASP.Net application is a service that must serve many users at any given time, and doesn't shut down unless there are no users, and a sufficient amount of time has passed. Therefore, there is no way for a
user to tell the server to de-allocate any memory associated with his
Session. The server waits for a Request for about 20 minutes, and if the user has not made one, shuts down that client Session all by itself.
Otherwise, every user would accumulate more and more memory on the
server, and create a very fast memory leak.

Knowing all of this, you have 2 choices. You can go back to the nice,
safe, and relatively easy sandbox of Windows Form programming (something most of us dream about from time to time!), or you can accept the
challenge, and move forward with ASP.Net.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
A watched clock never boils.
"Henrry Pires" <Nelson@Don'tuse.com> wrote in message
news:OH****************@TK2MSFTNGP09.phx.gbl...
Well I'm entering in the ASP.Net world, I come from windows forms that's why i find so hard ASP
Programing client side and server side some times is confuse. And takes a lot of work to do some kind of simple things.

:-(

Thanks

"Mr Newbie" <he**@now.com> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
> This is ASP.NET , not ASP. It's not hard, it's just different, and
> sometimes it can be overwhelming like many new things. But if you stick> with it, you will be ok.
>
> --
> Best Regards
>
> The Inimitable Mr Newbie º¿º
>
>
>
> "Henrry Pires" <Nelson@Don'tuse.com> wrote in message
> news:%2****************@TK2MSFTNGP15.phx.gbl...
>> Why everythingin ASP is so hard?
>>
>> Thanks
>>
>> "Mr Newbie" <he**@now.com> wrote in message
>> news:%2****************@TK2MSFTNGP12.phx.gbl...
>>> If you are asking how to make Web User Controls, then its simple.
>>> Add a New Item to your project and choose the Web User Control
>>> Template. Add your controls to the design area and there you go.
>>> There are a few things to watch out for, but you should do some
>>> reading for that.
>>>
>>> If however, you are referring to a Web Custom Control which is
>>> rendered ( You are in complete control of the visual UI ) then you
>>> need to create one of those and override the Render member function
>>> of the base class. These controls are far more tricky to get right
>>> than a simple Web User Control because you have to do most of the
>>> work in the code.
>>>
>>> I suggest you google the subject up and do some reading first and
>>> then come back with specific questions as asking generalised
>>> questions like you have tend to illicit little in the way of replies,>>> because you are almost asking someone to give you a complete tutorial>>> on the subject.
>>>
>>> However, I hope that I have been of some help to you in at least
>>> pointing you in the right direction, Im a novice myself and know
>>> little about the subject. Im probably way down low on the learning
>>> curve but Im striving each day to learn more.
>>>
>>> --
>>> Best Regards
>>>
>>> The Inimitable Mr Newbie º¿º
>>>
>>>
>>>
>>> "Henrry Pires" <Nelson@Don'tuse.com> wrote in message
>>> news:uD**************@TK2MSFTNGP12.phx.gbl...
>>>> Hello to all
>>>>
>>>> I'm trying to make a webcontrol. I need to put on it 4 butons and
>>>> one label but i have no idia how to make it. I already wrote some
>>>> windowsformrs controls and it is very diferent from webcontrols. Can>>>> any one give me an idia how to make it?
>>>>
>>>> Thanks in advance
>>>>
>>>
>>>
>>
>>
>
>



Nov 19 '05 #11
I've been tring tofind anything usefull to help me to make a web custom
control. Can any one give me a link or something to help me, Like a
tutorial.
"Mr Newbie" <he**@now.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
If you are asking how to make Web User Controls, then its simple. Add a
New Item to your project and choose the Web User Control Template. Add
your controls to the design area and there you go. There are a few things
to watch out for, but you should do some reading for that.

If however, you are referring to a Web Custom Control which is rendered
( You are in complete control of the visual UI ) then you need to create
one of those and override the Render member function of the base class.
These controls are far more tricky to get right than a simple Web User
Control because you have to do most of the work in the code.

I suggest you google the subject up and do some reading first and then
come back with specific questions as asking generalised questions like
you have tend to illicit little in the way of replies, because you are
almost asking someone to give you a complete tutorial on the subject.

However, I hope that I have been of some help to you in at least pointing
you in the right direction, Im a novice myself and know little about the
subject. Im probably way down low on the learning curve but Im striving
each day to learn more.

--
Best Regards

The Inimitable Mr Newbie º¿º

"Henrry Pires" <Nelson@Don'tuse.com> wrote in message
news:uD**************@TK2MSFTNGP12.phx.gbl...
Hello to all

I'm trying to make a webcontrol. I need to put on it 4 butons and one
label but i have no idia how to make it. I already wrote some
windowsformrs controls and it is very diferent from webcontrols. Can any
one give me an idia how to make it?

Thanks in advance


Nov 19 '05 #12

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

Similar topics

1
by: Owatona | last post by:
Hi to all... I have 3 classes derived from webcontrol. I the first i have two dropdownlist, in the second i have some buttons, and the third its the webcontrol that are instanciate the two...
0
by: Matze | last post by:
I have a function that has an Argument of type System.Web.UI.WebControls.WebControl. I want to set the text-property of that control. Of course it doesnt work if I cast that control to...
0
by: Harry F. Harrison | last post by:
Here's the situation...Context - Using an Inherited WebControl object as a base for server custom controls. In a web custom control, whenever I create a child control and add it to the Controls...
9
by: kw | last post by:
What is the proper way to get the element ID for a client script? For example, suppose in the WebControl: TextBox t=new TextBox; t.ID=this.ClientID+"X"; .... Then elsewhere we want to access...
2
by: Novice | last post by:
I can't seem to get my Custom WebControl to output a button whose click event is associated with a particular method. Here is the code I have right now that contains a panel and there is a...
0
by: Novice | last post by:
Hey all, I've already posted this question and two posters offered suggestions and they worked - but now I would like to know why - and if possible the answer to a second question. Here is my...
3
by: spmm# | last post by:
Hi! Could someone please help me with the following; I have a WebControl that basically looks like this: public class LeftMenu : System.Web.UI.WebControls.WebControl { private string...
7
by: n33470 | last post by:
We're in the process of migrating our projects to use VS2005 from VS2003. We have a web page that uses the XML WebControl (System.Web.UI.WebControls.Xml) to perform an XSLT tranformation by...
1
by: Dariusz Tomon | last post by:
Hi In my project I have got several webcontrol (ascx). How can I handle with the problem: I would like to have some ASPNET object (DropDownList, InputBox etc.) in one webcontrol (this...
4
by: Christian Hofmann | last post by:
Hello, How is it possible to use a hyperlink webcontrol inside a label webcontrol? I am using resources for globalisation. Now I have a text like this: Please click here to open that...
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:
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
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?
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.