16 lines
480 B
Plaintext
16 lines
480 B
Plaintext
@inject IHttpService httpService
|
|
@using PanoptesFrontend.Services
|
|
|
|
<RadzenTextArea @bind-Value="sqlQuery" Style="width: 100%; height: 300px" />
|
|
<button class="btn btn-primary" @onclick="ExecuteSqlQuery">Execute Query</button>
|
|
|
|
@code {
|
|
string sqlQuery;
|
|
|
|
private async Task ExecuteSqlQuery()
|
|
{
|
|
// Send the SQL query to your backend and handle the response
|
|
var response = await httpService.PostAsync($"http://localhost:10000/sqlquery", sqlQuery);
|
|
|
|
}
|
|
} |