admin project blazor server. I use this page on the web public
<div class="wpo-login-area">
<div class="container">
<div class="row">
<div class="col-lg-12">
<form class="wpo-accountWrapper" method="post" asp-page-handler="SendEmail">
<div class="wpo-accountInfo">
<div class="image">
<img src="assets/images/Catalog.png" alt="">
</div>
</div>
<div class="wpo-accountForm form-style">
<div class="fromTitle">
<h2>@L["Catalog"]</h2>
</div>
<div class="row">
<div class="col-lg-12 col-md-12 col-12">
<abp-input asp-for="@Model.EmailAddress" />
</div>
<div class="col-lg-12 col-md-12 col-12">
<abp-input asp-for="@Model.PhoneNumber" />
</div>
<div class="col-lg-12 col-md-12 col-12">
<abp-input asp-for="@Model.Name" />
</div>
<div class="col-lg-12 col-md-12 col-12">
<abp-input asp-for="@Model.CompanyName" />
</div>
<div class="mb-3">
<div class="d-grid gap-2">
<!-- Buton tipini 'submit' olarak değiştirin -->
<button type="submit">@L["SendMessage"]</button>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
public class CatalogModel : ObiyosisPublicPageModel
{
[BindProperty]
public CatalogViewModel Model { get; set; }
public void OnGet()
{
}
public void OnPostSendEmail()
{
}
}
public class CatalogViewModel
{
[Required]
[Display(Name = "EmailAddress")]
[Placeholder("YourEmailAddress")]
public string EmailAddress { get; set; }
[Required]
[Display(Name = "PhoneNumber")]
[Placeholder("YourPhoneNumber")]
public string PhoneNumber { get; set; }
[Required]
[Display(Name = "NameAndSurname")]
[Placeholder("YourFullName")]
public string Name { get; set; }
[Required]
[Display(Name = "CompanyName")]
[Placeholder("CompanyName")]
public string CompanyName { get; set; }
[HiddenInput]
public string RecaptchaToken { get; set; }
}
I am trying to post from the form above, but it's not hitting the breakpoint in the cshtml.cs file. How can I do it?I am trying to post from the form above, but it's not hitting the breakpoint in the cshtml.cs file. How can I do it?I am trying to post from the form above, but it's not hitting the breakpoint in the cshtml.cs file. How can I do it?
"options.UseSqlServer<ObiyosisDbContext>(); options.UseOracle<OldSystemDbContext>();",
"options.UseSqlServer();" When I changed the code from the upper part to the lower part and ran it, the issue was resolved. Now it's not giving that error, even when I revert to the upper part. If it happens again, could I contact you for remote assistance?
I didn't see a server error in the link you provided
Hi, I want to establish connections to two separate databases (Oracle and MSSQL). When trying to connect to the Oracle database, I'm encountering an error similar to the one below: 'System.ArgumentException: 'Server' is an invalid connection string attribute.' How can I resolve this?
How can I find current user token?
hi, I don't understand how to obtain the token of a user who has logged in the 'ProjectB.Application' project.
Hi, I can perform the actions highlighted in green. What I want to do is what's marked in red. I cannot perform the action marked in red. With this code: 'await HttpClientAuthenticator.Authenticate(new RemoteServiceHttpClientAuthenticateContext(client, requestMessage, new RemoteServiceConfiguration(baseUrl), string.Empty));' I can make a request from Project B's frontend to the API in Project A. However, I cannot use this code in Project B's API, so I cannot obtain the token. Therefore, when I go from Project B's API to Project A's API, it returns a 401 error. How can I obtain the token of a user who has logged in to Project B's API? If I obtain the token, I can make requests to Project A's API using that token.
Hi, Both projects are monolithic projects, how can I make them work with a single token?