Custom Button - SQL UPDATE |
4/27/2021 4:06:10 PM |
ASPRunner.NET General questions | |
acacio.rapaz@fastdata.pt author
Good morning,
![img alt](https://asprunner.com/forums/files/simplemdeUpload/Costum Button_as4ylol3.png) Thanks. |
|
admin 4/27/2021 | |
I'm kind of miss the question. Please elaborte on what you asking. |
acacio.rapaz@fastdata.pt author 4/27/2021 | |
Thank you for your help, Question 1: Eg SQL: UPDATE Comunicacoes Set Pendente = '1' FROM Comunicacoes Where Another question: Thanks |
admin 4/28/2021 | |
I understand what you need to do but I don't understand what kind of issue you having with it. In either case, you can execute the same SQL query to update the record in the database in button's Server event. Another option is to use Database API |
acacio.rapaz@fastdata.pt author 4/28/2021 | |
Good afternoon, When I try to run SQL it gives me this error ?? And I don't know how to aim to stop the line in question where IDComunicaƧƵes = the line where the button is. But I am sure there is little left to understand the mechanics of the ASPRUNNER Thanks. |
admin 4/28/2021 | |
You cannot simply add SQL to C# event. See the example link I sent you. |
acacio.rapaz@fastdata.pt author 4/28/2021 | |
I know but I get this error .... I don't know what I'm doing wrong. I'm putting the code in a Custom Button on the Server Side .... |
acacio.rapaz@fastdata.pt author 4/28/2021 | |
PHP: C#: If i convert PHP to C#, the error is this: C:\inetpub\wwwroot\include\CommonEvents.cs(128,1): error CS0103: The name 'data' does not exist in the current context [C:\inetpub\wwwroot\FDGestWEBEventsCS.csproj] |
admin 4/28/2021 | |
Apologies, I have sent you PHPRunner manual link. Here is the one for ASPRunner.NET: Also, if you simply need to execute a SQL query use DB.Exec |