Newest Articles
I have a web application of asp.net hosted on iis 7.5. From my server i need my clients to download the android apk, so they can pull them up on the Android browser to download and install them. I quickly ran into a 404 and realized I hadn't added the APK MIME type to IIS (7.5). This is what I added:
File name extension: .apk
MIME type: application/vnd
...more
To use the following javascript function, you can check or uncheck all checkboxes in your form.
function CheckUncheckAll(isChecked){
var w = document.getElementsByTagName('input');
for(var i = 0; i < w.length; i++){
if(w[i].type=='checkbox'){
w[i].checked = isChecked;
}
}
}
...more
var url ='www.site.com/index.php#hello';
var type = url.split('#');
var hash = '';
if(type.length > 1)
hash = type[1];
alert(hash);
Another simple technique is..
var type = window.location.hash.substr(1);
...more
add namespace
using System.IO;
and use the Directory class to reach on the specific folder
string[] fileNames = Directory.GetFiles(@"your directory path");
foreach (string fileName in fileNames)
File.Delete(fileName);
...more
the html5 doctype is:
When you use the new HTML5 DOCTYPE, it triggers browsers to render the page in standards compliant mode.
Standards-compliant mode
In standards-compliant mode, the web browser assumes the page has been authored to the web content specification declared; code that does not conform to the declared standard may not display, or may display incorrectly.
For a web browser’s
...more
function loadjscssfile(filename, filetype) {
if (filetype == "js") { //if filename is a external JavaScript file
// alert('called');
var fileref = document.createElement('script')
fileref.setAttribute("type", "text/javascript")
fileref.setAttribute("src", filename)
alert('called');
}
else if (filetype == "css") { //if filename is an external CSS file
va
...more
Recently i faced a problem while creating visual studio setup project with custom form, so, i would like to share it with solution.
Problem:
I have an application that is being deployed via a Visual Studio Setup Project, however, I had to create some custom Windows Forms to collect some specific data from the user. These forms are shown in the Install() method of the application's Installer class, right after application files have been deployed by the Setup Project (
...more
SqlDataSourceEnumerator instance = SqlDataSourceEnumerator.Instance;
System.Data.DataTable table = instance.GetDataSources();
foreach (System.Data.DataRow row in table.Rows)
{
string instanceName = string.Empty;
if (row["ServerName"] != DBNull.Value) instanceName = row["ServerName"].ToString();
if(row["InstanceName"] != DBNull.Value || !string.IsNullOrEmpty(Convert.ToString(row["InstanceName"]).Trim()))
{
...more
At present, this feature is available in Firefox and Safari 3. When the module becomes finalised in the CSS3 specification it will be adopted by other browsers and rolled into their updates.
There are four properties which relate to the multiple column layout in CSS3, allowing you to set the number of columns, width, gap between each column and a border between each:
column-count
column-width
column-gap
column-rule
At present, a browser specific selector is also needed to identify whet
...more
One of the recent problems we’ve seen is that, because of the support for side-by-side runtimes, .NET 4.0 has changed the way that it binds to older mixed-mode assemblies. These assemblies are, for example, those that are compiled from C++\CLI. Currently available DirectX assemblies are mixed mode. If you see a message like this then you know you have run into the issue:
Mixed mode assembly is built against version 'v1.1.4322' of the runtime and cannot be loaded in the 4.0 runtime witho
...more