Tuesday, January 17, 2012

javascript function to get query string

function getQuerystring(key, default_) {
if (default_ == null) default_ = "";
key = key.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
var regex = new RegExp("[\\?&]" + key + "=([^&#]*)");
var qs = regex.exec(window.location.href);
if (qs == null)
return default_;
else
return qs[1];
}


source: http://www.bloggingdeveloper.com/post/JavaScript-QueryString-ParseGet-QueryString-with-Client-Side-JavaScript.aspx


^^v
julie

Monday, January 9, 2012

XML Parsing Error: not well-formed

got this error:

XML Parsing Error: not well-formed

find the answer here:
http://forums.asp.net/t/1353799.aspx/1

it says, that the problem maybe in the iis, try to re register the .net framework using this command line:
aspnet_regiis - i