Multiple file upload with jQuery and php

Here, I am going to show you how easy it is to upload multiple files with the help of jQuery and PHP.

I suppose that you are familiar with php and apache web server.

Continue Reading »

Popularity: 13%

How to get working site path and directory name in php?

Let the page path be: http://localhost/test/admin/index.php

Get the server name/site name of your website:

echo $_SERVER['SERVER_NAME'];

Continue Reading »

Popularity: 12%

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

Error:

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

Scenario:

When you put html tags in your form fields (textbox,textarea) like <p><br/><strong><a href=”"></a>

Cause:

Continue Reading »

Popularity: 60%

SQL Error: Cannot insert the value NULL into column… column does not allow nulls. INSERT fails.

Error description:

Cannot insert the value NULL into column ‘SourceId’, table ‘Advisory.dbo.AdvDocSource’; column does not allow nulls. INSERT fails.
The statement has been terminated. The ‘CompanyAdd’ procedure attempted to return a status of NULL, which is not allowed. A status of 0 will be returned instead.
——————————-

This error occurs because the ‘SourceId’ column in my table is primary key and it is set to not null. i.e. it doesn’t allow null entries. And I have not made it auto increment.

Continue Reading »

Popularity: 61%

ASP.NET Error : An HtmlSelect cannot have multiple items selected when Multiple is false.

This error might occur if you have selected your selection list (dropdownlist) multiple times. You can add multiple=”true” e.g. <select Multiple=”true”> in your selection list so as to enable multiple item select.

If you don’t want your selection list to be multiple select enabled then you have to check whether you have selected the selection list multiple times either in your design (aspx file) or in code (aspx.cs file).

Continue Reading »

Popularity: 59%

Convert string to datetime and datetime to string in C#

convert string to datetime

string datestring = “18 March 2008″;
DateTime parseddate = Convert.ToDateTime(datestring);
Response.Write(parseddate);

convert datetime to string

Continue Reading »

Popularity: 58%

Dynamically change page title and meta tags in C#

Change page title and meta tags dynamically/programmatically in C#.net

to change page title

Page.Title = “New Page Title”;

Continue Reading »

Popularity: 59%

Introduction to facebook connect

Facebook Connect is the next iteration of Facebook Platform that allows users to “connect” their Facebook identity, friends and privacy to any site. This enables third party websites to implement and offer even more features of Facebook Platform off of Facebook – similar to features available to third party applications today on Facebook.

Facebook has lauched Facebook Connect with 24 partners initially. Those partners include CBS, CNET, CollegeHumor, Disney-ABC Television Group, Evite, Flock, Hulu, Kongregate, Loopt, Radar, Seesmic, Red Bull, Socialthing!, The Insider, StumbleUpon, Twitter, Uber, Vimeo, Amiando, Plaxo, and Xobni.

Continue Reading »

Popularity: 98%

What is Google’s OpenSocial?

The OpenSocial API is a set of common APIs for building social applications on many websites. There are two ways to access the OpenSocial API: client-side using the JavaScript API, and server-side using REST or RPC protocols.

JavaScript API

Continue Reading »

Popularity: 98%

New Wordpress Plugin - Author Introduction

I just created my first wordpress plugin. This plugin is useful for displaying author/admin information in the main page body, in sidebar, or in every post.

The plugin is named “Author Intro”. You can add the title and text (brief introduction) to display your information.

Continue Reading »

Popularity: 97%

Page 1 of 712345»...Last »