Showing posts with label HTML attributes. Show all posts
Showing posts with label HTML attributes. Show all posts

Thursday, June 24, 2010

DataTable Column Mapping for XML

This article will demonstrate how to determine or set a SYSTEM.DATA.DATATABLE.Column as different XML nodes.

// The user must include into their class:
using System.Data;

// ==========
// To determine if a column is an XML attribute after
// loading data

// --- after loading data into the dataset
// --- and finding the table needed
mytable.Columns[].ColumnMapping == MappingType.;

----> There are 4 types
Attribute
Element
Hidden
SimpleType

Columns.MappingType Gets or Sets the mapping type for the column.

Thursday, June 11, 2009

Show Loading gif on button click

I wanted to show a loading gif on a user button click, because the action would take a while. So this is the solution I found.



You make the div style.display = "none;" then on button click, you set the style.display = "";

Friday, May 22, 2009

HTML input checkbox

The html input tag 'checkbox' will beck checked no matter what value it is set to the attribute 'checked'.  For instance,

checked='' ... or ... checked='checked' ... or ... checked='true' ... or ... checked='false'

will all set the checkbox to checked.

The 'checked=[value]' needs to be totally removed from the attribute list if a non-checked checkbox is desired.

Friday, April 17, 2009

ASP.NET MVC HTML helpers attributes

In order to set attributes for html elements using
"Html.ActionLink(, , , )"

The attributes should be like
new { @attribute=value, ...})

an example of this would be:
new { @id=doneID, @class="invisible"})

The "doneID" is a string variable that was defined earlier in the ' ' of the page.
The @class value is just a string.