Questions




Answers
3
How to format JSON date into valid date using javascript or jquery?

I am getting JSON result from server, with date as given below

...
Read More
Answers
2
Feeds with comment in Xamarin.Forms

I have been tasked with creating a discussion section/ Feeds with Xamarin.Forms.

I have looked for examples and found nothing.
I have to create a section of the app where Users can ask a question and other users can comment and/or like question. I basically want to create something like Facebook Feeds or Stackoverflow but must simpler.

I need some guidence as I am fairly new to Xamarin. I have Generated the Models, And I'm using Web Services. 


Any help will be appreciated.

...
Read More
Answers
1
How to access a variables and functions of a specific class from another class in C#

How to access variables and functions of a specific class from another class in C#

Please give an example.

...
Read More
Answers
3
How do i format or beautify code in Visual Studio code?

I have just started using Visual Studio code, but i am not able to format code in it, I have tried ctrl k+ Ctrl d but it doesn't work, any helpful link for it?

...
Read More
Answers
2
how to save Excel data into database using MVC C#?

I need some help in my asp.net MVC web-application, how can I Upload an excel file and extract or save(import) excel file data into my MS SQL server database using asp.net MVC and C#?

Any reference link or code will help, as I want to perform both uploading a file and saving its data into database, any combined solution will work

thanks

...
Read More
Answers
4
What does Content type and data type mean in jQuery ajax request?

I have been working with jQuery for some time now, & while I was working on Ajax GET, iPOST methods, I am not able to understand exactly, what is  content-type and datatype in a POST request, in this example request

...
Read More
Answers
1
removing a particular row from the table using MVC C# throws an error

I am trying to delete a row from database in asp.net MVC C# using the code below

...
Read More
Answers
2
Detect language of latin word on asp.net mvc using google translation api

Hi, please how we can detect if a latin string is in English or French or not recognized on asp.net MVC razor c# using google translation API ??? Thank u :) ...

...
Read More
Answers
4
how to get complete url and base url in MVC?

How can I get complete and base type of URL in C# asp.net MVC web-application, controller, for example, if my web-application URL is https://qawithexperts.com/questions/111/invalid-uri-the-format-of-the-uri-could-not-be-determined-er

...
Read More
Answers
2
"Invalid URI: The format of the URI could not be determined" Error in C#

I am trying to run the below code in my asp.net MVC web-application, to get the URL of first image(<img>) in the HTML string, using the code below

       public static List<Uri> FetchLinksFromSource(string htmlSource)
        {
            List<Uri> links = new List<Uri>();
            string regexImgSrc = @"<img[^>]*?src\s*=\s*[""']?([^'"" >]+?)[ '""][^>]*?>";
            MatchCollection matchesImgSrc = Regex.Matches(htmlSource, regexImgSrc, RegexOptions.IgnoreCase | RegexOptions.Singleline);
            foreach (Match m in matchesImgSrc)
            {
                string href = m.Groups[1].Value;
                links.Add(new Uri(href)); //getting error here
            }
            return links;
        }

but I am getting this error "Invalid URI: The format of the URI could not be determined" when I run this code, here is the image of the error

...

Read More

Page 43 of 54