Welcome to imar.spaanjaars.com
How Do I Preselect an Item in a Drop-Down List?
Published 21 years ago
In HTML, it's pretty easy to preselect an item in a drop-down list. At design-time, or with a dynamic server page, at run-time at the server, all you need to do is add the selected attribute to the <option> element you want to select. If you want to select the item programmatically through JavaScript code, you'll have to follow a different route.
Read on ...
How Do I Get the Names of all Embedded Resources in an Assembly?
Published 21 years ago
Because the naming scheme of embedded resources is sometimes a bit awkward (you have to take the Default Namespace, folder names and resource file names into account), it can be useful to display a list of all embedded resources in your assembly with their Fully Qualified names. Put the following code in a method, like the constructor for your control for example, to get all the names in the Output window.
Read on ...
How Do I Allow My Web Application to Write to Files, Folders and Databases?
Published 21 years ago
Many Web sites these days use databases or text files to save information. To be able to save this data, IIS, the Web server, needs the required permissions to write to the disk or database. This FAQ will explain how you should configure your NTFS disk or database so your Web application can write to it.
Read on ...
How Do I Determine the Security Account that IIS Uses to Run My Web Site?
Published 21 years ago
It's important to understand the account that IIS is running under when you need to make changes to the security settings. If, for example, your Web application writes to files or to a database, you'll need to grant the correct permissions to the folder or database. Before you can change these security settings, it's important the know what account IIS is using. This FAQ details the various options available, both for "classic" ASP and ASP.NET applications.
Read on ...
Why Don't I See a Security Tab on the Properties dialog for My Files and Folders in Windows XP?
Published 21 years ago
You often need to make changes in the security settings of your NTFS disk, for example to allow your Web server to read or write to certain files. You make these changes on the Security tab of the Properties dialog for the file or folder you are working with. However, on a Windows XP computer that is not part of a network, this tab is often not visible. Follow these steps to enable this tab.
Read on ...
How Do I Insert a Null Value in an Access Database?
Published 21 years ago
When you need to insert a null value into a column in an Access database, you could use "" to indicate a zero-length string. However, a zero-length string is not the same as Null. To insert a Null value, simple pass the keyword Null for the column, as shown in the code example.
Read on ...
ADO Connection and Recordset
Published 21 years ago
This simple snippet demonstrates how to create and setup an ADO Connection to retrieve and display information from a database.
Read on ...
DocTypes You Can Use in Your HTML and XHTML Pages
Published 21 years ago
The following doctypes are available for HTML 4.01, XHTML 1 and XHTML 1.1.
Read on ...
How Do I Change the Background of an HTML Element Through Code?
Published 21 years ago
With a little bit of JavaScript, it's easy to change the background image of any object through code. All you need to do is retrieve a reference to the element you want to change, and then set its style.backgroundImage property.
Read on ...
How Do I Add an Additional Item To a Databound DropDownList Control in ASP.NET?
Published 21 years ago
It's a common practice to bind some data to a DropDownList or ListBox control. The data for these controls can come from a wide variety of DataSources including Arrays, ArrayLists, HashTables and DataSets. Quite often, though, you'll have the need to add an additional item to the beginning of the list.
Read on ...Mobile: False
Crawler: True
I: False