Question:How to convert list of lists to single list in c# using lambda expression?
Description:I have records coming from database where each item can have multiple TagIds(List<string>) assigned to it. I have combined the lists but currently it has become a list of lists as shown below, List<List<string>> listOfLists=databaseQueriedItems; but I need the items in one list like following one(i.e I want to flatten the hierarchy) List<string> singleListOfStrings;
Posted by: Umer khan | Posted on: Aug 29, 2020
Question:Saved user, password appearing in wrong fields even autocomplete=off is not working in mvc5?
Description:I have a mvc view(page)for verify otp where I have three fields for verification code,password and confirm password but in the code field saved email address is appearing, I have tried using autocomplete=off with no luck
Posted by: Khalid Abbas | Posted on: Aug 26, 2020
Question:How to check if the flags enum value has/contains other flags enum values in c#?
Description:For example I have Following flags enum and I have stored a number 7 in the database now I have to check if 7 contains the requested number let say 3(which is for OptionOne and OptionTwo) it should return true, in this way I have to compare a single int value with a single int value for the following flag enum. [Flags] public enum MyFlagsEnum { None = 0, OptionOne = 1, OptionTwo = 2, OptionThree = 4, }
Posted by: Junaid Aziz | Posted on: Aug 21, 2020
Question:how check for not null against a field in mongodb using mongodb compass?
Description:I have string field "UserId" for which I need to get all those records where "UserId" not equal to null, i.e "UserId" has some value for the record
Posted by: Umer khan | Posted on: Jul 28, 2020
Question:The setup for this installation of Visual Studio is not complete. Please run the Visual Studio Installer again to correct the issue.
Description:I am using Visual Studio 2019(community version) on my local development machine for months and today I started getting error "The setup for this installation of Visual Studio is not complete. Please run the Visual Studio Installer again to correct the issue." And unable to run visual studio any more.
Posted by: Samantha Jones | Posted on: Jun 25, 2020
Question:Easiest way for deploying a asp.net core web api on heroku sever?
Description:I have developed an asp.net core web api with mongodb by the help of following link . Now I need to deploy this web api on heroku server while I already have my mongodb on mongodb cloud and I also have created app on heroku server.
Posted by: Umer khan | Posted on: Jun 08, 2020
Question:Need to create a .net core web api using MongoDB as backend storage database?
Description:I am new to .net core and mongodb as well. I have prior experience of using .net and mssql can anyone suggest me a complete working example, so that I can get an idea about the architecture of such asp.net core api.
Posted by: Umer khan | Posted on: May 22, 2020
Question:how to get the last column used/last column that has some data in a excel file programmatically by using C#?
Description:I need to iterate through a single row where I don’t know the end range as I have a dynamically generated excel file which might have different number of columns used every time. I am using following code, taken from reference code List<string> myValue = new List<string>(); //unknown end Range //need to get the Last data filled column or Last Column used in the following line string endRange="D1"; foreach (Range row in sheet.Cells.Rows.Range["A1", endRange]) { Range cell = (Range)row.Cells[1, 1]; if (cell.Value2 != null) { myValue.Add(Convert.ToString(cell.Value2)); } }
Posted by: Peter Andre | Posted on: Jan 22, 2020
Question:How to dynamically generate sitemap xml for an asp.net mvc website?
Description:I have a website developed using asp.net mvc (c#) which contains some static pages and also some dynamic pages i.e where the content is fetched from database and is dynamically increasing as well, So I need to build such a sitemap for which I need to code for once and it take care of the future items that needs to be included in the sitemap.
Posted by: Khalid Abbas | Posted on: Jan 21, 2020
Question:How to get the list of all available powerpoint control’s ids?
Description:I need all available powerpoint (currently i am using office 2016) control ids as I have to utilize them for development purpose. it will be good if i can have ids for older versions of powerpoint which might be useful to avoid any compatibility issues.
Posted by: Samantha Jones | Posted on: Jan 21, 2020