Questions




Answers
1
How can I change format of jQuery Datepicker date?

I have a basic question, which I am not able to understand, How to format the date of jQuery datepicker in mm-dd-yyyy?

Here is my code

...
Read More
Answers
3
how to convert datetime from one timezone to another in C#?

I am working on a C# project in which user can change datetime column time zone using its profile page. For example, when I log in into the system, I can change default time zone (PST) to Indian standard time(IST) after doing all the column of date time should show time-related to IST time zone.

Basically, we are saving all the datetime value in the database as PST time zone, now based on user-selected time zone I need to show datetime.

So I would like to convert my PST datetime (8/16/2016 12:56 PM) to IST or any other timezone selected by user dynamically using C#.

How can I convert datetime from PST to any time zone using C#?

...
Read More
Answers
1
Getting error "Method arguments are not valid! See validationErrors for details " when posting ajax beginform in mvc

When I am trying to post regular Ajax.BeginForm in my asp.net MVC project (asp.net zero boilerplate project), I am getting this error

Method arguments are not valid! See ValidationErrors for details

Here is the image of the error

...

Read More
Answers
1
How to add, edit & delete data into database using treeview with checkbox in ASP.NET MVC with entity framework.

How to add,Edit and delete data into database using treeview with checkbox in ASP.NET MVC with entity framework.

...
Read More
Answers
2
Show correct message based on entering URL in C#

If user entering url across multiple country wise, if url exists message should come like : facebook.com exists in DE,IN. Here is the current code

...
Read More
Answers
2
How to allow only one file to upload in dropzone js?

I am using jQuery Dropzone js plugin in one of my projects and I would like to know how can I force it to allow only one file upload at a time.

I know about maxFiles attribute, but what I need is that only one file should be there in Drag and drop area, if i upload another file, last one should be automatically removed.

Here is my current code

...
Read More
Answers
3
How to disable paging in jQuery Datatable?

I am using jQuery Datatable in one of my projects and I need to remove jQuery datatable paging and other related details like 'Showing 1 of 5 pages' etc, here is the image of the details which I want to remove

...

Read More
Answers
2
Populating DropDownList with values showing error There is no ViewData item of type IEnumerable SelectListItem that has the key Name

I Have populated the DropDownList with the roles from the AspNetRoles, when I am registering a new user and allocating a role an error is thown

"There is no ViewData item of type 'IEnumerable<SelectListItem>' that has the key 'Name'."

My AccountController :

...
Read More
Answers
3
Datetime Format Regex (MM/dd/yyyy) Javascript

I want to validate the date format on every keypress/keyup that the user's typed.

I've researched for what i'm trying to achieve. And I've found the solution here:

https://stackoverflow.com/questions/36009414/regex-to-validate-date-yyyy-mm-dd-while-typing-on-keyup 

(i was referring to @bobble bubble's answered)

but the format was YYYY-mm-dd. So, I tried to reverse to the format i was looking for to (MM/dd/yyyy).

But i cant get throught with validating every press that the user's typed. What happend was its validate as whole(regex) not one by one.

I also read his explanation about non-capturing group. But still, i can't get it.

 

Happy Coding!

...
Read More
Answers
2
Can i have example of declare table and temp table in sql ? and how the update operation can be used on it ?

Can i have example of declare table and temp table in sql ? and how the update operation can be used on it with real life scenario ?

 

...
Read More

Page 27 of 54