Click here to Skip to main content
15,891,136 members
Everything / Web Development / HTML

HTML

HTML

Great Reads

by Colin Eberhardt
This article describes the development of a cross-platform HTML5 application for Windows Phone and iPhone.
by Jovan Popovic(MSFT)
Mapping properties in EF model to database columns that contain JSON
by Marcelo Ricardo de Oliveira
A shoot'n'up HTML5 game made with Phaser game framework
by Chris Maunder
Some tips and tricks to help you format your articles and tips simply and consistently.

Latest Articles

by Xavier Junqué i de Fortuny
Converts MathML coded string to/from plain text string
by Member 4206974
FormGen, a JavaScript Form Generator
by Shao Voon Wong
C++ SAX library to simplify XML parsing
by Dan Letecky
Weekly HTML5 event calendar with CSS themes, drag and drop support, date navigator. PHP and ASP.NET Core REST API backends.

All Articles

Sort by Updated

HTML 

8 Apr 2010 by #realJSOP
You're going to have to write your own web browser.
14 Apr 2010 by #realJSOP
You don't have to change it to XML. Get the HtmlAgility library, and use that. You can find it on CodePlex, and I'll leave the googling to you.
24 Apr 2010 by #realJSOP
Constrain it in a div. I believe you can set overflow to off, and whatever is displayed outside the dimensions of the div will not be displayed.
31 May 2010 by #realJSOP
Once you get your document loaded, just do a string.IndexOf(""). If the method returns anything less that 0, the string you were looking for doesn't exist. It's faster than using the DOM stuff.
24 Jul 2010 by #realJSOP
You probably can't do it without using javascript.
6 Aug 2010 by #realJSOP
How is the data displayed in the html? Using a table? If so, you could just get the table from the html, and at that point, put it into a XElement. From there, you could use LINQ to get all distinct rows.
27 Sep 2010 by #realJSOP
We don't do homework for people, and even if this isn't homework, we certainly don't work for free. If you need that kind of service, there are web sites that arrange for you to connect up with real programmers (which you obviously are NOT).
4 Oct 2010 by #realJSOP
HTML5 has nothing to do with whether or not your site uses ASP.Net. It has everything to do with whether or not your users' browsers will support it (HTML5, that is).
22 Dec 2010 by #realJSOP
Since you didn't say one way or the other...If it's a USB device, you can simply intercept the approprioate windows message that notifies the system that a new device is plugged in. Here's a CodeProject article that I found using google.Enumerate and Auto-Detect USB Drives[^]
26 Dec 2010 by #realJSOP
Use a asp:Button control and handle the click event in the code-behind for the page.
18 Jan 2011 by #realJSOP
Sure, it's okay, but you have to question the usefulness of having long strings of X's as content.
18 Jan 2011 by #realJSOP
Didn't the web cam come with software that does the capture/upload part for you?
25 Jan 2011 by #realJSOP
I have an article that uses HtmlAgilityPack to parse some of the Codeproject article/user pages. You could use that as an example.CodeProject Article Scraper, Revisited[^]I don't rely completely on it, but there is some code in ther that uses it.
7 Feb 2011 by #realJSOP
Windows service for synchronizing folders
14 Mar 2011 by #realJSOP
Okay, you didn't like the last answer, try this one: Employee number* Employee name
6 Apr 2011 by #realJSOP
You can't directly call a code-behind method from javascript because that would be crossing the client side/server side boundary. I would think a workaround would be to set a hidden form variable to inidcate what method you want to call (in the event that there are more than one), and then call...
6 Apr 2011 by #realJSOP
A little googling goes a long way. I searched for "embed word document in html page", and this was the first of 368,000 hits:http://labnol.blogspot.com/2007/03/how-to-embed-microsoft-office-or-pdf.html[^]
7 Apr 2011 by #realJSOP
I'm not sure what you're doing there, but try setting max-width:100%.
12 Apr 2011 by #realJSOP
1. is codeproject is a database driven site?Yes.2. If codeproject is a database driven site then why its pages are like static pages?The question/votes/comments/solutions are all stored in the database. the page is built dynamically, and I bet they use URL rewriting so that it shows...
18 Apr 2011 by #realJSOP
That's not what PHP is for. PHP is an interpreted scripting language.
5 May 2011 by #realJSOP
I don't know if this is a coipy/paste error or not, but you have two quotes where you're declaring the div's ID.It should be:
2 Jun 2011 by #realJSOP
You can't. If the page is rendered, they can see the html that causes the render. You could create a flash page or silverlight, but even then, some HTML is required to allow those technologies to work.
16 Jun 2011 by #realJSOP
I have a ap.net web that displays data 5 items at a time. I need to allow the user to print this data (without printing all the other crap on the page). My first thought was to use iSharpText to create a pdf file, but iSharpText has been problematic and there's no real (immediate) support for...
16 Jun 2011 by #realJSOP
I found "a way".Instead of creating a .DOC file, I create a .HTML file, and transfer it that way. At that point, the user can use IE to print it.
25 Jun 2011 by #realJSOP
Yes. Just add it to your web site project. A HTML page doesn't have a "code file" (if you're talking about something like the aspx.cs file). You can also add legacy asp pages to your site, but unless you have a compelling reason to, I would avoid it.
27 Jun 2011 by #realJSOP
If it has an ID, you can retrieve the control using javascript, and set the absolute position, width, and height using the style element. Google is your friend.
2 Jul 2011 by #realJSOP
HTML isn't a programming language - it's a markup language. You need to use javascript (or some other script technology) to do this. maybe he wanted you to simply rearrange the table with cut/paste.
10 Jul 2011 by #realJSOP
You can't design your website assuming the next version of a given browser is going to be fixed, much less that there will be wholesale switch to the newer version immediately upon its release. Fix it now.Regarding the placement of the footer, what is your intent? Is the footer supposed to...
11 Jul 2011 by #realJSOP
No. We can't give you the templates because we don't have them. If they put their templates info files, you may be able to get to them by viewing the source of the ebay web page, finding the file names in the section, and then browsing directly to those files. No guarantees that's gonna...
19 Jul 2011 by #realJSOP
Try this:
26 Jul 2011 by #realJSOP
First, you don't need a web service to do "make the file accessible". Just code up a web page that has no rendered output and that does a Response.WriteFile with the file in question. You don't need to parse the file to make it accessible. Your question is vague at best.
27 Jul 2011 by #realJSOP
You need to learn how to spell complete words.
28 Jul 2011 by #realJSOP
You're trying to use javascript events to run asp.net code-behind. You can't do that. Try writing some javascript code to do it.
30 Jul 2011 by #realJSOP
Silverlight
31 Jul 2011 by #realJSOP
Go here[^]
12 Aug 2011 by #realJSOP
For Style tags, the HTML standard says they go there. For script tags, it depends on the script and its function. If you're loading a .js file, it goes in the head section. If you want the code to execute as part of the rendered page and it doesn't live in a method, and if we're talking about...
17 Aug 2011 by #realJSOP
Ever heard of google? 1.7 million result for "kaltura api" can't be wrong.http://www.kaltura.org/kaltura-api-apiv3-getting-started[^]EDIT (to answer your 2nd question) ==========================If you're not a developer, maybe you should hire one.
24 Aug 2011 by #realJSOP
Epic fail.This essentially qualifies as spam.
6 Sep 2011 by #realJSOP
Fill the dropdown list with the desired time values, and react to the selection of a new time.
6 Sep 2011 by #realJSOP
Over 26 MILLION results for "joomla add template"[^]
8 Nov 2011 by #realJSOP
The onclick function you're trying to executre is a javascript function. If you were to use Wireshark to analyze what the page does when the user clicks abutton, you will be able to figure out the correct querystring to pass to make the right things happen. BTW, wireshark is a free tool, and...
28 Dec 2011 by #realJSOP
Google reveals all.This book is written in gujarati, so I imagine there MIGHT be something about using the appropriate font on your web site: http://books.google.com/books/about/MIcrosoft_ASP_Net_with_C_Gujarati_Editio.html?id=-1L9qvXBZmcC[^]And was the first link of 184,000 returned...
7 Apr 2018 by #realJSOP
Parse CSV files.
25 Feb 2018 by #realJSOP
Abusing attributes, and loving it.
11 Oct 2016 by #realJSOP
A GPS class with a coordinate parser, distance calculation, and bearing calculation.
8 Nov 2016 by #realJSOP
Delete the semi-colon after the curly brace
4 Jan 2017 by #realJSOP
In your InputUserDetails method, put all of the code in a try/catch block, and put a breakpoint in the catch part. If there's a problem with your sql stuff, it will be revealed in the exception.
23 Jan 2017 by #realJSOP
You don't need to select controls. You simply need to know the proper url/querystring format/contents, and submit that with the WebClient object.
11 Feb 2018 by #realJSOP
Yes, you can actually host a web page in your own application. I did it in this Codeproject article: CodeProject Article Scraper, Revisited[^] Scroll down to the section labeled "Visual Presentation".
12 Mar 2018 by #realJSOP
Simply comment out the columns you don't want to display. Yes, it really is that easy.
16 Mar 2018 by #realJSOP
First, why are you worried about the index of the item you're editing? Seems weird given the nature of EditFor. Don't do it on the client side. Do it this way: @foreach(var item in Model) { @* if you really need the index, you can do this in a foreach loop *@ int index =...
16 May 2018 by #realJSOP
I would look into storing a rendered HTML page in a binary column. This means you have to convert the page into a byte array and pass that byte array to your stored procedure, and the stored procedure would store the byte array into the appropriate column of your table. ======================= ...
22 Feb 2019 by #realJSOP
Mitigate the browser flash between page navigation on your site
13 Mar 2019 by #realJSOP
This will allow A-Z, a-z, and 0-9: /[^\w]|_/g
5 Apr 2019 by #realJSOP
If you want it on the right, why are you using float:left? Also, you're using position:fixed. I believe this will prevent float from working at all. Beyond that, we don't have any idea what your markup looks like, so we have no real idea how the CSS you posted will affect it.
6 Apr 2019 by #realJSOP
BWA HA HA HA HA!!!!!! Seriously!?
24 May 2019 by #realJSOP
After displaying the error message, redirect back to the login page.
25 Jun 2019 by #realJSOP
Look at the Dev debug console in your browser and see if it can even find the file. (look for the "Network" tab in the console). It will show you the HTTP result code (usually 200 or 404), and if the result code is 404 it can't find the file. If that's the case, you'll have to modify the...
21 Jul 2019 by #realJSOP
Clear your browser's cache. It happens to me quite frequently.
13 Dec 2019 by #realJSOP
Implement "user controls": How to: Create an ASP.NET User Control | Microsoft Docs[^]
10 Dec 2011 by $ultaNn
i have made a slide show in html i want to deploy it in share point 2010 can any one show me how to do it ..... show me the steps....
20 Jan 2014 by $ultaNn
I have images in Server i want to put some link or Path of image in email when email send through outlook the image should appear from serverI want just link or path or HTML tag which should be displayed the image from server
22 Jan 2023 by $ultaNn
i am trying below code to print only from javascript without html popup page var a = window.open('', 'PRINT', 'height=900,width=600'); a.document.write(''); a.document.write( '' + ...
25 Jul 2011 by 'Anil' Radhakrishna
A mash-up of sorts built using Microsoft's jQuery Template plugin along with G Birke's jQuery Pagination plugin & a photo-stream from Flickr acting as a data source
29 Dec 2014 by 'Anil' Radhakrishna
SPA to track food expiry dates shows how to implement CRUD functionality through Azure Mobile Services HTTP OData/REST calls, without writing any server-side code
30 Sep 2013 by (pmac)
Could you give me a sample code to highlight multiple column in a single row of HTML table.I follow this : JSFIDDLE[^]
15 Jul 2001 by (Steven Hicks)n+1
Learn the basics of WML without any previous knowedge of XML
5 May 2016 by .net333
Hi Guys, I need to store first and last names in a sql table using wcf service with html page. Created Test Service and wrote data code in service layer. i tested it from rest client. it's working fine.now i want to call the insert method in html page. How can i do this? i tried with...
22 Nov 2013 by .NetDeveloper09
Is there any solution or complete solution to cross browser compatibility issues, can any one help me please
22 Nov 2013 by .NetDeveloper09
i solved it myself thanks for help everyone
26 May 2007 by .Suchit
Tinkering with SilverLight to get a 3D scene rendered in the Browser.
14 Sep 2014 by /\jmot
Store all branches in your database with their address.trywhen you are going to show the addresses in a MAP, then find their longitude and latitude using code, and place it in your map(using loop).
18 Sep 2014 by /\jmot
i used the html select.. trying to get it as dropdown list like this.. DropDownList ddlSerialNo =...
7 Feb 2015 by /\jmot
use..string rootFolderPath = @"C:\\SomeFolder\\AnotherFolder\\FolderCOntainingThingsToDelete";string filesToDelete = @"*DeleteMe*.doc"; // Only delete DOC files containing "DeleteMe" in their filenamesstring[] fileList = System.IO.Directory.GetFiles(rootFolderPath,...
23 Feb 2015 by /\jmot
Like any language, HTML5 has a grammar and a vocabulary.Grammar goes at the top of every HTML5 page.VocabularyThe HTML5 word means "this page is written in HTML5" as opposed to, say HTML 4.01.Why, you ask, don't they just write or even a zesty...
16 Jan 2010 by 002comp
Hi All,I am stuck executing the Java applet file using jnlp where Java is not installed. I need the plugin to be embedded so that if Java is not found, it should run automatically.I tried using this:
7 Dec 2022 by 007 007
These are the errors I've been getting: WARNING in [eslint] src\Header.js Line 19:22: 'dispatch' is assigned a value but never used no-unused-vars src\LogIn.js Line 10:10: 'state' is assigned a value but never used no-unused-vars...
20 Dec 2022 by 007 007
So, I'm able to create an account and to successfully get to the MyAccount page, see who's currently logged in to MyAccount page and log out of the MyAccount page (MyAccount.js). However, when I try to log in using an email + password by pressing...
7 Jan 2023 by 007 007
The application is working perfectly, and the Navbar behaves as expected. However, I don't know why the spacing between my components got suddenly messed up. - App.css doesn't contain anything/doesn't have any code Here's my Index.js: ...
5 Mar 2013 by 09hadi
I am developing a website but the problem is that I havent worked with PHP or anything other than ASP.Net/C#. I have to make a registration form and have to save the data. Any ideas or help?
30 Jul 2012 by 0aFzaL
Hi,I was looking for a kind of Software that would allow me to generate bulk HTML Files, according with the data. At The moment I am using Lotus Domino from IBM, but it is returning some errors, and I don't know what else to change. I was looking for an alternative software that could allow...
18 Jan 2012 by 1123111233
if i zip a second html file into the gadget and link to it like that: Linkthe link opens in the gadget,BUT! if i link to the page like that it opens in a new window Link (if i test it in a browser it opens in the same...
27 Nov 2022 by 1234Amit
I'm developing a PHP calculator, actually my question is when i click to any of the input buttons the value should display in the text box. below is the code what i have tried with, but im unable to get the resut. can any one help me in my work,so that how i can get the desired result. What I...
20 Oct 2019 by 123arvind123
Hi Guys, I am using a dropdown list in my apps.The dropdown have near about 100 entries.I want to display first 10 entries and for the remaining entries i want to display a scrollbar for that. Is anyone have any idea that how to accomplish this? You can...
22 Jul 2011 by 123arvind123
Hi Guys, I want to prevent copy-paste and drag-n-drop to my html textbox. Is it possible? If yes then how? Thanks & regards, Arvind Thakur
29 Jul 2011 by 123arvind123
Hello Guys,I am executing a simple example of selecting the item from the dropdown list by using the value of a textbox.The idea is:If I have a dropdown list, suppose with values red, blue, green, yellow and so on.And a simple html textbox.Now suppose if I type red into the...
31 Jul 2011 by 123arvind123
Hello Guys, Well I am converting a web application which is made using html, javascript, css and ajax.Now I also want to open this apps on the android tablet but I do not want to change the coding techniques because this apps will going to open on the browser of the...
2 Aug 2011 by 123arvind123
Hello Guys, Well from last couple of weeks I am developing an application using html, javascript on android emulator3.0which I am running on my desktop.To run my programs I use webkit browser which I think default one for the android emulator and it is showing many problems to...
8 Aug 2011 by 123arvind123
Hello guys,I have a drop simple dropdown list.I want to replace the default textbox and select dropdown arrow of the list using an image.Like the dropdownlist will popup when i click on the image.I don't know whether my question is feasible or notIs anyone have any idea that how to...
9 Aug 2011 by 123arvind123
you can use position:fixed in your css code for the div which you want to fixed.
17 Aug 2011 by 123arvind123
Hello Guys,I am doing a simple example of autocomplete textbox.Well whenever I am typing anything in the textbox it shows me the existing options as we know the default functionality of autocomplete textbox. Now I need that when I select one of the options from the autocomplete list droping...
19 Aug 2011 by 123arvind123
Well I am developing a lookup using window.open object for the web apps which runs on the webkit browser of android tablet.Now the problem is the object is not displaying to its given height & width on the tablet while it is displaying good on the windows desktop.Following is my...
25 Aug 2011 by 123arvind123
I have a list like_Value1 = "'apple','ball','cat'....so on";If I know that apple exists in above list.How to get index of whole string from the list.Like apple should have the index 1, ball should have 2 and so on.What is the javascript code for this stuff?
26 Aug 2011 by 123arvind123
I am developing a web page in which there is a requirement of many autocomplete textbox. As I am new to javascript it is very tough for me to make my own autocomplete textbox, so I have searched many autocomplete textboxes js from the internet, but each example is working only for one textbox....
29 Aug 2011 by 123arvind123
Hello Guys,I have to define a textbox in html whose maximum size should be 3.Now IfI am entring -100 then these are 4 characters but I want that user should allowto enter 100 or -100.If I define size="3" then it will not allow -100.so i want to know can we define size of the textbox...
19 Dec 2011 by 123arvind123
Well guys, i was just doing a simple stuff of executing system copy, delete etc. commands using execCommand method of js. I have made two textareas, in one i am inputting some text and by hitting on the buttons i am executing copy, cut etc. commands.Problems::::---- In this the paste...
16 Jan 2022 by 123usersomeone
I need to write a loop which adds 10 div elements and sets the contents to the count value ( 1, 2, 3, …). Set the color of the first five elements are red and the last five elements are green using these methods : attr(), property() and style() ...
17 Jan 2022 by 123usersomeone
If the element in my array is a character I want to display the element with red color and if the array element is an integer I want to display the element with purple color. What I have tried: This is the code I have so far. I cannot figure...