Tag - HTML

We’re Hiring – Nodejs Developer

JOB DESCRIPTION: Your primary focus will be the development of all server-side logic, definition and maintenance of the databases, and ensuring high performance and responsiveness to requests. You will also be responsible for integrating the front-end elements built by your co-workers into the application. Therefore, a basic understanding of front-end technologies is necessary as well. RESPONSIBILITIES: Designing,...

Examples Of JavaScript Applications

What is the purpose of JavaScript? Developers can create interactive and dynamic web pages with JavaScript. Since 1995, JavaScript applications have been powering the internet. JavaScript is now used for a wide range of purposes, both within and outside of the web. Continue reading to find out what JavaScript is used for and how it...

Custom validator scrolls page to the top in ASP.NET

If we add a ValidationSummary control to the page, its ValidationSummaryOnSubmit function invokes “window.scrollTo(0,0)” when page is invalid. That’s why the page scrolls to the top. To workaround this issue, we can assign a function to window.scrollTo which do nothing, so that window.scrollTo(0,0) will not take effect. This workaround is appropriate for the pages which...

A potentially dangerous Request.Form value was detected from the client ASP.NET

I got this error message when I try to submit a form with HTML Code, the default settings of the .NET Framework will not allow me to submit HTML Code to prevent cross-site scripting (XSS) attacks. To avoid this error set Validate Request to false in the Page Directive.ValidateRequest="false" but this is not recommended.

How to remove HTML tags from string in C#

I will show you three different methods to remove HTML tags from string in C#: 1. By using Regex: public static string RemoveHTMLTags(string html) { return Regex.Replace(html, "<.*?>", string.Empty); } 2. By using Compiled Regex for better performance: static Regex htmlRegex = new Regex("<.*?>", RegexOptions.Compiled); public static string RemoveHTMLTagsCompiled(string html) { return htmlRegex.Replace(html, string.Empty); } 3. By using Char Array for...