| |

VerySource

 Forgot password?
 Register
Search
View: 1068|Reply: 6

How big is the use of FormView, GridView, ObjectDataSource to implement the presentation layer!

[Copy link]

1

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-3-15 09:00:01
| Show all posts |Read mode
Use the above controls to implement the operations of the interface layer, and write the operations of the interface layer yourself.

How much impact the above controls have on performance,

Or the above performance is already fast, even if the write speed is similar to this? ?
Reply

Use magic Report

0

Threads

7

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-6-15 10:30:01
| Show all posts
Use FormView, GridView, ObjectDataSource to write user interface
Need to realize two-layer or three-layer structure
The ObjectDataSource space needs to be bound to the data connection layer or business logic layer, not to bind SQL statements or stored procedures
You can add a /app_code subdirectory under the root directory of your project to write your business logic class or data connection class in this directory
The simplest business logic class is defined as follows
class Business
{
    public Business(){}
    public DataSet GetRecorder(){}//Invoke stored procedures or perform SQL query operations here
    public int UpdataRecorder(){}//Call stored procedure here or perform SQL update operation
    public int InsertRecorder(){}//Call the stored procedure here or perform SQL insert operation
    public int DeleteRecorder(){}//Call the stored procedure here or perform SQL delete operation
}
Bind the various methods of ObjectDataSource to these member functions
Reply

Use magic Report

1

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

 Author| Post time: 2020-6-19 00:00:01
| Show all posts
Upstairs, be kind!
You're not kind at all, you don't see the problem, just put your words casually.
Reply

Use magic Report

0

Threads

8

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-6-20 13:15:01
| Show all posts
Our project is done using the combination of FormView, GridView and ObjectDataSource, and the speed feels quite fast
Reply

Use magic Report

1

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

 Author| Post time: 2020-6-20 23:45:01
| Show all posts
For the corresponding business type of ObjectDataSource, we can see that it is a full-character class name, so is it possible to instantiate the object through reflection every time the page is run, or when pre-editing, just put some "character type" on the aspx page The full name of the class is edited into the form of direct object name new? ?
Reply

Use magic Report

0

Threads

6

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-6-21 17:15:01
| Show all posts
It feels good to work with a strongly typed DataSet. The speed is good.
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-8-31 02:30:01
| Show all posts
In use, I feel that the development speed is very fast
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