Click here to Skip to main content
14,364,458 members
   

ASP.NET

 
AnswerRe: ASP.Net Core Identity Pin
jkirkerx30-Oct-19 14:10
professionaljkirkerx30-Oct-19 14:10 
GeneralRe: ASP.Net Core Identity Pin
Mycroft Holmes31-Oct-19 12:13
memberMycroft Holmes31-Oct-19 12:13 
GeneralRe: ASP.Net Core Identity Pin
jkirkerx1-Nov-19 13:23
professionaljkirkerx1-Nov-19 13:23 
QuestionImporting Rows Into a List Pin
ibrahimayhans28-Oct-19 1:37
memberibrahimayhans28-Oct-19 1:37 
QuestionASP maker 2018 Pin
Member 1292025327-Oct-19 12:23
memberMember 1292025327-Oct-19 12:23 
AnswerRe: ASP maker 2018 Pin
Richard MacCutchan27-Oct-19 23:19
protectorRichard MacCutchan27-Oct-19 23:19 
QuestionDraw Shape in Canvas Pin
John_Ryder26-Oct-19 2:58
memberJohn_Ryder26-Oct-19 2:58 
AnswerRe: Draw Shape in Canvas Pin
Afzaal Ahmad Zeeshan26-Oct-19 10:19
mveAfzaal Ahmad Zeeshan26-Oct-19 10:19 
Quote:
I need to generate shape on server side than return it back to canvas as I callback result.
Then that means that you process and return the result from the server, and have the client-side JavaScript render it. One of the way we can do that would be to remove the hardcoded values,
context.fillRect(30, 30, 70, 90);
Becomes,
let points = [ 30, 30, 70, 90 ];
context.fillRect(points[0], points[1], points[2], points[3]);
That is definitely one of the ways in which this can be done. Once you reach this point, you can see that this same array can be returned from a server. You can use jQuery's Ajax and request the content from the server,
$.ajax({
   url: '/points-generator',
   success: function(data) {
       // Assuming data is an array
       context.fillRect(data[0], data[1], data[2], data[3]);
   }
});
This assumes that you change your context variable to be a global variable so that it can be accessed from almost every function. Then, you can request the data from server using Ajax, and then render the data.

Read more on the MDN documentation for context and study the parameter-lists, and then generate the proper responses for your requests.

CanvasRenderingContext2D - Web APIs | MDN
jQuery.ajax() | jQuery API Documentation
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~

GeneralRe: Draw Shape in Canvas Pin
John_Ryder29-Oct-19 20:49
memberJohn_Ryder29-Oct-19 20:49 
AnswerRe: Draw Shape in Canvas Pin
jkirkerx28-Oct-19 13:53
professionaljkirkerx28-Oct-19 13:53 
QuestionHow do i make my detailsviewmodel work Pin
Stefaneus22-Oct-19 7:31
memberStefaneus22-Oct-19 7:31 
AnswerRe: How do i make my detailsviewmodel work Pin
jkirkerx23-Oct-19 11:54
professionaljkirkerx23-Oct-19 11:54 
QuestionHow do i make a bootstrap carousel work with Asp.net core Razor Pin
Stefaneus21-Oct-19 15:49
memberStefaneus21-Oct-19 15:49 
AnswerRe: How do i make a bootstrap carousel work with Asp.net core Razor Pin
Richard Deeming22-Oct-19 2:00
mveRichard Deeming22-Oct-19 2:00 
GeneralRe: How do i make a bootstrap carousel work with Asp.net core Razor Pin
Stefaneus22-Oct-19 6:02
memberStefaneus22-Oct-19 6:02 
GeneralRe: How do i make a bootstrap carousel work with Asp.net core Razor Pin
Richard Deeming22-Oct-19 6:14
mveRichard Deeming22-Oct-19 6:14 
GeneralRe: How do i make a bootstrap carousel work with Asp.net core Razor Pin
Stefaneus22-Oct-19 8:04
memberStefaneus22-Oct-19 8:04 
Answer[REPOST] How do i make a bootstrap carousel work with Asp.net core Razor Pin
Richard Deeming22-Oct-19 2:03
mveRichard Deeming22-Oct-19 2:03 
QuestionSystem.Data.SqlClient.SqlException: 'The parameterized query '(@Name varchar(7),@Alias varchar(4),@Under_Group varchar(8000),@' expects the parameter '@Under_Group', which was not supplied.' in winforms of database in .net Pin
Member 1462438515-Oct-19 22:29
memberMember 1462438515-Oct-19 22:29 
AnswerRe: System.Data.SqlClient.SqlException: 'The parameterized query '(@Name varchar(7),@Alias varchar(4),@Under_Group varchar(8000),@' expects the parameter '@Under_Group', which was not supplied.' in winforms of database in .net Pin
Richard MacCutchan15-Oct-19 23:06
protectorRichard MacCutchan15-Oct-19 23:06 
AnswerRe: System.Data.SqlClient.SqlException: 'The parameterized query '(@Name varchar(7),@Alias varchar(4),@Under_Group varchar(8000),@' expects the parameter '@Under_Group', which was not supplied.' in winforms of database in .net Pin
ZurdoDev16-Oct-19 9:34
professionalZurdoDev16-Oct-19 9:34 
QuestionMy Visual Studio 2017 community is opening my React-Redux Application with tsx files by default Pin
simpledeveloper9-Oct-19 8:18
membersimpledeveloper9-Oct-19 8:18 
AnswerRe: My Visual Studio 2017 community is opening my React-Redux Application with tsx files by default Pin
jkirkerx10-Oct-19 10:55
professionaljkirkerx10-Oct-19 10:55 
GeneralRe: My Visual Studio 2017 community is opening my React-Redux Application with tsx files by default Pin
simpledeveloper16-Oct-19 9:07
membersimpledeveloper16-Oct-19 9:07 
GeneralRe: My Visual Studio 2017 community is opening my React-Redux Application with tsx files by default Pin
jkirkerx16-Oct-19 9:33
professionaljkirkerx16-Oct-19 9:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.