9:55 PM

Read xml

http://forums.asp.net/t/1893828.aspx/1?read+xml





[.....]

11:51 PM

Remove NameSpace In XML Document


 public static string RemoveNamespace(XmlDocument xdoc)
        {
            // Regex to search for either xmlns:nsN="..." or xmlns="..."
            const string pattern = @"xmlns:?(\w+)?=""[\w:/.]+""";
            string xml = xdoc.OuterXml;

            Regex replace = new Regex(pattern);
            // Replace all occurances of the namespace declaration
            string temp = replace.Replace(xml, String.Empty);
            foreach (Match match in replace.Matches(xml))
            {
                // Loop through each Match in the Regex, [.....]

11:44 PM

random string generator


 public string AutoGenerateString(int lenght)
        {
            string def = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";//0123456789";
            Random rnd = new Random();
            StringBuilder ret = new StringBuilder();
            for (int i = 0; i < lenght; i++)
            {
                ret.Append(def.Substring(rnd.Next(def.Length), 1));
            }
            return ret.ToString();
        }
[.....]

4:59 AM

popup display





 
  jQuery UI Dialog - Modal message

 

 

 


        $(function () {           $("#create-user")       .button()       .click(function () {           $("p").css('display', 'block');           $("#dialog-message").dialog({               modal: true,               buttons: {                   Ok: function () {                       $(this).dialog("close");                   }             [.....]

Next PostNewer Posts Previous PostOlder Posts Home