Questions




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

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

Please give an example.

...
Read More
C# .Net
Answers
0
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
visual-studio-code code-formatting code-beautify php c#
Answers
1
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
asp.net save-excel-data-in-database sql-server c#
Answers
1
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
javascript jQuery Ajax content-type data-type
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
asp.net mvc removing-row delete
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
Google translation api asp.net-mvc C# razor
Answers
1
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
MVC asp.net url uri iis
Answers
1
"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
C# asp-net-mvc invalid-uri asp.net
Answers
1
how to remove border from iframe in HTML?

How can I remove the border from iframe using HTML or CSS?

Suppose this is my iframe

...
Read More
html css iframe-border
Answers
1
How to Pass a value from asp.net (.aspx) page to HTML page

How can I pass value from C# web-forms (.aspx) to html page?

 

...
Read More
asp.net web-forms C# html

Page 1 of 12