Skip to main content

All Questions

Tagged with
0 votes
0 answers
30 views

ASP.NET MVC datepicker doesn't show calendar

I'm trying to add datepicker, however when I try to use @html.TextboxFor, the calendar is not popping up. As for EditorFor to input="date" options, they show mm/dd/yyyy format when I need dd/...
DeP.'s user avatar
  • 1
0 votes
0 answers
112 views

Showing/hiding a div after datepicker date selection

I want to show/hide a div when I select a date in the datepicker, or when the textbox associated changes its value. I'm trying to intercept with jquery the selection, but it just won't fire. I attach ...
V_G_'s user avatar
  • 1
0 votes
0 answers
40 views

jQuery datepicker time formating for ASP.NET MVC

I'm having a bit of formatting problems: @Html.TextBoxFor(x => x.Show_Date, "{0:MM/dd/yyyy hh:mm}" My Date Picker: $(document).ready(function () { $('#datepicker')....
Kosta 's user avatar
  • 43
0 votes
3 answers
2k views

Datepicker with only Years

I'm trying to implement an input datepicker in my asp.net-mvc project that display only years to create/edit new values of my model. I want the day and the month to be always the same (31/12/year) and ...
Keras-JOB's user avatar
  • 125
0 votes
1 answer
195 views

@html.TextBoxFor model value is not setting/prefilled/appearing for the type date

I have an @html.TextBoxFor where the type I have specified is date. On rendering the view the model value (which is coming from database) is not setting. My code looks as follows. <tr> <...
Shruth L's user avatar
0 votes
1 answer
628 views

MVC Razor setting datetime does not display date

I would like to set the value based on a Tempdata but it is not showing . My TempData value stored is '2012-09-28'. I tested both below but it is not displaying in the datepicker: Model.cs [...
Swaggrammer's user avatar
0 votes
1 answer
72 views

ASP.NET COMPLEX Script problem; How can I make a combination of TagList with DatePicker?

Well I would like to have something special in my ASP.NET Core application, which I know it requires a very custom and complex Script to do so. Let's say I have a model code like this one, which has a ...
Diego Errázuriz's user avatar
0 votes
1 answer
138 views

Why DatePicker is returning a null after when post

Here is my problem so after the Data is successfully created, All the data is inserted into the database. So I wanted to edit the info, the others field works fine but the DatePicker is broken After I ...
user avatar
1 vote
1 answer
314 views

default value or value from the model for datepicker

I implemented a calendar using datepicker, but I can't assign the current date to a field to add an entry to the database, or a date from an existing model to edit. Model [Required] [DataType(DataType....
sharpdlt's user avatar
0 votes
1 answer
99 views

JQuery datepicker not sending selected value by posting in my asp.Net core application

Please forgive me if I am asking a previously asked question. But I get stacked in this problem. Please help me. I am using jQuery datepicker in my project. I can see the datepicker in browser well. ...
Jahedul Hoque's user avatar
0 votes
1 answer
607 views

DatePicker sets date several years forwards/backwards on click

I'm trying to select a date period using two datepickers (from bootstrap4), but when I press the button to open the picker, it changes the model's current date to either a date 1 year ahead or several ...
Aletho's user avatar
  • 117
2 votes
1 answer
1k views

C# MVC EditorFor does not show passed value

I thought that this would be easy, but I have got problems showing the passed value in the editor box. I pass some default DateTime in a Model to a View and I want to use EditorFor, because it is have ...
Blagalin's user avatar
  • 839
0 votes
1 answer
212 views

Is it possilbe to set altField property of persian datepicker dynamically from data-altFiled property?

Is it possible to set altField property of persian datepicker from data-altFiled property of the element instead of setting it like '#elementId' or '.className' ? I have tried so far: @Html....
roozbeh S's user avatar
  • 1,094
0 votes
3 answers
3k views

How to set value of default date in DateTime EditorFor

I have tried different approach to make a dateTime text box, this is the one that works, but the problem is I cannot set a default date. Here's what I am working on: [DataType(DataType.Date)] [...
AdorableVB's user avatar
  • 1,393
3 votes
3 answers
8k views

Uncaught ReferenceError: $ is not defined after applying Bootstrap Template

I am working on a MVC project. I downloaded a bootstrap theme called argon and tried to integrate with MVC. I referenced all the Argon related css and javascript files in Bundle.Config. I think ...
JK1990's user avatar
  • 63

15 30 50 per page
1
2 3 4 5
21