Questions




Answers
0
How can I get dd/mm/yyyy formatted current date in Javascipt?

I am trying to get today's date using Javscript, which I can do using new Date() but i would like to know, how can I get it formatted in dd/mm/yyyy and show it in datepicker input?

...
Read More
Javascript dd/mm/yyyy formatted current date
Answers
1
How to format currency string in C# to add commas in thousands place?

I have a string "10000.00", I would like to add commas in thousands place for a give string or number using C# .NET String.Format()? So I can show output as "1,00,00.00", something like this.

...
Read More
C# String.Format() add commas asp.net
Answers
1
Change Password in ASP.NET MVC identity, without old password?

I was trying to change password in MVC and looked at the link "How to change password in asp.net mvc" but it requires me to add Old password, which I don't want, so if I am admin user of website, I would like to change password in MVC asp.net identity without using old password, how can I achieve that?

...
Read More
MVC C# change password in mvc without old password
Answers
1
how to check if string is null or empty using jQuery or javascript?

Hello, I was trying to check if a string is null or empty using javascript or jquery , just like we do in C#. Need one condition, which can check both the requirements at the same time and calls ajax if value is not null or empty.

...
Read More
Javascript jQuery string is null or empty using javascript
Answers
1
Why does my vscode wont go as tree view?

I am trying to does my vscode wont go as a tree view, if the parent folder has one file (either file or sub-folder), it always append to the main folder.

...

Read More
Visual Studio VS-Code
Answers
1
There is already an open datareader associated - error in C#

I am trying to run a below query in my ASP.NET MVC project, but I am getting an error "there is already an open datareader associated with this command which much be closed first" in C#, how can I resolve it?

datareader-alread-open-C-sharp-min.png

Here is the C# code, which I am using

...
Read More
C# c# sql datareader already open c# sqldatareader already open
Answers
1
How to send Razor View as a Email with Model in ASP.NET MVC?

I am trying to send email in ASP.NET MVC, but it is not a plain HTML string, I need to convert Razor View with Model into string and then send it as a HTML content in MVC. So, How can I convert Razor view in HTML string with Model and then send it in MVC email? Thanks

...
Read More
MVC C# razor view as string in MVC send razor view in email
Answers
1
How to check if I am using localhost server or not in C# MVC?

I am trying to create a background job using hangfire as explained in this article "Background jobs in ASP.NET MVC C# using Hangfire.io" but I don't want to run this background jobs when working locally.

So, How can I check if I am on localhost in C# & ASP.NET MVC and not run this background jobs?

...
Read More
C# check if i am on localhost
Answers
1
How to make a div editable on Click?

I would like to make div editable to enter contents in it and on changing content, want to call ajax to save data in back-end.

I know we can do it using Textbox, but would like to make a <div> inside <td> to make it editable when user clicks inside it.

...
Read More
jQuery make div editable on click
Answers
0
How to update table variable in stored procedure from another user defined function in sql?

Scenario : User defined function return one table. If that table contains at least one row,one column in the table variable from another sp should get updated.

Should I use cross join on UDF to update table variable?

sql

...
Read More
Sql table variable Sql

Page 1 of 44