﻿<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Quomon.com questions related to: code</title>
    <link>http://quomon.com/BrowseQuestions.aspx</link>
    <description>Questions and Answers for IT &amp;amp; Graphic Design Professionals. Selection criteria -  Categories: code - No keywords</description>
    <language>English</language>
    <copyright>Quomon</copyright>
    <generator />
    <webMaster>admin@quomon.com</webMaster>
    <lastBuildDate>Fri, 10 Sep 2010 18:54:17 GMT</lastBuildDate>
    <ttl>20</ttl>
    <item>
      <guid>http://quomon.com/question_Hey-create-validation-code-username-checking-database_14254.aspx</guid>
      <title>Hey, is there anyone can help me how to create validation code for username checking from database?</title>
      <link>http://quomon.com/question_Hey-create-validation-code-username-checking-database_14254.aspx</link>
      <description>I was doing registration form which need to create validation for user create username for their account.How to create a validation form code that can check the username have been used or not inside database and inform user. Thanks for the advice.Hope can I solve as soon as possible.</description>
      <author>jackscorpion88</author>
      <pubDate>Mon, 09 Aug 2010 22:31:05 GMT</pubDate>
      <comments>http://quomon.com/question_Hey-create-validation-code-username-checking-database_14254.aspx#comments</comments>
      <category>forms, code, database, validation, username, Registration</category>
    </item>
    <item>
      <guid>http://quomon.com/question_how-validate-gender-radio-button-java-script_14201.aspx</guid>
      <title>how to validate gender by using radio button in java script</title>
      <link>http://quomon.com/question_how-validate-gender-radio-button-java-script_14201.aspx</link>
      <description>when submitting form even if we not selecting gender its not showing alert.how 2 write code to get proper results</description>
      <author>kalaivani0705</author>
      <pubDate>Thu, 05 Aug 2010 03:20:39 GMT</pubDate>
      <comments>http://quomon.com/question_how-validate-gender-radio-button-java-script_14201.aspx#comments</comments>
      <category>forms, code, Button, java, script</category>
    </item>
    <item>
      <guid>http://quomon.com/question_webmail-issue_14172.aspx</guid>
      <title>webmail issue</title>
      <link>http://quomon.com/question_webmail-issue_14172.aspx</link>
      <description>i get this error when i try ti login to my webmail.&lt;br&gt;&lt;br&gt;&lt;br&gt;Server Error in '/' Application.&lt;br&gt;-------------------------------------------------------------------------------&lt;br&gt;-&lt;br&gt;&lt;br&gt;Bad Data.&lt;br&gt;&lt;br&gt;Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. &lt;br&gt;&lt;br&gt;Exception Details: System.Security.Cryptography.CryptographicException: Bad Data.&lt;br&gt;&lt;br&gt;&lt;br&gt;Source Error: &lt;br&gt;&lt;br&gt;An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  &lt;br&gt;&lt;br&gt;Stack Trace: &lt;br&gt;&lt;br&gt;&lt;br&gt;[CryptographicException: Bad Data.&lt;br&gt;]&lt;br&gt;   System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +7596735&lt;br&gt;   System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&amp;amp; msgData, Int32 type) +275&lt;br&gt;   SmarterTools.SmarterMail.Remoting.IMail.Login(String initializationStr, Byte[] emailAddress, Byte[] password, Boolean recordLogin) +0&lt;br&gt;   SmarterTools.SmarterMail.Remoting.RemoteMail.Login(String initializationStr, Byte[] email, Byte[] password, Boolean recordLogin) +40&lt;br&gt;   SMWeb05.Login.login(String email, String password) +185&lt;br&gt;   SMWeb05.Login.DoLoginInternal(String username, String password, Boolean rememberMe) +986&lt;br&gt;   SMWeb05.Login.DoLogin(String username, String password, Boolean rememberMe) +21&lt;br&gt;   SMWeb05.Login.DoLogin() +62&lt;br&gt;   SMWeb05.Login.btnEnterClick_Click(Object sender, ImageClickEventArgs e) +5&lt;br&gt;   System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +108&lt;br&gt;   System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +118&lt;br&gt;   System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.Raise&lt;br&gt;PostBackEvent(String eventArgument) +10&lt;br&gt;   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13&lt;br&gt;   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36&lt;br&gt;   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565&lt;br&gt;&lt;br&gt; &lt;br&gt;&lt;br&gt;&lt;br&gt;-------------------------------------------------------------------------------&lt;br&gt;-&lt;br&gt;Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3082 </description>
      <author>lanremilan</author>
      <pubDate>Mon, 02 Aug 2010 12:41:15 GMT</pubDate>
      <comments>http://quomon.com/question_webmail-issue_14172.aspx#comments</comments>
      <category>Errors, servers, asp, System, email, code</category>
    </item>
    <item>
      <guid>http://quomon.com/question_Adding-plug-PDF-XChange-Viewer-AutoVue-desktop-version_14109.aspx</guid>
      <title>Adding a plug-in into PDF-XChange Viewer or AutoVue desktop version</title>
      <link>http://quomon.com/question_Adding-plug-PDF-XChange-Viewer-AutoVue-desktop-version_14109.aspx</link>
      <description>Dear Sir,&lt;br&gt;&lt;br&gt;I have got a small query regarding the issue in adding a plug-in into PDF-XChange Viewer or AutoVue desktop version. I’m a software professional working in C# platform and would like to know whether it is possible to add or install new plug-ins like button’s or hypertext through C# (framework 2.0). It would be kind enough if you could give us the solution or the necessary information to crack this issue.&lt;br&gt;&lt;br&gt;Thanking You, </description>
      <author>archit</author>
      <pubDate>Wed, 28 Jul 2010 05:39:25 GMT</pubDate>
      <comments>http://quomon.com/question_Adding-plug-PDF-XChange-Viewer-AutoVue-desktop-version_14109.aspx#comments</comments>
      <category>Software, install, crack, query, code</category>
    </item>
    <item>
      <guid>http://quomon.com/question_You-told-auto-fill-Login-details-website-NET-C_13855.aspx</guid>
      <title>You told you have done auto fill Login details at any website in .NET with C#</title>
      <link>http://quomon.com/question_You-told-auto-fill-Login-details-website-NET-C_13855.aspx</link>
      <description>Hi, I need to develop application where i can store all the site's like gmail,facebook,yahoo. userID &amp;amp; Password &amp;amp; display a list of these sites on page. Once i click on any site name that site will open without entering username &amp;amp; password by user it enter the details &amp;amp; display thier Inbox. &lt;br&gt;Please help me out &amp;amp; send your code on my mail&lt;br&gt;&lt;br&gt;Thanks &amp;amp; Regards&lt;br&gt;Sandeep&lt;br&gt;sp17@aol.in&lt;br&gt;</description>
      <author>sandeep</author>
      <pubDate>Tue, 29 Jun 2010 07:52:15 GMT</pubDate>
      <comments>http://quomon.com/question_You-told-auto-fill-Login-details-website-NET-C_13855.aspx#comments</comments>
      <category>Websites, code, password, application, open, Yahoo</category>
    </item>
    <item>
      <guid>http://quomon.com/question_Ajax-Tabs-Content-Script-Invalid-State-Problem_13781.aspx</guid>
      <title>Ajax Tabs Content Script - Invalid State Problem</title>
      <link>http://quomon.com/question_Ajax-Tabs-Content-Script-Invalid-State-Problem_13781.aspx</link>
      <description> 1) Script Title:&lt;br&gt;Ajax Tabs Content Script - Invalid State Problem&lt;br&gt;&lt;br&gt;2) Script URL (on DD):&lt;br&gt;&lt;a href='http://www.dynamicdrive.com/dynamici...tent/index.htm'&gt;http://www.dynamicdrive.com/dynamici...t...&lt;/a&gt;&lt;br&gt;&lt;br&gt;3) Describe problem:&lt;br&gt;Im using Ajax Tab script in my ASP.Net application. i have GridView in each tab. In the GridView i have added the bound fields and also in the Grid's RowCommand Event i have assigned grid's row values to the text boxes.&lt;br&gt;&lt;br&gt;This thing is working perfectly with/without Master pages. now when i include the tabs then the default page is working fine with this and also the external page is called successfully with data loaded in the grid.&lt;br&gt;&lt;br&gt;But when i click the data for a call to RowCommand Event then it shows the Invalid State Exception. The trace is given below.&lt;br&gt;&lt;br&gt;--------------------------------------------------------&lt;br&gt;&lt;br&gt;The state information is invalid for this page and might be corrupted.&lt;br&gt;Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.&lt;br&gt;&lt;br&gt;Exception Details: System.Web.HttpException: The state information is invalid for this page and might be corrupted.&lt;br&gt;&lt;br&gt;Source Error:&lt;br&gt;&lt;br&gt;[No relevant source lines]&lt;br&gt;&lt;br&gt;&lt;br&gt;Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\trgportal.host\169f6d08\e68c7107\App_Web_avaakvl5.10.cs Line: 0&lt;br&gt;&lt;br&gt;Stack Trace:&lt;br&gt;&lt;br&gt;[FormatException: Invalid character in a Base-64 string.]&lt;br&gt;System.Convert.FromBase64String(String s) +0&lt;br&gt;System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +72&lt;br&gt;System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Deserialize(St&lt;br&gt;ring serializedState) +5&lt;br&gt;System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter, String serializedState) +37&lt;br&gt;System.Web.UI.HiddenFieldPageStatePersister.Load() +142&lt;br&gt;&lt;br&gt;[ViewStateException: Invalid viewstate.&lt;br&gt;Client IP: 127.0.0.1&lt;br&gt;Port:&lt;br&gt;User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11&lt;br&gt;ViewState: /wEPDwUKLTM5NjQzNjE5NA8WAh4ETW9kZQUDQWxsFgJmD2QWAgIDD2QWCAIBD2QWAgICDxQrAA0PFgY&lt;br&gt;eC09yaWVudGF0aW9uCyolU3lzdGVtLldlYi5VSS5XZWJDb250cm9scy5PcmllbnRhdGlvbgAeHlN0YX&lt;br&gt;RpY 0VuYWJsZURlZmF1bHRQb3BPdXRJbWFnZWgeC18hRGF0YUJvdW5kZ2QWCh4RSG9yaXpvbnRhbFBhZGRp&lt;br&gt;bmcbAAAAAAAAFEABAAAAHgpGb250X05hbWVzFQEFQXJpYWweCUZvbnRfQm9sZGceCUZvbnRfU2l6ZSg&lt;br&gt;qI lN5c3RlbS5XZWIuVUkuV2ViQ29udHJvbHMuRm9udFVuaXQDOXB0HgRfIVNCAoCcCGQWBh4JQmFja0Nv&lt;br&gt;bG9yCo0BHglGb3JlQ29sb3IKjQEfCAIMFgYeC0JvcmRlclN0eWxlCyolU3lzdGVtLldlYi5VSS5XZWJ&lt;br&gt;Db 250cm9scy5Cb3JkZXJTdHlsZQUeC0JvcmRlcldpZHRoGwAAAAAAAPA/AQAAAB8IAmAWEB8KCqQBHwsL&lt;br&gt;KwYFHwwbAAAAAAAA8D8BAAAAHwQbAAAAAAAAFEABAAAAHwUVAQVBcmlhbB8GZx8HKCsFAzlwdB8IAuS&lt;br&gt;cCGQWBh8JCo0BHwoKjQEfCAIMFggfCwsrBgUfDBsAAAAAAADwPwEAAAAf CQqkAR8IAmhkZGQUKwAFBQ8wOjAsMDoxLDA6MiwwOjMUKwACFhAeBFRleHQFDkRWUiBNYW5hZ2VtZW5&lt;br&gt;0HgVWYWx1ZQUORFZSIE1hbmFnZW1lbnQeC05hdmlnYXRlVXJsBRJjYWxsZGlyZWN0b3J5LmFzcHgeB1&lt;br&gt;Rv b2xUaXAFCmxv...]&lt;br&gt;&lt;br&gt;[HttpException (0x80004005): The state information is invalid for this page and might be corrupted.]&lt;br&gt;System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) +119&lt;br&gt;System.Web.UI.HiddenFieldPageStatePersister.Load() +241&lt;br&gt;System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +80&lt;br&gt;System.Web.UI.Page.LoadAllState() +35&lt;br&gt;System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +8000&lt;br&gt;System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +202&lt;br&gt;System.Web.UI.Page.ProcessRequest() +85&lt;br&gt;System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +20&lt;br&gt;System.Web.UI.Page.ProcessRequest(HttpContext context) +110&lt;br&gt;ASP.Tabs.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\trgportal.host\169f6d08\e68c7107\App_Web_avaakvl5.10.cs:0&lt;br&gt;System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.E&lt;br&gt;xecute() +390&lt;br&gt;System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp;amp; completedSynchronously) +65&lt;br&gt;Reply With Quote</description>
      <author>pdthiep</author>
      <pubDate>Sun, 13 Jun 2010 23:02:26 GMT</pubDate>
      <comments>http://quomon.com/question_Ajax-Tabs-Content-Script-Invalid-State-Problem_13781.aspx#comments</comments>
      <category>windows, Errors, asp, System, web, code</category>
    </item>
    <item>
      <guid>http://quomon.com/question_how-convert-console-application-windows-service-C_13577.aspx</guid>
      <title>how do you convert a console application to a windows service in C#</title>
      <link>http://quomon.com/question_how-convert-console-application-windows-service-C_13577.aspx</link>
      <description>&lt;br&gt;&lt;br&gt;Dear PeterNZ,&lt;br&gt;how do you convert a console application to a windows service.Any recommendations? The following code is below is it possible to show me any methods that relates to this code and apply it to my windows service? As I do not really understand my code. &lt;br&gt;&lt;br&gt;&lt;br&gt;using System;&lt;br&gt;using System.Collections.Generic;&lt;br&gt;using System.Linq;&lt;br&gt;using System.Text;&lt;br&gt;using System.Runtime.InteropServices;&lt;br&gt;&lt;br&gt;using System.Management;&lt;br&gt;using System.IO;&lt;br&gt;using System.Text.RegularExpressions;&lt;br&gt;&lt;br&gt;public struct ParamHost &lt;br&gt;        {&lt;br&gt;            public string MAC, hostname,IP;&lt;br&gt;&lt;br&gt;            public ParamHost(string MAC, string hostname, string IP) &lt;br&gt;              {&lt;br&gt;                this.MAC = MAC;&lt;br&gt;                this.hostname = hostname;&lt;br&gt;&lt;br&gt;                this.IP = IP;&lt;br&gt;              }&lt;br&gt;        }&lt;br&gt;&lt;br&gt;&lt;br&gt;namespace NetworkCardConfig&lt;br&gt;{&lt;br&gt;    class Program&lt;br&gt;    {&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;        static void Main(string[] args)&lt;br&gt;        {&lt;br&gt;            // Open file MAC.TXT&lt;br&gt;            // read from file or write to file&lt;br&gt;            System.IO.FileStream myStream = new FileStream(&amp;quot;C:\\MAC.txt&amp;quot;, FileMode.Open);&lt;br&gt;&lt;br&gt;            System.IO.StreamReader myStreamReader = new StreamReader(myStream);&lt;br&gt;&lt;br&gt;            string fileContent = myStreamReader.ReadToEnd();&lt;br&gt;&lt;br&gt;            myStreamReader.Close();&lt;br&gt;&lt;br&gt;            string[] Lines = fileContent.Split('\n');&lt;br&gt;&lt;br&gt;            String[] Field;&lt;br&gt;&lt;br&gt;            ParamHost[] PH;&lt;br&gt;&lt;br&gt;&lt;br&gt;            PH = new ParamHost[Lines.Length]; // to do &lt;br&gt;&lt;br&gt;            int PH_Number = 0;&lt;br&gt;&lt;br&gt;&lt;br&gt;            foreach (string Line in Lines)&lt;br&gt;            {&lt;br&gt;&lt;br&gt;                if (Line != &amp;quot;&amp;quot; &amp;amp;&amp;amp; Line != &amp;quot;\r&amp;quot;)&lt;br&gt;                {&lt;br&gt;                    Console.WriteLine(&amp;quot;line :&amp;quot; + Line);&lt;br&gt;&lt;br&gt;                    Field = Line.Split(';');&lt;br&gt;&lt;br&gt;                    Console.WriteLine(&amp;quot;MAC {0}; hostname{1}; IP: {2}&amp;quot;, Field[0], Field[1], Field[2]);&lt;br&gt;&lt;br&gt;                    PH[PH_Number].MAC = Field[0];&lt;br&gt;                    PH[PH_Number].hostname = Field[1];&lt;br&gt;                    PH[PH_Number].IP = Field[2];&lt;br&gt;&lt;br&gt;/*&lt;br&gt;                    for (int i = 0; i &amp;lt; Field.Length; i++)&lt;br&gt;                    {&lt;br&gt;                    Console.WriteLine(Field[i]);&lt;br&gt;                    }*/&lt;br&gt;                    PH_Number++;&lt;br&gt;&lt;br&gt;&lt;br&gt;                    //foreach (String i in Field)&lt;br&gt;                    //{&lt;br&gt;&lt;br&gt;                      //  Console.WriteLine(Field[i]);&lt;br&gt;&lt;br&gt;&lt;br&gt;                    //}&lt;br&gt;                    //PH_Number++;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;                }&lt;br&gt;&lt;br&gt;                // Console.WriteLine(&amp;quot;{0}&amp;quot;, fileContent);&lt;br&gt;&lt;br&gt;                myStreamReader.Close();&lt;br&gt;&lt;br&gt;                //Console.WriteLine(PH[0].MAC);&lt;br&gt;&lt;br&gt;                ManagementClass objMC = new ManagementClass(&amp;quot;Win32_NetworkAdapterConfiguration&amp;quot;);&lt;br&gt;&lt;br&gt;&lt;br&gt;                ManagementObjectCollection objMOC = objMC.GetInstances();&lt;br&gt;&lt;br&gt;&lt;br&gt;                string gw;&lt;br&gt;                string myIpString;&lt;br&gt;                char[] delim;&lt;br&gt;                string[] myIpArray;&lt;br&gt;                string myGateWayString;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;                foreach (ManagementObject objMO in objMOC)&lt;br&gt;                {&lt;br&gt;&lt;br&gt;                    if (!(bool)objMO[&amp;quot;ipEnabled&amp;quot;])&lt;br&gt;                        continue;&lt;br&gt;                    //Console.WriteLine(objMO[&amp;quot;Caption&amp;quot;] + &amp;quot;,&amp;quot; + objMO[&amp;quot;ServiceName&amp;quot;] + &amp;quot;,&amp;quot; + objMO[&amp;quot;MACAddress&amp;quot;]);&lt;br&gt;&lt;br&gt;                    string MAC_card = objMO[&amp;quot;MACAddress&amp;quot;].ToString();&lt;br&gt;&lt;br&gt;                    for (int index = 0; index &amp;lt; PH_Number; index++)&lt;br&gt;                    {&lt;br&gt;                        string MAC_File = PH[index].MAC.ToString();&lt;br&gt;&lt;br&gt;                        //Console.WriteLine(&amp;quot;jkjkjk :&amp;quot; + MAC_card + MAC_File);&lt;br&gt;&lt;br&gt;                        if (MAC_card.Equals(MAC_File))&lt;br&gt;                        {&lt;br&gt;                            Console.WriteLine(&amp;quot;good card to configure ! ! &amp;quot; + MAC_File);&lt;br&gt;                            Console.WriteLine(&amp;quot;hostname &amp;quot; + PH[index].hostname);&lt;br&gt;                            Console.WriteLine(&amp;quot;IP &amp;quot; + PH[index].IP);&lt;br&gt;                            // Set nic parameters&lt;br&gt;                            // to do&lt;br&gt;&lt;br&gt;                            //string gw = PH[index].IP;&lt;br&gt;&lt;br&gt;&lt;br&gt;                            gw = PH[index].IP;&lt;br&gt;&lt;br&gt;                            //PH[index].IP = x.y.z.w -&amp;gt; gw= x.y.z.1&lt;br&gt;&lt;br&gt;                            // to do   gw = .1&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;                            //assuming myLocalIP is the IPAddress object you are using from the IPAddress array you will have been playing with before...&lt;br&gt;                            myIpString = gw.ToString(); //to return nice &amp;quot;255.255.255.255&amp;quot; notation to work with&lt;br&gt;                            delim = new char[1]; //set the delimiter you want to split your IP string by - so '.'&lt;br&gt;                            delim[0] = '.'; //set the delimiter you want to split your IP string by - so '.'&lt;br&gt;                            myIpArray = myIpString.Split(delim); //actually split the IP up&lt;br&gt;                            myIpArray[3] = &amp;quot;1&amp;quot;;&lt;br&gt;                            myGateWayString = myIpArray[0] + &amp;quot;.&amp;quot; + myIpArray[1] + &amp;quot;.&amp;quot; + myIpArray[2] + &amp;quot;.&amp;quot; + myIpArray[3]; //to reconstruct your gateway string&lt;br&gt;                            //IPAddress myGatewayObject = IPAddress.Parse(myGateWayString); //To construct your gateway IPAddress object to work with!&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;                            //setParmIP(PH[index].hostname, PH[index].IP, &amp;quot;255.255.255.0&amp;quot;, gw, &amp;quot;147.215.1.4&amp;quot;, &amp;quot;147.215.1.20&amp;quot;, &amp;quot;147.215.1.136&amp;quot;);&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;                            &lt;br&gt;                            setParmIP(PH[index].hostname, PH[index].IP, &amp;quot;255.255.255.0&amp;quot;, gw , &amp;quot;147.215.1.4&amp;quot;,&amp;quot;147.215.1.20&amp;quot;, &amp;quot;147.215.1.136&amp;quot;);&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;                            Console.ReadKey();&lt;br&gt;                        }&lt;br&gt;                    }&lt;br&gt;                }&lt;br&gt;            }&lt;br&gt;        }&lt;br&gt;        &lt;br&gt;&lt;br&gt;&lt;br&gt;        // Configue NIC&lt;br&gt;&lt;br&gt;        public static void setParmIP(string ComputerName, string IPAddress, string SubnetMask, string Gateway, string DNS_primary, string DNS_secondary, string WINS_Server)&lt;br&gt;        {&lt;br&gt;&lt;br&gt;            ManagementClass objMC = new ManagementClass(&lt;br&gt;                &amp;quot;Win32_NetworkAdapterConfiguration&amp;quot;);&lt;br&gt;            ManagementObjectCollection objMOC = objMC.GetInstances();&lt;br&gt;&lt;br&gt;        foreach (ManagementObject objMO in objMOC)&lt;br&gt;                {&lt;br&gt;&lt;br&gt;                    if (!(bool)objMO[&amp;quot;IPEnabled&amp;quot;])&lt;br&gt;                        continue;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;                    try&lt;br&gt;                    {&lt;br&gt;                        ManagementBaseObject objNewIP = null;&lt;br&gt;                        ManagementBaseObject objSetIP = null;&lt;br&gt;                        ManagementBaseObject objNewGate = null;&lt;br&gt;                        ManagementBaseObject objNewDNS = null;&lt;br&gt;                        ManagementBaseObject objNewWINS = null;&lt;br&gt;&lt;br&gt;&lt;br&gt;                        objNewIP = objMO.GetMethodParameters(&amp;quot;EnableStatic&amp;quot;);&lt;br&gt;                        objNewGate = objMO.GetMethodParameters(&amp;quot;SetGateways&amp;quot;);&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;                        //Set DefaultGateway&lt;br&gt;                        objNewGate[&amp;quot;DefaultIPGateway&amp;quot;] = new string[] { Gateway };&lt;br&gt;                        objNewGate[&amp;quot;GatewayCostMetric&amp;quot;] = new int[] { 1 };&lt;br&gt;&lt;br&gt;&lt;br&gt;                        //Set IPAddress and Subnet Mask&lt;br&gt;                        objNewIP[&amp;quot;IPAddress&amp;quot;] = new string[] { IPAddress };&lt;br&gt;&lt;br&gt;                        objNewIP[&amp;quot;SubnetMask&amp;quot;] = new string[] { SubnetMask };&lt;br&gt;&lt;br&gt;                        objSetIP = objMO.InvokeMethod(&amp;quot;EnableStatic&amp;quot;, objNewIP, null);&lt;br&gt;                        objSetIP = objMO.InvokeMethod(&amp;quot;SetGateways&amp;quot;, objNewGate, null);&lt;br&gt;                        //Set DNS server&lt;br&gt;                        objNewDNS = objMO.GetMethodParameters(&amp;quot;SetDNSServerSearchOrder&amp;quot;);&lt;br&gt;                        objNewDNS[&amp;quot;DNSServerSearchOrder&amp;quot;] = new string[] { DNS_primary, DNS_secondary };&lt;br&gt;                        objSetIP = objMO.InvokeMethod(&amp;quot;SetDNSServerSearchOrder&amp;quot;, objNewDNS, null);&lt;br&gt;&lt;br&gt;                        //Set WINS server&lt;br&gt;                        objNewWINS = objMO.GetMethodParameters(&amp;quot;SetWINSServer&amp;quot;);&lt;br&gt;                        //objNewWINS[&amp;quot;WINSPrimaryServer&amp;quot;] = new string[] {WINS_Server}; // not working&lt;br&gt;                        objNewWINS.SetPropertyValue(&amp;quot;WINSPrimaryServer&amp;quot;, WINS_Server);&lt;br&gt;                        objNewWINS.SetPropertyValue(&amp;quot;WINSSecondaryServer&amp;quot;, &amp;quot;&amp;quot;);&lt;br&gt;&lt;br&gt;                        objSetIP = objMO.InvokeMethod(&amp;quot;SetWINSServer&amp;quot;, objNewWINS, null);&lt;br&gt;&lt;br&gt;                        // Set hostname to do&lt;br&gt;                        string compName = System.Windows.Forms.SystemInformation.ComputerName.ToString();&lt;br&gt;                        WqlObjectQuery query = new WqlObjectQuery(&amp;quot;SELECT * FROM Win32_ComputerSystem&amp;quot;);&lt;br&gt;                        ManagementObjectSearcher search = new ManagementObjectSearcher(query);&lt;br&gt;                        object[] name = { ComputerName };&lt;br&gt;                        foreach (ManagementObject mo in search.Get())&lt;br&gt;                        {&lt;br&gt;                            mo.InvokeMethod(&amp;quot;Rename&amp;quot;, name);&lt;br&gt;                        }&lt;br&gt;&lt;br&gt;&lt;br&gt;           Console.WriteLine(&lt;br&gt;                           &amp;quot;Updated IPAddress, SubnetMask , Default Gateway ,DNS, Wins and Hostname !&amp;quot;);&lt;br&gt;&lt;br&gt;&lt;br&gt;                    }&lt;br&gt;                    catch (Exception ex)&lt;br&gt;                    {&lt;br&gt;                        Console.WriteLine(&amp;quot;Unable to Set IP : &amp;quot; + ex.Message);&lt;br&gt;&lt;br&gt;                        //read the ASCII value of the char typed and cast it to a char value&lt;br&gt;                        //   char ch = (char)Console.Read();&lt;br&gt;&lt;br&gt;                        // read the ASCII value of the char typed&lt;br&gt;&lt;br&gt;                        //           int asciiCode = Console.Read();&lt;br&gt;&lt;br&gt;                        // read the input data until a return or new line is read&lt;br&gt;                        // this allows the user to type away until they press enter/return&lt;br&gt;                        // this method will return you information one line at a time... hence the name! :)&lt;br&gt;&lt;br&gt;                    }&lt;br&gt;&lt;br&gt;                }&lt;br&gt;            }&lt;br&gt;        }&lt;br&gt;    }&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;                    &lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</description>
      <author>chiaweikiat90</author>
      <pubDate>Thu, 20 May 2010 09:09:54 GMT</pubDate>
      <comments>http://quomon.com/question_how-convert-console-application-windows-service-C_13577.aspx#comments</comments>
      <category>windows, servers, System, forms, code, Time</category>
    </item>
    <item>
      <guid>http://quomon.com/question_ZigBee-Spy-node_13576.aspx</guid>
      <title>ZigBee Spy node..</title>
      <link>http://quomon.com/question_ZigBee-Spy-node_13576.aspx</link>
      <description>Basically what Im trying to do now is to build a table with the source ID and Destination ID on all transmiter and reciever.&lt;br&gt;The Spy reciever would only listens to the network and transmit data back to the computer hyperterminal via the com port.&lt;br&gt;&lt;br&gt;problem is how do i edit this code so that a table with source ID and Destination ID table can be sent to hyperterminal&lt;br&gt;CODE:&lt;br&gt;/**************************************************************&lt;br&gt;*    Device Program Operation&lt;br&gt;*   June 30, 04&lt;br&gt;*    This program performs the following:&lt;br&gt;*   On power-up or reset, the LEDs will &amp;quot;walk&amp;quot; for 1 second to indicate&lt;br&gt;*   the unit is a device. Next, the security number (i.e. SECURITY) LED&lt;br&gt;*   is flashed on for 1 second to identify the selection.&lt;br&gt;*   The unit then pauses and waits for the operator to select a desired&lt;br&gt;*   u8Channel by pressing the corresponding pushbutton. The selected u8Channel&lt;br&gt;*   will flash on the LED for 1 second.&lt;br&gt;*   The unit again pauses and waits for the opertor to select the desired&lt;br&gt;*   device number by pressing the corresponding pushbutton, The selected&lt;br&gt;*   device number will flash on the LED for 1 second.&lt;br&gt;*   Initialization of the device is now complete.&lt;br&gt;*   To use the device:&lt;br&gt;*   Any pushbutton may be depressed to toggle the status of the&lt;br&gt;*   corresponding LED. This is for local control.&lt;br&gt;*   If addressed (and if the SECURITY matches), the controller may&lt;br&gt;*   request any LED to toggle, or the controller may request the status&lt;br&gt;*   of an individual LED.&lt;br&gt;*   The device will retransmit any data received and intended for another device&lt;br&gt;*   within the SECURITY grouping, acting as a repeater.&lt;br&gt;*   The device has a unique &amp;quot;security&amp;quot; number (i.e. SECURITY) and device&lt;br&gt;*   number (i.e. u8DeviceNum).&lt;br&gt;*   The program assumes all LEDs are connected to the same PORT.&lt;br&gt;*   The target platform may be selected in the pub_def.h file.&lt;br&gt;*   Many application specific details are in lighting_demo_device.h.&lt;br&gt;*   Notes on the optional buzzer:&lt;br&gt;*   If the optional buzzer is used, it may chirp on to indicate contention&lt;br&gt;*   with another 802.15.4 device.&lt;br&gt;*&lt;br&gt;*   $Author: a20639 $&lt;br&gt;*   $Date: 2005/09/09 15:02:45 $&lt;br&gt;*   $Name:  $&lt;br&gt;**************************************************************/&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;/**************************************************************&lt;br&gt;*    Includes&lt;br&gt;**************************************************************/&lt;br&gt;#include &amp;lt;hidef.h&amp;gt; /* for EnableInterrupts macro */&lt;br&gt;#include &amp;quot;device_header.h&amp;quot; /* include peripheral declarations */&lt;br&gt;#include &amp;quot;pub_def.h&amp;quot;&lt;br&gt;#include &amp;quot;mcu_hw_config.h&amp;quot;&lt;br&gt;#include &amp;quot;MC13192_hw_config.h&amp;quot;&lt;br&gt;#include &amp;quot;simple_mac.h&amp;quot;&lt;br&gt;#include &amp;quot;bootloader user api.h&amp;quot;&lt;br&gt;#include &amp;quot;lighting_demo_device.h&amp;quot;&lt;br&gt;&lt;br&gt;/**************************************************************&lt;br&gt;*    Data definitions&lt;br&gt;**************************************************************/&lt;br&gt;byte gu8RTxMode; /* Current mode of the MC13192 XCVR */&lt;br&gt;byte LEDS; /* LED on/off information */&lt;br&gt;byte rxcount;&lt;br&gt;&lt;br&gt;&lt;br&gt;/**************************************************************&lt;br&gt;*    Main Program&lt;br&gt;**************************************************************/&lt;br&gt;void main(void)&lt;br&gt;{&lt;br&gt;  tTxPacket sTxPacket;&lt;br&gt;  tRxPacket sRxPacket;&lt;br&gt;  byte au8RxDataBuffer[26];&lt;br&gt;  byte au8TxDataBuffer[26];&lt;br&gt;&lt;br&gt;  /* Initialize variables */&lt;br&gt;  UINT16 u16LEDOldTime = 0;&lt;br&gt;  UINT16 u16RTXOldTime = 0;&lt;br&gt;  UINT16 u16PBOldTime = 0;&lt;br&gt;  UINT16 u16OldTime = 0;&lt;br&gt;  UINT16 u16NewTime = 0;&lt;br&gt;  UINT16 u16LagTime1 = 0;&lt;br&gt;  UINT16 u16LagTime2 = 0;&lt;br&gt;  UINT16 u16Count = 0;&lt;br&gt;  UINT8 u8PBState = 0;&lt;br&gt;  UINT8 u8AppStatus = 0;&lt;br&gt;  UINT8 u8GetLed = 0;&lt;br&gt;  UINT8 u8Crap = 0;&lt;br&gt;  UINT8 u8XcvrMode = 0;&lt;br&gt;  UINT8 u8LEDStatus = 1;&lt;br&gt;  UINT8 u8DeviceNum = 1;&lt;br&gt;  UINT8 u8DeviceLed = u8DeviceNum;&lt;br&gt;  UINT8 u8LightLed = 0x05; /* initial */&lt;br&gt;  UINT8 u8Garbage = 0;&lt;br&gt;  UINT8 u8Channel = 1;&lt;br&gt;  UINT8 u8LastDsn = 0xFF;&lt;br&gt;  UINT8 u8Count1 = 0;&lt;br&gt;  UINT8 u8RfIcVersion=0;&lt;br&gt;  &lt;br&gt;  sTxPacket.u8DataLength = 0;&lt;br&gt;  sTxPacket.pu8Data = &amp;amp;au8TxDataBuffer[0];&lt;br&gt;  sRxPacket.u8DataLength = 0;&lt;br&gt;  sRxPacket.pu8Data = &amp;amp;au8RxDataBuffer[0];&lt;br&gt;  sRxPacket.u8MaxDataLength = 30;&lt;br&gt;  sRxPacket.u8Status = 0;&lt;br&gt;&lt;br&gt;&lt;br&gt;  MCUInit();&lt;br&gt;  MC13192Init();&lt;br&gt;  &lt;br&gt;  /* Begin init */&lt;br&gt;  rxcount = 0x00; /* Number of times device received the same request */&lt;br&gt;&lt;br&gt;  LED1DIR = 1; /* LED directions */&lt;br&gt;  LED2DIR = 1;&lt;br&gt;  LED3DIR = 1;&lt;br&gt;  LED4DIR = 1;&lt;br&gt;&lt;br&gt;  MLMESetMC13192ClockRate(MC13192_CLKO_FREQ); /* 8 MHz bus clock (see lighting_demo_device.h) */&lt;br&gt;  UseExternalClock();&lt;br&gt;  &lt;br&gt;  /******************************************************************&lt;br&gt;  To adjust output power call the MLME_MC13192_PA_output_adjust() with:&lt;br&gt;  &lt;br&gt;  MAX_POWER     (+3 to +5dBm)&lt;br&gt;  NOMINAL_POWER (0 dBm)&lt;br&gt;  MIN_POWER     ~(-16dBm)&lt;br&gt;  &lt;br&gt;  or somewhere custom ? (0-15, 11 (NOMINAL_POWER) being Default power)&lt;br&gt;&lt;br&gt;    ******************************************************************/&lt;br&gt;  //MLMEMC13192PAOutputAdjust(MAX_POWER);    //Set MAX power setting&lt;br&gt;    MLMEMC13192PAOutputAdjust(MIN_POWER);    //Set MIN power setting&lt;br&gt;  //MLMEMC13192PAOutputAdjust(NOMINAL_POWER);    //Set Nominal power setting    &lt;br&gt;    &lt;br&gt;&lt;br&gt;  &lt;br&gt;  /* Application init */&lt;br&gt;  SRTISC=SRTISC&amp;amp;~0x07; /* Disable wake up timer. */&lt;br&gt;  SPMSC2=SPMSC2&amp;amp;~0x03; /* Enable deep sleep mode stop3. */&lt;br&gt;  TPM1SC = 0x0F; /* Timer divide by 128. (16uS timebase for 8MHz bus clock). */&lt;br&gt;  PB0PU = 1; /* Pushbutton directions and pull-ups */&lt;br&gt;  PB0DIR = 0;&lt;br&gt;  PB1PU = 1;&lt;br&gt;  PB1DIR = 0;&lt;br&gt;  PB2PU = 1;&lt;br&gt;  PB2DIR = 0;&lt;br&gt;  PB3PU = 1;&lt;br&gt;  PB3DIR = 0;&lt;br&gt;  KBI1SC_KBIMOD = 0;&lt;br&gt;  KBI1SC_KBI1E =0; /* Pushbutton interrupts not used */&lt;br&gt;  PB0IE =0;&lt;br&gt;  PB1IE =0;&lt;br&gt;  PB2IE =0;&lt;br&gt;  PB3IE =0;&lt;br&gt;  &lt;br&gt;  &lt;br&gt;#ifdef BOOTLOADER_ENABLED&lt;br&gt;    boot_init();  //Initialize the bootloader.&lt;br&gt;#endif BOOTLOADER_ENABLED&lt;br&gt;       &lt;br&gt;&lt;br&gt;#ifdef BOOTLOADER_ENABLED    &lt;br&gt;    boot_call();  //Check for user request to run bootloader.&lt;br&gt;                  //App will not return, if Bootloader is requested.&lt;br&gt;#endif BOOTLOADER_ENABLED&lt;br&gt;  &lt;br&gt;  #if defined (AXM_0308C)&lt;br&gt;      BUZZDIR = 1; /* Optional buzzer and off */&lt;br&gt;     BUZZ = 0;&lt;br&gt;    #endif&lt;br&gt;  /* Enable all interrupts and ready to go */&lt;br&gt;  MC13192_IRQ_IE_BIT = 1;&lt;br&gt;  EnableInterrupts;&lt;br&gt;  /* &amp;quot;Walk&amp;quot; LEDs to indicate this is a device. */&lt;br&gt;  LedDrive(0x01);&lt;br&gt;  MCUDelay (WALKON);&lt;br&gt;  LedDrive(0x02);&lt;br&gt;  MCUDelay (WALKON);&lt;br&gt;  LedDrive(0x03);&lt;br&gt;  MCUDelay (WALKON);&lt;br&gt;  LedDrive(0x04);&lt;br&gt;  MCUDelay (WALKON);&lt;br&gt;  /* LEDs off for a short */ &lt;br&gt;  LedDrive(u8LightLed);&lt;br&gt;  MCUDelay (LONGFLASHOFF);&lt;br&gt;  /* Allow SECURITY LED to glow for a short. Indicates Group. */&lt;br&gt;  LedDrive(SECURITY);&lt;br&gt;  MCUDelay(LONGFLASHON);&lt;br&gt;  /* Now all LEDs off. */&lt;br&gt;  LedDrive(u8LightLed);&lt;br&gt;  /* Wait for user to select the u8Channel. */&lt;br&gt;  while ((PB0 == 1) &amp;amp;&amp;amp; (PB1 == 1) &amp;amp;&amp;amp; (PB2 == 1) &amp;amp;&amp;amp; (PB3 == 1)); /* All PBs released */ &lt;br&gt;  MCUDelay(DEBOUNCE); /* PB pushed. Wait for debounce. */&lt;br&gt;  if (PB0 == 0)&lt;br&gt;  {&lt;br&gt;    u8Channel = 1;&lt;br&gt;  }&lt;br&gt;  if (PB1 == 0)&lt;br&gt;  {&lt;br&gt;    u8Channel = 2;&lt;br&gt;  }&lt;br&gt;  if (PB2 == 0)&lt;br&gt;  {&lt;br&gt;    u8Channel = 3;&lt;br&gt;  }&lt;br&gt;  if (PB3 == 0)&lt;br&gt;  {&lt;br&gt;    u8Channel = 4;&lt;br&gt;  }&lt;br&gt;  while ((PB0 ==0) || (PB1 ==0) || (PB2 ==0) || (PB3 ==0)); /* A PB is still depressed */&lt;br&gt;  MCUDelay(DEBOUNCE); /* All PBs released. Wait for debounce. */&lt;br&gt;  LedDrive(u8Channel); /* Display selected u8Channel. */ &lt;br&gt;  MCUDelay(LONGFLASHON);&lt;br&gt;  LedDrive(u8LightLed); /* LEDs off. */&lt;br&gt;  /* Set u8Channel */&lt;br&gt;  MLMESetChannelRequest(((u8Channel-1)&amp;lt;&amp;lt;2) + (u8Channel-1)); /* Set the selected u8Channel. */&lt;br&gt;  /* Wait for user to select the u8DeviceNum. */&lt;br&gt;  while ((PB0 == 1) &amp;amp;&amp;amp; (PB1 == 1) &amp;amp;&amp;amp; (PB2 == 1) &amp;amp;&amp;amp; (PB3 == 1)); /* All PBs released */ &lt;br&gt;  MCUDelay(DEBOUNCE); /* PB pushed. Wait for debounce. */&lt;br&gt;  if (PB0 == 0)&lt;br&gt;  {&lt;br&gt;    u8DeviceNum = 1;&lt;br&gt;  }&lt;br&gt;  if (PB1 == 0)&lt;br&gt;  {&lt;br&gt;    u8DeviceNum = 2;&lt;br&gt;  }&lt;br&gt;  if (PB2 == 0)&lt;br&gt;  {&lt;br&gt;    u8DeviceNum = 3;&lt;br&gt;  }&lt;br&gt;  if (PB3 == 0)&lt;br&gt;  {&lt;br&gt;    u8DeviceNum = 4;&lt;br&gt;  }&lt;br&gt;  while ((PB0 ==0) || (PB1 ==0) || (PB2 ==0) || (PB3 ==0)); /* A PB is still depressed */&lt;br&gt;  MCUDelay(DEBOUNCE); /* All PBs released. Wait for debounce. */&lt;br&gt;  LedDrive(u8DeviceNum); /* Display selected device number. */&lt;br&gt;  u8DeviceLed = u8DeviceNum; &lt;br&gt;  if (u8DeviceNum == 1) /* Set repeater TDMA values */&lt;br&gt;  {&lt;br&gt;      u16LagTime1 = 63; /* 1ms */&lt;br&gt;  }&lt;br&gt;  if (u8DeviceNum == 2)&lt;br&gt;  {&lt;br&gt;      u16LagTime1 = 250; /* 4ms */&lt;br&gt;  }&lt;br&gt;  if (u8DeviceNum == 3)&lt;br&gt;  {&lt;br&gt;      u16LagTime1 = 625; /* 10ms */&lt;br&gt;  }&lt;br&gt;  if (u8DeviceNum == 4)&lt;br&gt;  {&lt;br&gt;      u16LagTime1 = 1188; /* 19ms */&lt;br&gt;  }&lt;br&gt;  u16LagTime2 = 2563-u16LagTime1; /* 41ms - value */&lt;br&gt;  /* Assumes total time for Rx extraction and Tx is 1-3mS */&lt;br&gt;  /* Maximum lag is 4+3+10+3+19+3 or 42mS */&lt;br&gt;  /* Minimum lag time is 1+1 or 2mS */&lt;br&gt;  MCUDelay(LONGFLASHON);&lt;br&gt;  LedDrive(u8LightLed); /* LEDs off. Initialization complete. */&lt;br&gt;  /* Init timer vars and global LEDS */&lt;br&gt;  u16LEDOldTime = MCUReadTmr1 ();&lt;br&gt;  u16RTXOldTime = u16LEDOldTime;&lt;br&gt;  LEDS = LEDPORT; /* Initialize LEDS to the actual port setting */&lt;br&gt;  MLMERXEnableRequest(&amp;amp;sRxPacket, 0x); /* Activate the receiver */&lt;br&gt;&lt;br&gt;  /**************************************************************&lt;br&gt;  *    Main While Loop - Runs continously&lt;br&gt;  **************************************************************/&lt;br&gt;  for (;;)&lt;br&gt;  {&lt;br&gt;  /* u8PBState=0 is waiting for a PB to be pushed. */&lt;br&gt;  /* u8PBState=1 is waiting for a PB high-to-low debounce. */&lt;br&gt;  /* u8PBState=2 is waiting for PBs to ALL be released. */&lt;br&gt;  /* u8PBState=3 is waiting for a PB low-to-high debounce. */&lt;br&gt;    u16NewTime = MCUReadTmr1 ();&lt;br&gt;    if ((u8PBState == 0) &amp;amp;&amp;amp; ((PB0 ==0) || (PB1 ==0) || (PB2 ==0) || (PB3 ==0))) /* A PB is depressed */&lt;br&gt;    {&lt;br&gt;        u8PBState = 1;&lt;br&gt;        u16PBOldTime = u16NewTime;&lt;br&gt;    }&lt;br&gt;    if (u8PBState == 1)&lt;br&gt;    {&lt;br&gt;        if ((u16NewTime-u16PBOldTime) &amp;gt; DEBOUNCE) /* H-L debounce complete */&lt;br&gt;        {&lt;br&gt;            u8PBState = 2; /* Update LEDS. A bit funky. */&lt;br&gt;            if (PB0 == 0)&lt;br&gt;            {&lt;br&gt;                LED1 ^=1;&lt;br&gt;            }&lt;br&gt;            if (PB1 == 0)&lt;br&gt;            {&lt;br&gt;                LED2 ^=1;&lt;br&gt;            }&lt;br&gt;            if (PB2 == 0)&lt;br&gt;            {&lt;br&gt;                LED3 ^=1;&lt;br&gt;            }&lt;br&gt;            if (PB3 == 0)&lt;br&gt;            {&lt;br&gt;                LED4 ^=1;&lt;br&gt;            }&lt;br&gt;            u16PBOldTime = u16NewTime;&lt;br&gt;        }&lt;br&gt;    }&lt;br&gt;    if (u8PBState == 2)&lt;br&gt;    {&lt;br&gt;        if ((PB0 == 1) &amp;amp;&amp;amp; (PB1 == 1) &amp;amp;&amp;amp; (PB2 == 1) &amp;amp;&amp;amp; (PB3 == 1)) /* All PBs released */ &lt;br&gt;        {&lt;br&gt;            u16PBOldTime = u16NewTime;&lt;br&gt;            u8PBState = 3;&lt;br&gt;        }&lt;br&gt;    }&lt;br&gt;    if (u8PBState == 3)&lt;br&gt;    {&lt;br&gt;        if ((u16NewTime-u16PBOldTime) &amp;gt; DEBOUNCE) /* L-H debounce complete */&lt;br&gt;        {&lt;br&gt;            u8PBState = 0;&lt;br&gt;        }&lt;br&gt;    }&lt;br&gt;    if (gu8RTxMode == IDLE_MODE) /* RX is now done */&lt;br&gt;    {&lt;br&gt;        u16RTXOldTime = u16NewTime;&lt;br&gt;        u8XcvrMode = 0; /* Assume packet not intended for us */&lt;br&gt;        /* Check for code bytes match and successful packet reception */&lt;br&gt;        if ((sRxPacket.u8Status == SUCCESS) &amp;amp;&amp;amp; (au8RxDataBuffer[0] == 0xE1) &amp;amp;&amp;amp; (au8RxDataBuffer[1] == 0xCC) &amp;amp;&amp;amp; (au8RxDataBuffer[2] == SECURITY))&lt;br&gt;        {&lt;br&gt;            if (au8RxDataBuffer[3] == u8DeviceLed) /* Packet is for me. */&lt;br&gt;            {&lt;br&gt;                if ((au8RxDataBuffer[5] == u8LastDsn)) /* Re-received? */&lt;br&gt;                {&lt;br&gt;                    rxcount++; &lt;br&gt;                }&lt;br&gt;                else&lt;br&gt;                {&lt;br&gt;                    rxcount = 1;&lt;br&gt;                    u8LastDsn = au8RxDataBuffer[5]; /* Update last dsn */&lt;br&gt;                }&lt;br&gt;                if ((au8RxDataBuffer[7] == TOGGLECMD) &amp;amp;&amp;amp; (rxcount == 1))  /* TOGGLE and not repeated */&lt;br&gt;                /* Toggle selected LED */&lt;br&gt;                {&lt;br&gt;                    if (au8RxDataBuffer[4] == 1)&lt;br&gt;                    {&lt;br&gt;                        LED1 ^=1;&lt;br&gt;                    }&lt;br&gt;                    if (au8RxDataBuffer[4] == 2)&lt;br&gt;                    {&lt;br&gt;                        LED2 ^=1;&lt;br&gt;                    }&lt;br&gt;                    if (au8RxDataBuffer[4] == 3)&lt;br&gt;                    {&lt;br&gt;                        LED3 ^=1;&lt;br&gt;                    }&lt;br&gt;                    if (au8RxDataBuffer[4] == 4)&lt;br&gt;                    {&lt;br&gt;                        LED4 ^=1;&lt;br&gt;                    }&lt;br&gt;                }&lt;br&gt;                u8XcvrMode = 2; /* ACKBACK required */&lt;br&gt;                if (au8RxDataBuffer[7] == QUERYCMD) /* Just a query */&lt;br&gt;                {&lt;br&gt;                    u8XcvrMode = 3; /* QUERYBACK required */&lt;br&gt;                }&lt;br&gt;            }&lt;br&gt;            else /* repeat */&lt;br&gt;            {&lt;br&gt;                u8LastDsn = au8RxDataBuffer[5]; /* Update last dsn */&lt;br&gt;                for (u8Count1=0; u8Count1&amp;lt;sRxPacket.u8DataLength+1; u8Count1++)&lt;br&gt;                {&lt;br&gt;                    au8TxDataBuffer[u8Count1] = au8RxDataBuffer[u8Count1]; &lt;br&gt;                }&lt;br&gt;                au8TxDataBuffer[sRxPacket.u8DataLength] = u8DeviceLed; &lt;br&gt;                sTxPacket.u8DataLength = sRxPacket.u8DataLength+1;&lt;br&gt;                u16NewTime = MCUReadTmr1 ();&lt;br&gt;                u16RTXOldTime = u16NewTime;&lt;br&gt;                while ((u16NewTime-u16RTXOldTime) &amp;lt; u16LagTime1)&lt;br&gt;                {&lt;br&gt;                    u16NewTime = MCUReadTmr1 ();&lt;br&gt;                }&lt;br&gt;                MCPSDataRequest(&amp;amp;sTxPacket);&lt;br&gt;                u16NewTime = MCUReadTmr1 ();&lt;br&gt;                u16RTXOldTime = u16NewTime;&lt;br&gt;                while ((u16NewTime-u16RTXOldTime) &amp;lt; u16LagTime2)&lt;br&gt;                {&lt;br&gt;                    u16NewTime = MCUReadTmr1 ();&lt;br&gt;                }&lt;br&gt;                MLMERXEnableRequest(&amp;amp;sRxPacket, 0x); /* back to on */&lt;br&gt;            }&lt;br&gt;        }&lt;br&gt;        else&lt;br&gt;        {&lt;br&gt;            u16Count = 0;&lt;br&gt;            while (u16Count &amp;lt; SHORTFLASHCOUNT) /* Flash all LEDs on/off a few times to indicate conflict */&lt;br&gt;            {&lt;br&gt;                #if defined (AXM_0308C)&lt;br&gt;                      BUZZ = 1; /* optional buzz to indicate conflict */&lt;br&gt;                  #endif&lt;br&gt;                u16OldTime = MCUReadTmr1 ();&lt;br&gt;                u16NewTime = u16OldTime;&lt;br&gt;                while ((u16NewTime-u16OldTime) &amp;lt; SHORTFLASHON)&lt;br&gt;                {&lt;br&gt;                    u16NewTime = MCUReadTmr1 ();&lt;br&gt;                }&lt;br&gt;                #if defined (AXM_0308C)&lt;br&gt;                      BUZZ = 0;&lt;br&gt;                  #endif&lt;br&gt;    &lt;br&gt;                u16OldTime = MCUReadTmr1 ();&lt;br&gt;                u16NewTime = u16OldTime;&lt;br&gt;                while ((u16NewTime-u16OldTime) &amp;lt; SHORTFLASHOFF)&lt;br&gt;                {&lt;br&gt;                    u16NewTime = MCUReadTmr1 ();&lt;br&gt;                }&lt;br&gt;                u16Count ++;    &lt;br&gt;            }&lt;br&gt;            MLMERXEnableRequest(&amp;amp;sRxPacket, 0x); /* back to on */&lt;br&gt;        }&lt;br&gt;    }&lt;br&gt;    if ((u8XcvrMode == 2) || (u8XcvrMode == 3)) /* reply after a delay for TDD. Sends the u8LightLed on/off anyway */&lt;br&gt;    {&lt;br&gt;        u8XcvrMode = 0; /* When done, back to mode 0 */&lt;br&gt;        u8GetLed = PackLed(au8RxDataBuffer[4]);&lt;br&gt;        for (u8Count1=0; u8Count1&amp;lt;sRxPacket.u8DataLength+1; u8Count1++) /* . */&lt;br&gt;        {&lt;br&gt;            au8TxDataBuffer[u8Count1] = au8RxDataBuffer[u8Count1]; &lt;br&gt;        }&lt;br&gt;        if (au8RxDataBuffer[7] == TOGGLECMD)&lt;br&gt;        {&lt;br&gt;            au8TxDataBuffer[7] = ACKBACK;&lt;br&gt;        }&lt;br&gt;        else&lt;br&gt;        {&lt;br&gt;            au8TxDataBuffer[7] = QUERYBACK;&lt;br&gt;        }&lt;br&gt;        au8TxDataBuffer[sRxPacket.u8DataLength] = 'D'; &lt;br&gt;        au8TxDataBuffer[4] = u8GetLed; &lt;br&gt;        au8TxDataBuffer[6] = rxcount; &lt;br&gt;        sTxPacket.u8DataLength = sRxPacket.u8DataLength+1;&lt;br&gt;        u16NewTime = MCUReadTmr1 ();&lt;br&gt;        u16RTXOldTime = u16NewTime;&lt;br&gt;        /* Dwell for possible repeats. */&lt;br&gt;        while ((u16NewTime-u16RTXOldTime) &amp;lt; DWELLTIME) /* 46mS */&lt;br&gt;        {&lt;br&gt;            u16NewTime = MCUReadTmr1 ();&lt;br&gt;        }&lt;br&gt;        MCPSDataRequest(&amp;amp;sTxPacket);&lt;br&gt;        u16NewTime = MCUReadTmr1 ();&lt;br&gt;        u16RTXOldTime = u16NewTime;&lt;br&gt;        while ((u16NewTime-u16RTXOldTime) &amp;lt; DWELLTIME2) /* 44mS */&lt;br&gt;        {&lt;br&gt;            u16NewTime = MCUReadTmr1 ();&lt;br&gt;        }&lt;br&gt;        u16RTXOldTime = u16NewTime;&lt;br&gt;        MLMERXEnableRequest(&amp;amp;sRxPacket, 0x); /* back to on */&lt;br&gt;    }&lt;br&gt;  }&lt;br&gt;}&lt;br&gt;&lt;br&gt;/**************************************************************&lt;br&gt;*    Function:     LED driver&lt;br&gt;*    Parameters: state. 1-4 is light only that LED. 5 is turn all off, 6 is all on.&lt;br&gt;*    Return:        none&lt;br&gt;**************************************************************/&lt;br&gt;void LedDrive (UINT8 state)&lt;br&gt;{&lt;br&gt;  switch (state)&lt;br&gt;  {&lt;br&gt;    case 0x01:&lt;br&gt;    LED1 = 0;&lt;br&gt;    LED2 = 1;&lt;br&gt;    LED3 = 1;&lt;br&gt;    LED4 = 1;&lt;br&gt;    break;&lt;br&gt;    case 0x02:&lt;br&gt;    LED1 = 1;&lt;br&gt;    LED2 = 0;&lt;br&gt;    LED3 = 1;&lt;br&gt;    LED4 = 1;&lt;br&gt;    break;&lt;br&gt;    case 0x03:&lt;br&gt;    LED1 = 1;&lt;br&gt;    LED2 = 1;&lt;br&gt;    LED3 = 0;&lt;br&gt;    LED4 = 1;&lt;br&gt;    break;&lt;br&gt;    case 0x04:&lt;br&gt;    LED1 = 1;&lt;br&gt;    LED2 = 1;&lt;br&gt;    LED3 = 1;&lt;br&gt;    LED4 = 0;&lt;br&gt;    break;&lt;br&gt;    case 0x05:&lt;br&gt;    LED1 = 1;&lt;br&gt;    LED2 = 1;&lt;br&gt;    LED3 = 1;&lt;br&gt;    LED4 = 1;&lt;br&gt;    break;&lt;br&gt;    case 0x06:&lt;br&gt;    LED1 = 0;&lt;br&gt;    LED2 = 0;&lt;br&gt;    LED3 = 0;&lt;br&gt;    LED4 = 0;&lt;br&gt;    break;&lt;br&gt;  }&lt;br&gt;  return;&lt;br&gt;}&lt;br&gt;&lt;br&gt;/**************************************************************&lt;br&gt;*    Function:     LED state return&lt;br&gt;*    Returns LED state. 0xFF is on, 0x00 is off.&lt;br&gt;**************************************************************/&lt;br&gt;UINT8 PackLed (UINT8 lednum)&lt;br&gt;{&lt;br&gt;  switch (lednum)&lt;br&gt;  {&lt;br&gt;    case 0x01:&lt;br&gt;    if (LED1 == 0)&lt;br&gt;    {&lt;br&gt;        return 0xFF;&lt;br&gt;    }&lt;br&gt;    else&lt;br&gt;    {&lt;br&gt;        return 0x00;&lt;br&gt;    }&lt;br&gt;    break;&lt;br&gt;    case 0x02:&lt;br&gt;    if (LED2 == 0)&lt;br&gt;    {&lt;br&gt;        return 0xFF;&lt;br&gt;    }&lt;br&gt;    else&lt;br&gt;    {&lt;br&gt;        return 0x00;&lt;br&gt;    }&lt;br&gt;    break;&lt;br&gt;    case 0x03:&lt;br&gt;    if (LED3 == 0)&lt;br&gt;    {&lt;br&gt;        return 0xFF;&lt;br&gt;    }&lt;br&gt;    else&lt;br&gt;    {&lt;br&gt;        return 0x00;&lt;br&gt;    }&lt;br&gt;    break;&lt;br&gt;    case 0x04:&lt;br&gt;    if (LED4 == 0)&lt;br&gt;    {&lt;br&gt;        return 0xFF;&lt;br&gt;    }&lt;br&gt;    else&lt;br&gt;    {&lt;br&gt;        return 0x00;&lt;br&gt;    }&lt;br&gt;    break;&lt;br&gt;  }&lt;br&gt;  return 0x55;&lt;br&gt;}&lt;br&gt;&lt;br&gt;/**************************************************************&lt;br&gt;*    Function:     Received data handler&lt;br&gt;*    Parameters: tRxPacket&lt;br&gt;**************************************************************/&lt;br&gt;void MCPSDataIndication(tRxPacket *sRxPacket)&lt;br&gt;/* Just a direct return. Main loop will handle it. */&lt;br&gt;{&lt;br&gt;}&lt;br&gt;&lt;br&gt;/**************************************************************&lt;br&gt;*    Function:     MC13192 reset handler (not yet implemented)&lt;br&gt;*    Parameters: none&lt;br&gt;**************************************************************/&lt;br&gt;void MLMEMC13192ResetIndication (void)&lt;br&gt;{&lt;br&gt;  LED1 = 0;&lt;br&gt;  LED2 = 0;&lt;br&gt;  LED3 = 0;&lt;br&gt;  LED4 = 0;&lt;br&gt;  for(;;);&lt;br&gt;}&lt;br&gt;&lt;br&gt;/**************************************************************&lt;br&gt;*    Function:     Read MCU timer.&lt;br&gt;*    Parameters: none&lt;br&gt;*    Return:        16-bit timer value.&lt;br&gt;**************************************************************/&lt;br&gt;UINT16 MCUReadTmr1(void)&lt;br&gt;{&lt;br&gt;  UINT16  w; /* w[0] is MSB, w[1] is LSB */&lt;br&gt;  ((UINT8*)&amp;amp;w)[0] = TPM1CNTH; /* MSB */&lt;br&gt;  ((UINT8*)&amp;amp;w)[1] = TPM1CNTL; /* LSB */&lt;br&gt;  return w;&lt;br&gt;}&lt;br&gt;&lt;br&gt;/**************************************************************&lt;br&gt;*    Function:     Delay.&lt;br&gt;*    Parameters: Delay u16Count&lt;br&gt;*    Return:        none.&lt;br&gt;**************************************************************/&lt;br&gt;void MCUDelay (UINT16 delay_t)&lt;br&gt;{&lt;br&gt;  UINT16 u16MCUOldTime;&lt;br&gt;  UINT16 u16MCUNewTime;&lt;br&gt;  u16MCUOldTime = MCUReadTmr1();&lt;br&gt;  u16MCUNewTime = u16MCUOldTime;&lt;br&gt;  while ((u16MCUNewTime-u16MCUOldTime) &amp;lt; delay_t)&lt;br&gt;  {&lt;br&gt;    u16MCUNewTime = MCUReadTmr1();&lt;br&gt;  }&lt;br&gt;}</description>
      <author>chanrusnetmum</author>
      <pubDate>Thu, 20 May 2010 08:02:40 GMT</pubDate>
      <comments>http://quomon.com/question_ZigBee-Spy-node_13576.aspx#comments</comments>
      <category>computer, code, Time, application, Flash, peripheral , zigbee, codewarrior, programming</category>
    </item>
    <item>
      <guid>http://quomon.com/question_how-convert-console-application-windows-service-C_13575.aspx</guid>
      <title>how do you convert a console application to a windows service in C#</title>
      <link>http://quomon.com/question_how-convert-console-application-windows-service-C_13575.aspx</link>
      <description>Dear Programmers,&lt;br&gt;&lt;br&gt;how do you convert a console application to a windows service.Any recommendations? The following code is below&lt;br&gt;&lt;br&gt;[code]using System;&lt;br&gt;using System.Collections.Generic;&lt;br&gt;using System.Linq;&lt;br&gt;using System.Text;&lt;br&gt;using System.Runtime.InteropServices;&lt;br&gt;&lt;br&gt;using System.Management;&lt;br&gt;using System.IO;&lt;br&gt;using System.Text.RegularExpressions;&lt;br&gt;&lt;br&gt;public struct ParamHost &lt;br&gt;        {&lt;br&gt;            public string MAC, hostname,IP;&lt;br&gt;&lt;br&gt;            public ParamHost(string MAC, string hostname, string IP) &lt;br&gt;              {&lt;br&gt;                this.MAC = MAC;&lt;br&gt;                this.hostname = hostname;&lt;br&gt;&lt;br&gt;                this.IP = IP;&lt;br&gt;              }&lt;br&gt;        }&lt;br&gt;&lt;br&gt;&lt;br&gt;namespace NetworkCardConfig&lt;br&gt;{&lt;br&gt;    class Program&lt;br&gt;    {&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;        static void Main(string[] args)&lt;br&gt;        {&lt;br&gt;            // Open file MAC.TXT&lt;br&gt;            // read from file or write to file&lt;br&gt;            System.IO.FileStream myStream = new FileStream(&amp;quot;C:\\MAC.txt&amp;quot;, FileMode.Open);&lt;br&gt;&lt;br&gt;            System.IO.StreamReader myStreamReader = new StreamReader(myStream);&lt;br&gt;&lt;br&gt;            string fileContent = myStreamReader.ReadToEnd();&lt;br&gt;&lt;br&gt;            myStreamReader.Close();&lt;br&gt;&lt;br&gt;            string[] Lines = fileContent.Split('\n');&lt;br&gt;&lt;br&gt;            String[] Field;&lt;br&gt;&lt;br&gt;            ParamHost[] PH;&lt;br&gt;&lt;br&gt;&lt;br&gt;            PH = new ParamHost[Lines.Length]; // to do &lt;br&gt;&lt;br&gt;            int PH_Number = 0;&lt;br&gt;&lt;br&gt;&lt;br&gt;            foreach (string Line in Lines)&lt;br&gt;            {&lt;br&gt;&lt;br&gt;                if (Line != &amp;quot;&amp;quot; &amp;amp;&amp;amp; Line != &amp;quot;\r&amp;quot;)&lt;br&gt;                {&lt;br&gt;                    Console.WriteLine(&amp;quot;line :&amp;quot; + Line);&lt;br&gt;&lt;br&gt;                    Field = Line.Split(';');&lt;br&gt;&lt;br&gt;                    Console.WriteLine(&amp;quot;MAC {0}; hostname{1}; IP: {2}&amp;quot;, Field[0], Field[1], Field[2]);&lt;br&gt;&lt;br&gt;                    PH[PH_Number].MAC = Field[0];&lt;br&gt;                    PH[PH_Number].hostname = Field[1];&lt;br&gt;                    PH[PH_Number].IP = Field[2];&lt;br&gt;&lt;br&gt;/*&lt;br&gt;                    for (int i = 0; i &amp;lt; Field.Length; i++)&lt;br&gt;                    {&lt;br&gt;                    Console.WriteLine(Field[i]);&lt;br&gt;                    }*/&lt;br&gt;                    PH_Number++;&lt;br&gt;&lt;br&gt;&lt;br&gt;                    //foreach (String i in Field)&lt;br&gt;                    //{&lt;br&gt;&lt;br&gt;                      //  Console.WriteLine(Field[i]);&lt;br&gt;&lt;br&gt;&lt;br&gt;                    //}&lt;br&gt;                    //PH_Number++;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;                }&lt;br&gt;&lt;br&gt;                // Console.WriteLine(&amp;quot;{0}&amp;quot;, fileContent);&lt;br&gt;&lt;br&gt;                myStreamReader.Close();&lt;br&gt;&lt;br&gt;                //Console.WriteLine(PH[0].MAC);&lt;br&gt;&lt;br&gt;                ManagementClass objMC = new ManagementClass(&amp;quot;Win32_NetworkAdapterConfiguration&amp;quot;);&lt;br&gt;&lt;br&gt;&lt;br&gt;                ManagementObjectCollection objMOC = objMC.GetInstances();&lt;br&gt;&lt;br&gt;&lt;br&gt;                string gw;&lt;br&gt;                string myIpString;&lt;br&gt;                char[] delim;&lt;br&gt;                string[] myIpArray;&lt;br&gt;                string myGateWayString;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;                foreach (ManagementObject objMO in objMOC)&lt;br&gt;                {&lt;br&gt;&lt;br&gt;                    if (!(bool)objMO[&amp;quot;ipEnabled&amp;quot;])&lt;br&gt;                        continue;&lt;br&gt;                    //Console.WriteLine(objMO[&amp;quot;Caption&amp;quot;] + &amp;quot;,&amp;quot; + objMO[&amp;quot;ServiceName&amp;quot;] + &amp;quot;,&amp;quot; + objMO[&amp;quot;MACAddress&amp;quot;]);&lt;br&gt;&lt;br&gt;                    string MAC_card = objMO[&amp;quot;MACAddress&amp;quot;].ToString();&lt;br&gt;&lt;br&gt;                    for (int index = 0; index &amp;lt; PH_Number; index++)&lt;br&gt;                    {&lt;br&gt;                        string MAC_File = PH[index].MAC.ToString();&lt;br&gt;&lt;br&gt;                        //Console.WriteLine(&amp;quot;jkjkjk :&amp;quot; + MAC_card + MAC_File);&lt;br&gt;&lt;br&gt;                        if (MAC_card.Equals(MAC_File))&lt;br&gt;                        {&lt;br&gt;                            Console.WriteLine(&amp;quot;good card to configure ! ! &amp;quot; + MAC_File);&lt;br&gt;                            Console.WriteLine(&amp;quot;hostname &amp;quot; + PH[index].hostname);&lt;br&gt;                            Console.WriteLine(&amp;quot;IP &amp;quot; + PH[index].IP);&lt;br&gt;                            // Set nic parameters&lt;br&gt;                            // to do&lt;br&gt;&lt;br&gt;                            //string gw = PH[index].IP;&lt;br&gt;&lt;br&gt;&lt;br&gt;                            gw = PH[index].IP;&lt;br&gt;&lt;br&gt;                            //PH[index].IP = x.y.z.w -&amp;gt; gw= x.y.z.1&lt;br&gt;&lt;br&gt;                            // to do   gw = .1&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;                            //assuming myLocalIP is the IPAddress object you are using from the IPAddress array you will have been playing with before...&lt;br&gt;                            myIpString = gw.ToString(); //to return nice &amp;quot;255.255.255.255&amp;quot; notation to work with&lt;br&gt;                            delim = new char[1]; //set the delimiter you want to split your IP string by - so '.'&lt;br&gt;                            delim[0] = '.'; //set the delimiter you want to split your IP string by - so '.'&lt;br&gt;                            myIpArray = myIpString.Split(delim); //actually split the IP up&lt;br&gt;                            myIpArray[3] = &amp;quot;1&amp;quot;;&lt;br&gt;                            myGateWayString = myIpArray[0] + &amp;quot;.&amp;quot; + myIpArray[1] + &amp;quot;.&amp;quot; + myIpArray[2] + &amp;quot;.&amp;quot; + myIpArray[3]; //to reconstruct your gateway string&lt;br&gt;                            //IPAddress myGatewayObject = IPAddress.Parse(myGateWayString); //To construct your gateway IPAddress object to work with!&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;                            //setParmIP(PH[index].hostname, PH[index].IP, &amp;quot;255.255.255.0&amp;quot;, gw, &amp;quot;147.215.1.4&amp;quot;, &amp;quot;147.215.1.20&amp;quot;, &amp;quot;147.215.1.136&amp;quot;);&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;                            &lt;br&gt;                            setParmIP(PH[index].hostname, PH[index].IP, &amp;quot;255.255.255.0&amp;quot;, gw , &amp;quot;147.215.1.4&amp;quot;,&amp;quot;147.215.1.20&amp;quot;, &amp;quot;147.215.1.136&amp;quot;);&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;                            Console.ReadKey();&lt;br&gt;                        }&lt;br&gt;                    }&lt;br&gt;                }&lt;br&gt;            }&lt;br&gt;        }&lt;br&gt;        &lt;br&gt;&lt;br&gt;&lt;br&gt;        // Configue NIC&lt;br&gt;&lt;br&gt;        public static void setParmIP(string ComputerName, string IPAddress, string SubnetMask, string Gateway, string DNS_primary, string DNS_secondary, string WINS_Server)&lt;br&gt;        {&lt;br&gt;&lt;br&gt;            ManagementClass objMC = new ManagementClass(&lt;br&gt;                &amp;quot;Win32_NetworkAdapterConfiguration&amp;quot;);&lt;br&gt;            ManagementObjectCollection objMOC = objMC.GetInstances();&lt;br&gt;&lt;br&gt;        foreach (ManagementObject objMO in objMOC)&lt;br&gt;                {&lt;br&gt;&lt;br&gt;                    if (!(bool)objMO[&amp;quot;IPEnabled&amp;quot;])&lt;br&gt;                        continue;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;                    try&lt;br&gt;                    {&lt;br&gt;                        ManagementBaseObject objNewIP = null;&lt;br&gt;                        ManagementBaseObject objSetIP = null;&lt;br&gt;                        ManagementBaseObject objNewGate = null;&lt;br&gt;                        ManagementBaseObject objNewDNS = null;&lt;br&gt;                        ManagementBaseObject objNewWINS = null;&lt;br&gt;&lt;br&gt;&lt;br&gt;                        objNewIP = objMO.GetMethodParameters(&amp;quot;EnableStatic&amp;quot;);&lt;br&gt;                        objNewGate = objMO.GetMethodParameters(&amp;quot;SetGateways&amp;quot;);&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;                        //Set DefaultGateway&lt;br&gt;                        objNewGate[&amp;quot;DefaultIPGateway&amp;quot;] = new string[] { Gateway };&lt;br&gt;                        objNewGate[&amp;quot;GatewayCostMetric&amp;quot;] = new int[] { 1 };&lt;br&gt;&lt;br&gt;&lt;br&gt;                        //Set IPAddress and Subnet Mask&lt;br&gt;                        objNewIP[&amp;quot;IPAddress&amp;quot;] = new string[] { IPAddress };&lt;br&gt;&lt;br&gt;                        objNewIP[&amp;quot;SubnetMask&amp;quot;] = new string[] { SubnetMask };&lt;br&gt;&lt;br&gt;                        objSetIP = objMO.InvokeMethod(&amp;quot;EnableStatic&amp;quot;, objNewIP, null);&lt;br&gt;                        objSetIP = objMO.InvokeMethod(&amp;quot;SetGateways&amp;quot;, objNewGate, null);&lt;br&gt;                        //Set DNS server&lt;br&gt;                        objNewDNS = objMO.GetMethodParameters(&amp;quot;SetDNSServerSearchOrder&amp;quot;);&lt;br&gt;                        objNewDNS[&amp;quot;DNSServerSearchOrder&amp;quot;] = new string[] { DNS_primary, DNS_secondary };&lt;br&gt;                        objSetIP = objMO.InvokeMethod(&amp;quot;SetDNSServerSearchOrder&amp;quot;, objNewDNS, null);&lt;br&gt;&lt;br&gt;                        //Set WINS server&lt;br&gt;                        objNewWINS = objMO.GetMethodParameters(&amp;quot;SetWINSServer&amp;quot;);&lt;br&gt;                        //objNewWINS[&amp;quot;WINSPrimaryServer&amp;quot;] = new string[] {WINS_Server}; // not working&lt;br&gt;                        objNewWINS.SetPropertyValue(&amp;quot;WINSPrimaryServer&amp;quot;, WINS_Server);&lt;br&gt;                        objNewWINS.SetPropertyValue(&amp;quot;WINSSecondaryServer&amp;quot;, &amp;quot;&amp;quot;);&lt;br&gt;&lt;br&gt;                        objSetIP = objMO.InvokeMethod(&amp;quot;SetWINSServer&amp;quot;, objNewWINS, null);&lt;br&gt;&lt;br&gt;                        // Set hostname to do&lt;br&gt;                        string compName = System.Windows.Forms.SystemInformation.ComputerName.ToString();&lt;br&gt;                        WqlObjectQuery query = new WqlObjectQuery(&amp;quot;SELECT * FROM Win32_ComputerSystem&amp;quot;);&lt;br&gt;                        ManagementObjectSearcher search = new ManagementObjectSearcher(query);&lt;br&gt;                        object[] name = { ComputerName };&lt;br&gt;                        foreach (ManagementObject mo in search.Get())&lt;br&gt;                        {&lt;br&gt;                            mo.InvokeMethod(&amp;quot;Rename&amp;quot;, name);&lt;br&gt;                        }&lt;br&gt;&lt;br&gt;&lt;br&gt;           Console.WriteLine(&lt;br&gt;                           &amp;quot;Updated IPAddress, SubnetMask , Default Gateway ,DNS, Wins and Hostname !&amp;quot;);&lt;br&gt;&lt;br&gt;&lt;br&gt;                    }&lt;br&gt;                    catch (Exception ex)&lt;br&gt;                    {&lt;br&gt;                        Console.WriteLine(&amp;quot;Unable to Set IP : &amp;quot; + ex.Message);&lt;br&gt;&lt;br&gt;                        //read the ASCII value of the char typed and cast it to a char value&lt;br&gt;                        //   char ch = (char)Console.Read();&lt;br&gt;&lt;br&gt;                        // read the ASCII value of the char typed&lt;br&gt;&lt;br&gt;                        //           int asciiCode = Console.Read();&lt;br&gt;&lt;br&gt;                        // read the input data until a return or new line is read&lt;br&gt;                        // this allows the user to type away until they press enter/return&lt;br&gt;                        // this method will return you information one line at a time... hence the name! :)&lt;br&gt;&lt;br&gt;                    }&lt;br&gt;&lt;br&gt;                }&lt;br&gt;            }&lt;br&gt;        }&lt;br&gt;    }&lt;br&gt;[/code]&lt;br&gt;</description>
      <author>chiaweikiat90</author>
      <pubDate>Thu, 20 May 2010 07:52:44 GMT</pubDate>
      <comments>http://quomon.com/question_how-convert-console-application-windows-service-C_13575.aspx#comments</comments>
      <category>windows, servers, System, forms, code, Time, programming</category>
    </item>
    <item>
      <guid>http://quomon.com/question_multiple-group-radio-buttons-validation_13297.aspx</guid>
      <title>multiple group of radio buttons validation</title>
      <link>http://quomon.com/question_multiple-group-radio-buttons-validation_13297.aspx</link>
      <description>hi guys, i have a form with input text, dropdown menu and groups of radio button. the validation for input text and dropdown menu works fine with these js validator -&lt;br&gt;&lt;br&gt;&amp;lt;script language=&amp;quot;JavaScript&amp;quot;&amp;gt;&lt;br&gt;function formValidator(){&lt;br&gt;&lt;br&gt;  // Make quick references to our fields&lt;br&gt;&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;var pensyarah = document.getElementById('pensyarah');&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;var kksem = document.getElementById('kksem');&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;// Check each input in the order that it appears in the form!&lt;br&gt;    if(madeSelection(pensyarah, &amp;quot;Sila pilih Pensyarah&amp;quot;)){&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;if(madeSelection(kksem, &amp;quot;Sila pilih Kod kursus&amp;quot;)){&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;return true;&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;}&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;}&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;return false;&lt;br&gt;&lt;br&gt;}&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;function isEmpty(elem, helperMsg){&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;if(elem.value.length == 0){&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;alert(helperMsg);&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;elem.focus(); // set the focus to this input&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;return true;&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;}&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;return false;&lt;br&gt;}&lt;br&gt;&lt;br&gt;function isNumeric(elem, helperMsg){&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;var numericExpression = /^[0-9\s\:]+$/;&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;if(elem.value.match(numericExpression)){&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;return true;&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;}else{&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;alert(helperMsg);&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;elem.focus();&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;return false;&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;}&lt;br&gt;}&lt;br&gt;&lt;br&gt;function isAlphabet(elem, helperMsg){&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;var alphaExp = /^[a-zA-Z\s\.]+$/;&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;if(elem.value.match(alphaExp)){&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;return true;&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;}else{&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;alert(helperMsg);&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;elem.focus();&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;return false;&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;}&lt;br&gt;}&lt;br&gt;&lt;br&gt;function isAlphanumeric(elem, helperMsg){&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;var alphaExp = /^[0-9a-zA-Z\s]+$/;&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;if(elem.value.match(alphaExp)){&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;return true;&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;}else{&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;alert(helperMsg);&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;elem.focus();&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;return false;&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;}&lt;br&gt;}&lt;br&gt;&lt;br&gt;function madeSelection(elem, helperMsg){&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;if(elem.value == &amp;quot;*Tiada Pilihan&amp;quot;){&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;alert(helperMsg);&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;elem.focus();&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;return false;&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;}else{&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;return true;&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;}&lt;br&gt;}&lt;br&gt;&lt;br&gt;&lt;br&gt;function emailValidator(elem, helperMsg){&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;var emailExp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;if(elem.value.match(emailExp)){&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;return true;&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;}else{&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;alert(helperMsg);&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;elem.focus();&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;return false;&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;}&lt;br&gt;}&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;lt;/script&amp;gt;&lt;br&gt;&lt;br&gt;my question is.. how to do the group of radio button validation inside the existing js validator.. is it posible to merge it in one function?&lt;br&gt;&lt;br&gt;this is my form code:&lt;br&gt;&lt;a href='http://www.modernessence.net/e1flashz/images_tmp/form_code.txt'&gt;http://www.modernessence.net/e1flashz/im...&lt;/a&gt;&lt;br&gt;&lt;br&gt;this is how the form looks like&lt;br&gt;&lt;a href='http://www.modernessence.net/e1flashz/images_tmp/form_validation.jpg'&gt;http://www.modernessence.net/e1flashz/im...&lt;/a&gt;&lt;br&gt;&lt;br&gt;any ideas..&lt;br&gt;&lt;br&gt;Thank you in advance.&lt;br&gt;&lt;br&gt;(sorry for my english, i'm from malaysia)&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</description>
      <author>mkronix</author>
      <pubDate>Tue, 27 Apr 2010 10:54:05 GMT</pubDate>
      <comments>http://quomon.com/question_multiple-group-radio-buttons-validation_13297.aspx#comments</comments>
      <category>JavaScript, forms, code, Text, Button, validation, Multiple Groups of Radio Button</category>
    </item>
    <item>
      <guid>http://quomon.com/question_disable-Input-Fields_13243.aspx</guid>
      <title>disable Input Fields</title>
      <link>http://quomon.com/question_disable-Input-Fields_13243.aspx</link>
      <description>Hi,&lt;br&gt;     I need urgent help, Need a code to change font color of disabled Fields IN IE,Thanks in advance</description>
      <author>Gayatrivision2006</author>
      <pubDate>Tue, 20 Apr 2010 09:43:51 GMT</pubDate>
      <comments>http://quomon.com/question_disable-Input-Fields_13243.aspx#comments</comments>
      <category>code, colors, change, urgent</category>
    </item>
    <item>
      <guid>http://quomon.com/question_How-write-embeddable-widget-jQuery_12769.aspx</guid>
      <title>How to write an embeddable widget using jQuery</title>
      <link>http://quomon.com/question_How-write-embeddable-widget-jQuery_12769.aspx</link>
      <description>I would like to write a widget that users can embed on any page.&lt;br&gt;&lt;br&gt;The widget's functionality is irrelevant, but let's say that it will show a list of bands from my website. &lt;br&gt;&lt;br&gt;I'm trying to figure out the perfect way to embed this widget, and here's some criteria:&lt;br&gt;- The code that should be embedded should be as small as possible&lt;br&gt;- The widget will need the jQuery library to be available. If it is not already loaded, it should load it, but leave no trace of it afterwards.&lt;br&gt;- The widget should not in any way disturb already running javascript on the page&lt;br&gt;- The widget should slow down page load as little as possible. It must not make the page hang until the complete widget has been loaded.&lt;br&gt;- The widget should only fetch its content once the complete page has loaded, as not to disturb the original user experience&lt;br&gt;&lt;br&gt;The optimal would be a line like this:&lt;br&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;myWidgetUrl&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br&gt;&lt;br&gt;Which would fetch less than 1kb of code, which can be cached without need to reload if another page also contains the widget.&lt;br&gt;&lt;br&gt;All this initial code needs to do is bind a function to the onload event, to be executed once the page has loaded.&lt;br&gt;&lt;br&gt;I can write something that will work, but I would like if anybody's got any input, and maybe together we can figure out the perfect implementation and publish it as an example of how to write your own embeddable widget.&lt;br&gt;&lt;br&gt;- Jakob</description>
      <author>jgivoni</author>
      <pubDate>Mon, 08 Mar 2010 13:54:09 GMT</pubDate>
      <comments>http://quomon.com/question_How-write-embeddable-widget-jQuery_12769.aspx#comments</comments>
      <category>Websites, JavaScript, code, event, jQuery, Development, widgets, embeddable code</category>
    </item>
    <item>
      <guid>http://quomon.com/question_How-validation-number-field-javascript_12584.aspx</guid>
      <title>How to do validation for a number field by javascript</title>
      <link>http://quomon.com/question_How-validation-number-field-javascript_12584.aspx</link>
      <description>Hi there, &lt;br&gt;&lt;br&gt;I have a field where the user has to enter the amount &lt;br&gt;it can be any number &lt;br&gt;eg: 30000 (or) somethimes 11111.50&lt;br&gt;I have a validation for number field, but when i enter the amount as 5000.65&lt;br&gt;it doesnt accept...&lt;br&gt;&lt;br&gt;My code:&lt;br&gt;function validate_grant(elem, helperMsg){&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;var numericExpression = /^[0-9]+$/;&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;if(elem.value.match(numericExpression)){&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;return true;&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;}else{&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;alert(helperMsg);&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;elem.focus();&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;return false;&lt;br&gt;&lt;span style="margin-left: 10px"&gt;&amp;nbsp;&lt;/span&gt;}&lt;br&gt;}&lt;br&gt;function validate_form(thisform)&lt;br&gt;{&lt;br&gt;with (thisform)&lt;br&gt;{&lt;br&gt;if (validate_grant(tgrant,&amp;quot;Enter a valid Amount&amp;quot;)==false)&lt;br&gt;  {&lt;br&gt;  tgrant.focus();return false&lt;br&gt;  }&lt;br&gt;}&lt;br&gt;}&lt;br&gt;Can any1 help me....thanks in advance</description>
      <author>natasha</author>
      <pubDate>Thu, 18 Feb 2010 13:41:17 GMT</pubDate>
      <comments>http://quomon.com/question_How-validation-number-field-javascript_12584.aspx#comments</comments>
      <category>JavaScript, code, validation</category>
    </item>
    <item>
      <guid>http://quomon.com/question_Undefined-shown-image_12321.aspx</guid>
      <title>'Undefined' shown instead of image.</title>
      <link>http://quomon.com/question_Undefined-shown-image_12321.aspx</link>
      <description>Hi,&lt;br&gt;&lt;br&gt;I have a site up and running here &lt;br&gt;&lt;br&gt;&lt;a href='http://www.mikeleworthy.com/index.html'&gt;http://www.mikeleworthy.com/index.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;and I have a random bg script running on each page using JavaScript. Sometimes though instead of an image the word 'undefined' comes up... How can I eliminate this? If you need to see the JavaScript for randomising then I can post it. The rest of the script is in my source code.&lt;br&gt;&lt;br&gt;Hope someone can help,&lt;br&gt;Mike.</description>
      <author>mikeleworthy</author>
      <pubDate>Mon, 01 Feb 2010 07:32:22 GMT</pubDate>
      <comments>http://quomon.com/question_Undefined-shown-image_12321.aspx#comments</comments>
      <category>JavaScript, images, code, script, randomiser, background image</category>
    </item>
    <item>
      <guid>http://quomon.com/question_I-dates-diffrence-code-javascrip-c_11785.aspx</guid>
      <title>I want be two dates diffrence code in javascrip and c#.</title>
      <link>http://quomon.com/question_I-dates-diffrence-code-javascrip-c_11785.aspx</link>
      <description>I want be two dates diffrence code in javascrip and c#.</description>
      <author>shilpi084</author>
      <pubDate>Tue, 22 Dec 2009 08:38:23 GMT</pubDate>
      <comments>http://quomon.com/question_I-dates-diffrence-code-javascrip-c_11785.aspx#comments</comments>
      <category>C#, code</category>
    </item>
    <item>
      <guid>http://quomon.com/question_Do-care-special-care-GZIP-filters-wokring-fine-jsp-html_11506.aspx</guid>
      <title>Do we need to take care any special care while using GZIP filters, it is wokring fine for jsp,html.</title>
      <link>http://quomon.com/question_Do-care-special-care-GZIP-filters-wokring-fine-jsp-html_11506.aspx</link>
      <description>In WAS5.1 the GZIP filter is not working with *.do but same is working for *.jsp,*.html...&lt;br&gt;I googled and pasted the code but it is showing me class cast exception.&lt;br&gt;Same is working on Tomcat.&lt;br&gt;The exception is: &lt;br&gt;&lt;br&gt;568617e3 WebGroup E SRVE0026E: [Servlet Error]-[com.mypg.CacheResponseWrapper]: java.lang.ClassCastException: com.cummins.cols.qes.CacheResponseWrapper &lt;br&gt;at com.ibm.ws.cache.servlet.CacheProxyResponse.isCommitted(CacheProxyResponse.java&lt;br&gt;:239) &lt;br&gt;at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDis&lt;br&gt;patcher.java(Compiled Code)) &lt;br&gt;at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085) &lt;br&gt;at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor&lt;br&gt;.java:398) &lt;br&gt;at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241) &lt;br&gt;at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) &lt;br&gt;at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) &lt;br&gt;at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code)) &lt;br&gt;at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code)) &lt;br&gt;at com.ibm.ws.cache.servlet.ServletWrapper.serviceProxied(ServletWrapper.java(Inli&lt;br&gt;ned Compiled Code))</description>
      <author>lsreedhar</author>
      <pubDate>Sat, 28 Nov 2009 08:16:49 GMT</pubDate>
      <comments>http://quomon.com/question_Do-care-special-care-GZIP-filters-wokring-fine-jsp-html_11506.aspx#comments</comments>
      <category>HTML, Errors, code, java, Filters, apache, Websphere</category>
    </item>
    <item>
      <guid>http://quomon.com/question_Could-open-hibernate-session-transaction-error-displayed-Please-suggest_11320.aspx</guid>
      <title>Could not open hibernate session for transaction is the error being displayed. Please suggest</title>
      <link>http://quomon.com/question_Could-open-hibernate-session-transaction-error-displayed-Please-suggest_11320.aspx</link>
      <description>After deploying a website in IIS while I was trying to register a new user, an error &amp;quot;Could not open hibernate session for a transaction&amp;quot; is being displayed. I think that some changes need to be made in the web.config file. I am not provided with the source code. Could anyone help me in solving this issue?</description>
      <author>swarupay</author>
      <pubDate>Thu, 19 Nov 2009 08:23:43 GMT</pubDate>
      <comments>http://quomon.com/question_Could-open-hibernate-session-transaction-error-displayed-Please-suggest_11320.aspx#comments</comments>
      <category>Websites, Errors, code, web, internet information services, open</category>
    </item>
    <item>
      <guid>http://quomon.com/question_OXC-control-populated-IIS_10069.aspx</guid>
      <title>OXC control is not populated on IIS</title>
      <link>http://quomon.com/question_OXC-control-populated-IIS_10069.aspx</link>
      <description>My code contains OXC control which populate itself from registry. This OXC is runing on STA thread. While I am running this application from Visual studio it runs as expected. But when I am trying to run the application after deploying it on IIS it is not working. The OXC control is populated with all values as empty.&lt;br&gt;&lt;br&gt;Could you please check with this issue.&lt;br&gt;&lt;br&gt;The code sniffet is as bellow;&lt;br&gt;&lt;br&gt;protected void btnViewOfferSCR9NXFer_Click(object sender, EventArgs e)&lt;br&gt;        {&lt;br&gt;            Thread tNITransfer = new Thread(new ThreadStart(NITransferCall));&lt;br&gt;            tNITransfer.SetApartmentState(ApartmentState.STA);&lt;br&gt;            tNITransfer.Start();&lt;br&gt;        }&lt;br&gt;&lt;br&gt; private void NITransferCall()&lt;br&gt;        {&lt;br&gt;            AxtsARC objAxtsARC;&lt;br&gt;            objAxtsARC = new AxtsARC();&lt;br&gt;            objAxtsARC.CreateControl();&lt;br&gt;            objAxtsARC.XferToCampaign(12, true, 0, true);&lt;br&gt;        }</description>
      <author>Jaydeep</author>
      <pubDate>Wed, 01 Jul 2009 06:04:30 GMT</pubDate>
      <comments>http://quomon.com/question_OXC-control-populated-IIS_10069.aspx#comments</comments>
      <category>code, internet information services, application, control, thread</category>
    </item>
    <item>
      <guid>http://quomon.com/question_code_9644.aspx</guid>
      <title>code</title>
      <link>http://quomon.com/question_code_9644.aspx</link>
      <description>Dear madam and sir&lt;br&gt;I want to devlop a window application How can detect my server is closed?</description>
      <author>comminfosys</author>
      <pubDate>Tue, 26 May 2009 01:20:03 GMT</pubDate>
      <comments>http://quomon.com/question_code_9644.aspx#comments</comments>
      <category>servers, code, application</category>
    </item>
    <item>
      <guid>http://quomon.com/question_how-make-screen-saver-give-full-code-id_9439.aspx</guid>
      <title>how make screen saver in c give me full code in my id</title>
      <link>http://quomon.com/question_how-make-screen-saver-give-full-code-id_9439.aspx</link>
      <description>my problum to make screen saver</description>
      <author>junotiwari</author>
      <pubDate>Tue, 19 May 2009 03:45:42 GMT</pubDate>
      <comments>http://quomon.com/question_how-make-screen-saver-give-full-code-id_9439.aspx#comments</comments>
      <category>code, Screen</category>
    </item>
    <item>
      <guid>http://quomon.com/question_How-I-post-comment-youtube-webbrowser-visual-basic-6_9320.aspx</guid>
      <title>How do I post a comment on youtube through a webbrowser in visual basic 6?</title>
      <link>http://quomon.com/question_How-I-post-comment-youtube-webbrowser-visual-basic-6_9320.aspx</link>
      <description>Hello, I need to post a comment on youtube through a webbrowser control on visual basic 6.&lt;br&gt;The current code I am using does not work.&lt;br&gt;Can someone help me out with this please? it's really confusing. I don't see why it doesn't work.&lt;br&gt;&lt;br&gt;Current Code:&lt;br&gt;Private Sub Command2_Click()&lt;br&gt;WebBrowser1.Navigate List1.Text&lt;br&gt;WebBrowser1.Document.All (&amp;quot;comment&amp;quot;).Value = Text4.Text&lt;br&gt;WebBrowser1.Document.All (&amp;quot;add_comment_button&amp;quot;).Click</description>
      <author>killre2606</author>
      <pubDate>Sun, 10 May 2009 05:27:26 GMT</pubDate>
      <comments>http://quomon.com/question_How-I-post-comment-youtube-webbrowser-visual-basic-6_9320.aspx#comments</comments>
      <category>code, control, post, visual basic 6, vb6</category>
    </item>
    <item>
      <guid>http://quomon.com/question_do-windows-service-template-code-monitor-files-update-database_8453.aspx</guid>
      <title>do you have windows service template code in #c to monitor files and update the database? </title>
      <link>http://quomon.com/question_do-windows-service-template-code-monitor-files-update-database_8453.aspx</link>
      <description>Trying to wite a windows service in C# which will monitor directories based on the config file and do some updates the database and move the files.</description>
      <author>nithia</author>
      <pubDate>Wed, 01 Apr 2009 14:11:59 GMT</pubDate>
      <comments>http://quomon.com/question_do-windows-service-template-code-monitor-files-update-database_8453.aspx#comments</comments>
      <category>windows, database, code, files</category>
    </item>
    <item>
      <guid>http://quomon.com/question_Need-slideshow-move-site-browser-adjustment-_8285.aspx</guid>
      <title>Need slideshow to move with site and browser adjustment...</title>
      <link>http://quomon.com/question_Need-slideshow-move-site-browser-adjustment-_8285.aspx</link>
      <description>Hi there. I am building a site which when you adjust the size of the browser the whole site moves to adjust with it...&lt;br&gt;&lt;br&gt;&lt;a href='http://www.sidfordprintanddesign.co.uk/indexclean.html'&gt;www.sidfordprintanddesign.co.uk/indexcle...&lt;/a&gt;&lt;br&gt;&lt;br&gt;I am adding an swf slideshow gallery to the page creative design (it's not there yet but i can put it there when i'm not at work). The dilema is that when i preview the site in any browser the swf file remains 'static' when the browser is moved but the rest of the site adjusts...&lt;br&gt;&lt;br&gt;If you take a look at the source code of the page i've shown you'll get the idea of how the site is built.&lt;br&gt;&lt;br&gt;How can I 'embed' the swf file so it moves with the rest of the site. I'm building it using layers.&lt;br&gt;&lt;br&gt;mike.</description>
      <author>mikeleworthy</author>
      <pubDate>Sat, 28 Mar 2009 05:40:15 GMT</pubDate>
      <comments>http://quomon.com/question_Need-slideshow-move-site-browser-adjustment-_8285.aspx#comments</comments>
      <category>browsers, code, gallery, Design, Layers, swf, HTML, CSS</category>
    </item>
    <item>
      <guid>http://quomon.com/question_strange-firefox-3-html-css-rendering-issues_7849.aspx</guid>
      <title>strange firefox 3 html/css rendering issues</title>
      <link>http://quomon.com/question_strange-firefox-3-html-css-rendering-issues_7849.aspx</link>
      <description>Hi,&lt;br&gt;&lt;br&gt;Have you heard of any instances where the same Firefox version 3.0.5 will render the same html code differently on different windows computers?&lt;br&gt;I basically experience issues where the site looks fine on my computer, but my partner and sometimes clients see it slightly different.&lt;br&gt;I understand differences between browsers and different versions, but the same exact browser?&lt;br&gt;I tried disabling the different toolbars I have installed, but that didn't seem to help anything.&lt;br&gt;So basically my question is if you know of anything that could provoke this. I'm not looking to analyze concrete html examples.&lt;br&gt;&lt;br&gt;Hope you can help...</description>
      <author>dave</author>
      <pubDate>Fri, 20 Mar 2009 18:33:18 GMT</pubDate>
      <comments>http://quomon.com/question_strange-firefox-3-html-css-rendering-issues_7849.aspx#comments</comments>
      <category>HTML, windows, browsers, firefox, code, computer, CSS, programming</category>
    </item>
    <item>
      <guid>http://quomon.com/question_store-data-database-xml_7788.aspx</guid>
      <title>store the data from the database to the xml</title>
      <link>http://quomon.com/question_store-data-database-xml_7788.aspx</link>
      <description>I have the table,I want asp.net source code to store and retrive data from the database using xml.At first i want to store the database dataitems to the xml from that xml i want to read the dataitems.Please any one reply me.</description>
      <author>aishwar7</author>
      <pubDate>Tue, 17 Mar 2009 01:16:13 GMT</pubDate>
      <comments>http://quomon.com/question_store-data-database-xml_7788.aspx#comments</comments>
      <category>asp, database, XML, code</category>
    </item>
    <item>
      <guid>http://quomon.com/question_Shadowbox-js-Cant-work-all_7777.aspx</guid>
      <title>Shadowbox.js Cant get it to work at all!</title>
      <link>http://quomon.com/question_Shadowbox-js-Cant-work-all_7777.aspx</link>
      <description>Hi. I have been looking endlessly to try to get shadowbox.js to work. I have trawled through forums and downloaded endless amounts of code but cant seem to figure it out.&lt;br&gt;&lt;br&gt;I've been on the actual site &lt;a href='http://www.mjijackson.com/shadowbox/'&gt;http://www.mjijackson.com/shadowbox/&lt;/a&gt; but there is no explanation on how to get it working. There is but for js experts i guess.&lt;br&gt;&lt;br&gt;I have looked at source codes of sites to see if can work out whats going on but when i build it and play around it doesn't seem to work.&lt;br&gt;&lt;br&gt;i kind of need a step by step guide on how to to implement the code and where to put the code. where the images are called from and placed...it does it on the site above but it's all TOO vague for me i'm afraid.&lt;br&gt;&lt;br&gt;i have downloaded the code files from the site above and am ready to go!&lt;br&gt;&lt;br&gt;hope someone can help me.&lt;br&gt;mike.&lt;br&gt;</description>
      <author>mikeleworthy</author>
      <pubDate>Sat, 14 Mar 2009 07:06:52 GMT</pubDate>
      <comments>http://quomon.com/question_Shadowbox-js-Cant-work-all_7777.aspx#comments</comments>
      <category>images, files, code, JS, shadowbox, script, HTML</category>
    </item>
    <item>
      <guid>http://quomon.com/question_Website-Validation-Dreamweaver_7460.aspx</guid>
      <title>Website Validation - Dreamweaver.</title>
      <link>http://quomon.com/question_Website-Validation-Dreamweaver_7460.aspx</link>
      <description>Hi there. Just wondering if there is a tutorial that will take me through website validation. So that if I submit to WC3 it will be green, not red!&lt;br&gt;&lt;br&gt;I am essentially a designer so code is not my strong point. Though know a bit but would like to just give my sites that professional touch.&lt;br&gt;&lt;br&gt;any help would be great!!&lt;br&gt;Mike.</description>
      <author>mikeleworthy</author>
      <pubDate>Thu, 05 Mar 2009 10:02:42 GMT</pubDate>
      <comments>http://quomon.com/question_Website-Validation-Dreamweaver_7460.aspx#comments</comments>
      <category>CSS, HTML, code, validate site, WC3</category>
    </item>
    <item>
      <guid>http://quomon.com/question_add-border-sliding-gallery-flash_6949.aspx</guid>
      <title>add a border to sliding gallery in flash.</title>
      <link>http://quomon.com/question_add-border-sliding-gallery-flash_6949.aspx</link>
      <description>I have created a sliding gallery in flash that moves back and forth when you rollover it. i suppose it's called a 'scrolling image gallery' i used this tutorial and it's working great&lt;br&gt;&lt;br&gt;&lt;a href='http://www.republicofcode.com/tutorials/flash/imagegallery/index.php'&gt;http://www.republicofcode.com/tutorials/...&lt;/a&gt;&lt;br&gt;&lt;br&gt;but cannot find anywhere, through many long sessions on the net, how to add a border around the entire gallery? i can draw one around the gallery on the stage but it doesn't show up when i preview the movie... it's driving me mad!&lt;br&gt;&lt;br&gt;any help would be great! or if you need anymore details.</description>
      <author>mikeleworthy</author>
      <pubDate>Wed, 11 Feb 2009 18:33:13 GMT</pubDate>
      <comments>http://quomon.com/question_add-border-sliding-gallery-flash_6949.aspx#comments</comments>
      <category>Flash, code, images</category>
    </item>
  </channel>
