Skip to main content
Bumped by Community user
deleted 4 characters in body
Source Link
Robert Harvey
  • 200.8k
  • 55
  • 470
  • 684

In an ASP.NET app, I've got to decide whether to put a complex piece of code on either the client in JS or on the server in C#.

I've considered performance (if on server, it would be a small callback), IP protection (all behavior is visible on the page), need for server interaction (none during the execution of this particular piece of code).

So the remaining question (that I'm aware of) is this:

Is it significantly easier, faster, better for testing and management, etc. to write the code in C# on the server than in JS on the client? Or is there not much difference?

UPDATE:

 

The application is like a highly structured group discussion (presented as a single column, or list, of rows). The function in question involves building and formatting about a dozen different types of temporary rows used in adding to, editing and moving items in the list. The rows contain a few input fields which are filled by the user and then sent to the server. The inputs will have to be thoroughly screened for security on receipt at the server.

The specific algorithm for determining the content and format of the temporary rows has as inputs 1) the row that was selected as a starting point for add, edit, etc.; 2) parent-child relationships between the first selected row and the row being added; and 3) a few participant and group session state variables.

In an ASP.NET app, I've got to decide whether to put a complex piece of code on either the client in JS or on the server in C#.

I've considered performance (if on server, it would be a small callback), IP protection (all behavior is visible on the page), need for server interaction (none during the execution of this particular piece of code).

So the remaining question (that I'm aware of) is this:

Is it significantly easier, faster, better for testing and management, etc. to write the code in C# on the server than in JS on the client? Or is there not much difference?

UPDATE:

The application is like a highly structured group discussion (presented as a single column, or list, of rows). The function in question involves building and formatting about a dozen different types of temporary rows used in adding to, editing and moving items in the list. The rows contain a few input fields which are filled by the user and then sent to the server. The inputs will have to be thoroughly screened for security on receipt at the server.

The specific algorithm for determining the content and format of the temporary rows has as inputs 1) the row that was selected as a starting point for add, edit, etc.; 2) parent-child relationships between the first selected row and the row being added; and 3) a few participant and group session state variables.

In an ASP.NET app, I've got to decide whether to put a complex piece of code on either the client in JS or on the server in C#.

I've considered performance (if on server, it would be a small callback), IP protection (all behavior is visible on the page), need for server interaction (none during the execution of this particular piece of code).

So the remaining question (that I'm aware of) is this:

Is it significantly easier, faster, better for testing and management, etc. to write the code in C# on the server than in JS on the client? Or is there not much difference?

 

The application is like a highly structured group discussion (presented as a single column, or list, of rows). The function in question involves building and formatting about a dozen different types of temporary rows used in adding to, editing and moving items in the list. The rows contain a few input fields which are filled by the user and then sent to the server. The inputs will have to be thoroughly screened for security on receipt at the server.

The specific algorithm for determining the content and format of the temporary rows has as inputs 1) the row that was selected as a starting point for add, edit, etc.; 2) parent-child relationships between the first selected row and the row being added; and 3) a few participant and group session state variables.

added 773 characters in body
Source Link

In an ASP.NET app, I've got to decide whether to put a complex piece of code on either the client in JS or on the server in C#.

I've considered performance (if on server, it would be a small callback), IP protection (all behavior is visible on the page), need for server interaction (none during the execution of this particular piece of code).

So the remaining question (that I'm aware of) is this:

Is it significantly easier, faster, better for testing and management, etc. to write the code in C# on the server than in JS on the client? Or is there not much difference?

UPDATE:

The application is like a highly structured group discussion (presented as a single column, or list, of rows). The function in question involves building and formatting about a dozen different types of temporary rows used in adding to, editing and moving items in the list. The rows contain a few input fields which are filled by the user and then sent to the server. The inputs will have to be thoroughly screened for security on receipt at the server.

The specific algorithm for determining the content and format of the temporary rows has as inputs 1) the row that was selected as a starting point for add, edit, etc.; 2) parent-child relationships between the first selected row and the row being added; and 3) a few participant and group session state variables.

In an ASP.NET app, I've got to decide whether to put a complex piece of code on either the client in JS or on the server in C#.

I've considered performance (if on server, it would be a small callback), IP protection (all behavior is visible on the page), need for server interaction (none during the execution of this particular piece of code).

So the remaining question (that I'm aware of) is this:

Is it significantly easier, faster, better for testing and management, etc. to write the code in C# on the server than in JS on the client? Or is there not much difference?

In an ASP.NET app, I've got to decide whether to put a complex piece of code on either the client in JS or on the server in C#.

I've considered performance (if on server, it would be a small callback), IP protection (all behavior is visible on the page), need for server interaction (none during the execution of this particular piece of code).

So the remaining question (that I'm aware of) is this:

Is it significantly easier, faster, better for testing and management, etc. to write the code in C# on the server than in JS on the client? Or is there not much difference?

UPDATE:

The application is like a highly structured group discussion (presented as a single column, or list, of rows). The function in question involves building and formatting about a dozen different types of temporary rows used in adding to, editing and moving items in the list. The rows contain a few input fields which are filled by the user and then sent to the server. The inputs will have to be thoroughly screened for security on receipt at the server.

The specific algorithm for determining the content and format of the temporary rows has as inputs 1) the row that was selected as a starting point for add, edit, etc.; 2) parent-child relationships between the first selected row and the row being added; and 3) a few participant and group session state variables.

spelling
Source Link
Dan Pichelman
  • 13.9k
  • 8
  • 46
  • 74

Put ASP.Net code on client (JS) or severserver (C#)

In an aspASP.netNET app, I've got to decide whether to put a complex piece of code on either the client in JS or on the severserver in C#.

I've considered performance (if on server, it would be a small callback), IP protection (all behavior is visible on the page), need for server interaction (none during the execution of this particular piece of code).

So the remaining question (that I'm aware of) is this:

Is it significantly easier, faster, better for testing and management, etc. to write the code in C# on the server than in JS on the client? Or is there not much difference?

Put ASP.Net code on client (JS) or sever (C#)

In an asp.net app, I've got to decide to put a complex piece of code on either the client in JS or on the sever in C#.

I've considered performance (if on server, it would be a small callback), IP protection (all behavior is visible on the page), need for server interaction (none during the execution of this particular piece of code).

So the remaining question (that I'm aware of) is this:

Is it significantly easier, faster, better for testing and management, etc. to write the code in C# on the server than in JS on the client? Or is there not much difference?

Put code on client (JS) or server (C#)

In an ASP.NET app, I've got to decide whether to put a complex piece of code on either the client in JS or on the server in C#.

I've considered performance (if on server, it would be a small callback), IP protection (all behavior is visible on the page), need for server interaction (none during the execution of this particular piece of code).

So the remaining question (that I'm aware of) is this:

Is it significantly easier, faster, better for testing and management, etc. to write the code in C# on the server than in JS on the client? Or is there not much difference?

Source Link
Loading