Wednesday, October 31, 2012

Get querystring parameter by Javascript

function queryString(ji) {
    hu = window.location.search.substring(1);
    gy = hu.split("&");
    for (i = 0; i < gy.length; i++) {
        ft = gy[i].split("=");
        if (ft[0] == ji) {
            return ft[1];
        }
    }
}

Tuesday, October 23, 2012

Error: Object must implement IConvertible

When passing a Guid parameter to an SqlDatasource, you should not define the Type.


        
        


At first I tried using the type "String", but that caused the error

Object must implement IConvertible