</rss>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title id="_ctl0_pageTitle">Quomon.com - Questions and Answers for IT &amp; Graphic Design Professionals</title>
	<meta id="_ctl0_metaKeywords" name="keywords" content="IT experts, Graphic Design experts, questions, forum, answers"></meta>
	<meta id="_ctl0_metaDescription" name="description" content="Questions and Answers for IT &amp; Graphic Design Professionals"></meta>
	<link id="_ctl0_cssLink" rel="stylesheet" href="styles/style.css" type="text/css"></link>
	<link rel="SHORTCUT ICON" href="favicon.ico">
	<link id="_ctl0_rssFeedLink" rel="alternate" type="application/rss+xml" title="RSS"></link>
	<meta id="_ctl0_metaLanguage" http-equiv="content-language" content="en"></meta>
</head>
<body onload="javascript: setSearchTab('');">
    <center>
        <form name="aspnetForm" method="post" action="questionsrss.aspx?categoryIds=2689&amp;" id="aspnetForm">
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUENTM4MQ9kFgJmD2QWBgIFDxYCHgdjb250ZW50BQJlbmQCBg9kFhICCA8WAh4FdGl0bGUFGElUIFNvbHV0aW9ucyBhbmQgRXhwZXJ0cxYCZg8WAh4Dc3JjBRR+L2ltYWdlcy9sb2dvX2VuLmdpZmQCCQ8WAh8BBRJBc2sgYW4gSVQgcXVlc3Rpb24WAgIBDw8WAh4ISW1hZ2VVcmwFGn4vaW1hZ2VzL3RvcG5hdl9hc2tfZW4uanBnZGQCCg8WAh8BBRJTb2x2ZSBJVCBxdWVzdGlvbnMWAgIBDw8WAh8DBR1+L2ltYWdlcy90b3BuYXZfYW5zd2VyX2VuLmpwZ2RkAgsPFgIfAQURRmluZCBJVCBzb2x1dGlvbnMWAgIBDw8WAh8DBR1+L2ltYWdlcy90b3BuYXZfYnJvd3NlX2VuLmpwZ2RkAgwPFgIfAQUVU2VhcmNoIGZvciBJVCBleHBlcnRzFgICAQ8PFgIfAwUdfi9pbWFnZXMvdG9wbmF2X2V4cGVydF9lbi5qcGdkZAINDxYCHgdWaXNpYmxlaGQCFQ8WAh4EaHJlZgVlaHR0cDovL2RlbC5pY2lvLnVzL3Bvc3Q/dj00Jm5vdWkmanVtcD1jbG9zZSZ1cmw9aHR0cDovL3F1b21vbi5jb20vcXVlc3Rpb25zcnNzLmFzcHg/Y2F0ZWdvcnlJZHM9MjY4OSZkAhYPFgIfBQVYaHR0cDovL2RpZ2cuY29tL3N1Ym1pdD9waGFzZT0yJnVybD1odHRwOi8vcXVvbW9uLmNvbS9xdWVzdGlvbnNyc3MuYXNweD9jYXRlZ29yeUlkcz0yNjg5JmQCJQ8WBB8FBRlodHRwOi8vd3d3LmFuc3dlcmJhc2UuY29tHglpbm5lcmh0bWwFHlF1ZXN0aW9ucyBhbmQgQW5zd2VycyBTb2Z0d2FyZWQCBw8PFgIeBFRleHQFpwE8c2NyaXB0IHNyYz0iaHR0cDovL3d3dy5nb29nbGUtYW5hbHl0aWNzLmNvbS91cmNoaW4uanMiIHR5cGU9InRleHQvamF2YXNjcmlwdCI+PC9zY3JpcHQ+PHNjcmlwdCB0eXBlPSJ0ZXh0L2phdmFzY3JpcHQiPl91YWNjdCA9ICJVQS00MjQxMTctMSI7dXJjaGluVHJhY2tlcigpOzwvc2NyaXB0PmRkZN7XutfpjcOmvTNPxcBr2Z0AAAAA" />

