473,226 Members | 1,445 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,226 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 1646
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...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...

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.