Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

158
Views
DatePicker no vincula el valor en Blazor

Estoy usando el selector de fechas en mi componente para vincular el valor a mi método en blazor. el valor siempre está vacío.

Aquí está mi componente:

 <input data-provide="datepicker" class="col-sm-2 form-control" @bind="date_selected" data-date-format="yyyy-mm-dd" style="width: 300x ;height:35px;"> code{ string date_selected; public async Task GetTags() { AllTags = await Task.Run(() => tagsService.Map( date_selected)); } }

mi script java:

 $( document ).ready(function() { $("#from-datepicker").datepicker({ format: 'yyyy-mm-dd HH:mm:ss' }); $("#from-datepicker").on("change", function () { var fromdate = $(this).val(); alert(fromdate); }); });

¿Tiene alguna idea de por qué no puedo obtener los valores y cómo puedo resolverlo?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

No estoy seguro de lo que está tratando de lograr, pero supongo que puede hacerlo con Blazor puro. Tal vez algo como:

 <input type="date" @onchange=HandledateChange /> <div>You selected: @date</div> @code { string date = ""; async Task HandledateChange(ChangeEventArgs args) { date = args.Value.ToString(); } }
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!