<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWBAKauMeODQKTq4vcCAKsm/HVDgK74eDbBAfTYKGq/w+5ei8xIf9jaG0AAAAA" />    
	        <div class="page">
	            
		        <div class="logo" style="margin-top: 6px;">
			        <span class="topRight"><a href="Help.aspx" id="_ctl0_howQuomonWorksLink">Help</a> </span>
			        <script type="text/javascript" src="javascript/Main.js" language="javascript"></script>
			        <span class="topSearchArea"><span class="textSmall"><span id="searchQuestions" onclick="javascript: setSearchTab(this.id);" style="CURSOR: pointer">
						        &nbsp;<span id="_ctl0_questionsLabel">Questions</span>&nbsp;</span>&nbsp;|&nbsp;<span id="searchSolutions" onclick="javascript: setSearchTab(this.id);" style="CURSOR: pointer">&nbsp;<span id="_ctl0_Label1">Solutions</span>&nbsp;</span>&nbsp;|&nbsp;<span id="searchExperts" onclick="javascript: setSearchTab(this.id);" style="CURSOR: pointer">&nbsp;<span id="_ctl0_expertsLabel">Experts</span>&nbsp;</span>
				        </span>
				    <br>
				    <input name="_ctl0:searchText" type="text" maxlength="40" id="_ctl0_searchText" class="button" style="width: 200px" />&nbsp;<input type="submit" name="_ctl0:searchButton" value="Search" id="_ctl0_searchButton" class="button" />
				    <input name="_ctl0:searchType" type="text" id="_ctl0_searchType" style="DISPLAY: none" />
				    <script>
			            var searchTypeTextBox = document.getElementById('_ctl0_searchType');
			        </script>
			        </span><a href="default.aspx" id="_ctl0_logoHomeLink" title="IT Solutions and Experts"><img src="images/logo_en.gif" id="_ctl0_logoImage" border="0" alt="Quomon Logo" /></a>
			        <div style="CLEAR: right"></div>
			        <span class="topNavButton"><a href="AskQuestion.aspx" id="_ctl0_askQuestionLink" title="Ask an IT question">
					        <img id="_ctl0_askImage" src="images/topnav_ask_en.jpg" alt="Ask a Question" border="0" /></a></span>
			        <span class="topNavButton"><a href="AnswerQuestions.aspx?view=answer" id="_ctl0_answerQuestionsLink" title="Solve IT questions">
					        <img id="_ctl0_answerImage" src="images/topnav_answer_en.jpg" alt="Answer questions" border="0" /></a></span>
			        <span class="topNavButton"><a href="BrowseQuestions.aspx?view=browse" id="_ctl0_browseQuestionsLink" title="Find IT solutions">
					        <img id="_ctl0_browseImage" src="images/topnav_browse_en.jpg" alt="Browse Existing Solutions" border="0" /></a></span>
			        <span class="topNavButton"><a href="ExpertSearchHome.aspx" id="_ctl0_expertSearchLink" title="Search for IT experts">
					        <img id="_ctl0_findExpertsImage" src="images/topnav_expert_en.jpg" alt="Find an Expert" border="0" /></a></span>
		    </div>
		    <div style="clear: left"></div>
		    
		    <div id="_ctl0_loggedOutSubMenuDiv" class="loggedOutSubMenu">
			    <a href="register.aspx" id="_ctl0_registerLink">Register</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="login.aspx" id="_ctl0_loginLink">Login</a>
		    </div>
		    <hr class="topHr">
		    <div id="pageContent">
                
                
                
                <div class="leftColumn">
                     
                    
                    
                </div>
                <div class="rightColumn">
                     
                    
                    
                </div>
            </div>
            <div class="passItOnDiv" style="clear: both;">
	            <table cellpadding="0" cellspacing="0" border="0" style="border-collapse: collapse;">
		            <tr style="height: 8px;">
			            <td align="left" style="width: 8px;"><img src="images/corner5_tl.gif"></td>
			            <td bgcolor="#EBEBEB" style="width: 960px;"><img src="images/invisible.gif"></td>
			            <td align="right" style="width: 8px;"><img src="images/corner5_tr.gif"></td>
		            </tr>
		            <tr bgcolor="#EBEBEB">
			            <td style="text-align: center" colspan="3">
			                <p><b><span id="_ctl0_passItOnLabel">"Psst, Quomon is a great site.  Pass it on."</span></b>&nbsp;&nbsp;&nbsp;&nbsp;
				            <a href="RecommendUs.aspx" id="_ctl0_tellAFriendLink">Tell a Friend</a>&nbsp;&nbsp;|&nbsp;&nbsp;
				            <a href="LinkToUs.aspx" id="_ctl0_linkToUsLink">Link To Us</a>&nbsp;&nbsp;|&nbsp;&nbsp;						
				            <a href="http://del.icio.us/post?v=4&noui&jump=close&url=http://quomon.com/questionsrss.aspx?categoryIds=2689&" id="_ctl0_deliciousLink"><img src="http://del.icio.us/static/img/delicious.med.gif" id="_ctl0_Img1" border="0" /> <span id="_ctl0_deliciousLabel">Save to Delicious</span></a>&nbsp;&nbsp;|&nbsp;&nbsp;						
				            <a href="http://digg.com/submit?phase=2&url=http://quomon.com/questionsrss.aspx?categoryIds=2689&" id="_ctl0_diggLink"><img src="http://digg.com/img/badges/16x16-digg-guy.png" width="16" height="16" alt="Digg!" border="0"> <span id="_ctl0_diggLabel">Digg it</span></a>
				            </p>
			            </td>
		            </tr>
		            <tr style="height: 8px;">
			            <td align="left"><img src="images/corner5_bl.gif"></td>
			            <td bgcolor="#EBEBEB"><img src="images/invisible.gif"></td>
			            <td align="right"><img src="images/corner5_br.gif"></td>
		            </tr>
	            </table>
            </div>
            <hr class="bottomHr">
            <div class="bottomLinks">
	            <span class="copyrightSpan"><span class="textSmall">© 2005-2010&nbsp;&nbsp;&nbsp;<img src="images/subpage_logo_small.gif" id="_ctl0_quomonLogoSmallImage" border="0" alt="Quomon Small Logo" /></span></span> 
	            <span class="textSmall"><a href="Help.aspx" id="_ctl0_A1">Help</a>&nbsp;&nbsp;|&nbsp;&nbsp;<span id="_ctl0_revenuesharingFooterLink"><a href="RevenueSharingOverview.aspx" id="_ctl0_a10">Revenue Sharing</a>&nbsp;&nbsp;|&nbsp;&nbsp;</span><a href="Advertising.aspx" id="_ctl0_advertisingLink">Advertising</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="CorporateSolutions.aspx" id="_ctl0_corporateSolutionsLink">Corporate Solutions</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="LinkToUs.aspx" id="_ctl0_linkToUs2Link">Link To Us</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="AboutUs.aspx" id="_ctl0_aboutUsLink">About Us</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="ContactUs.aspx" id="_ctl0_contactUsLink">Contact Us</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="TermsOfUse.aspx" id="_ctl0_termsOfUseLink">Terms of Use</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="Privacy.aspx" id="_ctl0_privacyLink">Privacy</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="AllQuestions.aspx" id="_ctl0_allQuestionsLink">All Questions</a></span>
            </div>
            <center>
                <p></p>
                <br>

                <table width="700" cellpadding="0" cellspacing="0" border="0" style="float: left">
		            <tr>
			            <td align="left" width="1%">
			            <img src="images/corner5_tl.gif"></td>
			            <td width="98%" colspan="2" bgcolor="#EBEBEB">
			            </td>
			            <td align="right" width="1%">
			            <img src="images/corner5_tr.gif"></td>
		            </tr>
		            <tr bgcolor="#EBEBEB">
			            <td colspan="4">
				            <div class="content" style="height: 100px">
					            <table cellpadding="0" width="95%" cellspacing="2" border="0">
						            <tr>
							            <td align="left" colspan="2" height="20" valign="top">
							            <p id="_ctl0_languageOptionsLabel" style="font-weight: bold">Language Options</p>
							            </td>
						            </tr>
						            <tr>
							            <td align="left" width="15%" valign="top">
							            <p>English:</p>
							            </td>
							            <td align="left" width="85%" valign="top">
							            <a href="http://www.quomon.com">www.quomon.com</a>
							            </td>
						            </tr>
						            <tr>
							            <td align="left" valign="top">
							            <p>Español:</p>
							            </td>
							            <td align="left" valign="top">
							            <a href="http://www.quomon.es">www.quomon.es</a>
							            </td>
						            </tr>
					            </table>
					        </div>
							            <!--table cellpadding="0" width="95%" cellspacing="2" border="0" style="padding-left: 5px;">
								            <tr>
									            <td align="left" height="20" valign="top">
									            <p id="_ctl0_P1" style="font-weight: bold">Quomon Blog</p>
									            </td>
								            </tr>
								            <tr>
									            <td align="left" valign="top">
										            <a href="http://blog.quomon.com">blog.quomon.com</a>
									            </td>
								            </tr>
							            </table-->
						            
			            </td>
		            </tr>
		            <tr>
			            <td align="left" width="1%"><img src="images/corner5_bl.gif"></td>
			            <td width="98%" colspan="2" bgcolor="#EBEBEB">
			            </td>
			            <td align="right" width="1%"><img src="images/corner5_br.gif"></td>
		            </tr>
	            </table>

	            <table width="270" cellpadding="0" cellspacing="0" border="0" style="float: left; margin-left: 10px">
		            <tr>
			            <td align="left" width="1%">
			            <img src="images/corner5_tl.gif"></td>
			            <td width="98%" colspan="2" bgcolor="#EBEBEB">
			            </td>
			            <td align="right" width="1%">
			            <img src="images/corner5_tr.gif"></td>
		            </tr>
		            <tr bgcolor="#EBEBEB">
			            <td colspan="4">
			                <div class="content" style="height: 100px">
			                    <p id="_ctl0_sponsorsLabel" style="font-weight: bold;">Sponsors</p>
				                <p style="line-height: 20px;"><a href="http://www.answerbase.com" id="_ctl0_questionAnswerLink">Questions and Answers Software</a><br />
				            </div>
			            </td>
		            </tr>
		            <tr>
			            <td align="left" width="1%"><img src="images/corner5_bl.gif"></td>
			            <td width="98%" colspan="2" bgcolor="#EBEBEB">
			            </td>
			            <td align="right" width="1%"><img src="images/corner5_br.gif"></td>
		            </tr>
	            </table>
	            <div style="height: 20px">&nbsp;</div>
            </center>    
        </div>
        </form>
    </center>
    <span id="_ctl0_googleAnalytics"><script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script><script type="text/javascript">_uacct = "UA-424117-1";urchinTracker();</script></span>
</body>
</html>
