| |

VerySource

 Forgot password?
 Register
Search
View: 1960|Reply: 13

Everyone come in and laugh ~

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-3-2 13:00:02
| Show all posts |Read mode
Just graduated and found a job asp.net for a website
During the process, I saw that controls were used in many places, such as treeview and paging control datalist. It feels too slow. If these are written in JS, it is better to put them on the client, and how to weigh where to use server controls No need
   Because there are only 3 months to do asp.net, some places can not be explained clearly, or can not understand ~ please do not laugh
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-5-12 17:00:01
| Show all posts
up
Reply

Use magic Report

0

Threads

322

Posts

115.00

Credits

Newbie

Rank: 1

Credits
115.00

 China

Post time: 2020-5-12 17:45:01
| Show all posts
Treeview is originally js. But the background encapsulates some attribute event methods and so on.
If you think the datalist is slow, you can use the repeater
Reply

Use magic Report

1

Threads

60

Posts

37.00

Credits

Newbie

Rank: 1

Credits
37.00

 China

Post time: 2020-5-12 21:45:01
| Show all posts
Generally, it is better to use less server controls on the front page of the website, and the background management does not matter.
Reply

Use magic Report

0

Threads

322

Posts

115.00

Credits

Newbie

Rank: 1

Credits
115.00

 China

Post time: 2020-5-12 22:00:01
| Show all posts
How to balance where to use server controls and not to use
========
Can not use server controls as much as possible. But if you ca n’t achieve it with ordinary html elements, or if you spend a lot of time and energy
Still use server controls.

Server controls are divided into webcontrols and htmlcontrols.Generally, many functions can be realized by htmlcontrols.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 United States

Post time: 2020-5-13 09:00:01
| Show all posts
Client controls can also bind data
I think some things do not necessarily require the use of client-side controls or server-side controls, just use it
Of course, sometimes only one type can be used, then there is nothing to say
Reply

Use magic Report

0

Threads

23

Posts

21.00

Credits

Newbie

Rank: 1

Credits
21.00

 China

Post time: 2020-5-13 13:00:01
| Show all posts
Personally think it is a habit problem. If the javascript is better, write more things in the foreground. If the c # is better, write more things in the background. One is on the client side and the other is on the server side
==================================
Began to talk .....................
Reply

Use magic Report

0

Threads

64

Posts

45.00

Credits

Newbie

Rank: 1

Credits
45.00

 China

Post time: 2020-5-13 14:00:02
| Show all posts
Agree withshenmue024, server controls should be used sparingly
Reply

Use magic Report

0

Threads

119

Posts

67.00

Credits

Newbie

Rank: 1

Credits
67.00

 China

Post time: 2020-5-13 19:45:02
| Show all posts
What you said is good, to balance the use of server controls, generally speaking, HTML controls can be used as much as possible
Reply

Use magic Report

0

Threads

20

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

Post time: 2020-5-16 17:15:02
| Show all posts
Server controls are very useful, but for customers, too many server-side controls will affect the use

In fact, there are no rules to follow

However, for beginners, I suggest that you can use the server-side if you can use the server-side. After understanding what is going on in html and javascript, you will naturally understand where to use it. of

In addition, ls said htmlcontrol, in fact, webcontrol is very different from htmlcontrol, although they are all in the .NET class library, not much to say, lz drag two to the page, and get two lines of code I understand
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list