Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
K

ksanju1000

@ksanju1000
About
Posts
84
Topics
58
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Write XSL for this xml i want to convert xml to CSV formt
    K ksanju1000

    <?xml version="1.0" encoding="utf-16"?> <data> <student> <roll>234</roll> <name>Sidheshwar</name> <address> <DoorNo>123</DoorNo> <Street>MyStreet</Street> <city> <code>code01</code> <name>MyCity10</name> </city> <city> <code>code02</code> <name>MyCity11</name> </city> </address> <address> <DoorNo>200</DoorNo> <Street>MyStreet2</Street> </address> <address1> <Sam>1000address1</Sam> <Pankaj>MyStreet2000address1</Pankaj> </address1> <pin>560004</pin> </student> </data> i have a xml i want to convert xml to csv format using XSLT. I need to write XSL for this xml. It Should be genric.

    XML / XSL xml question announcement

  • how can i run Intranet web based application
    K ksanju1000

    Hi, I have made one web page in my computer. The domain name is anikita i can run my web page in my computer using the following url http://localhost/anikita/index.aspx and i am using msacess database i am displaying the emp table information in web page my computer name is dev1 i have window2000 profession and IIS 5 and Visusal Studio 2003 installed in my computer i am connected with other computer dev2 i want to run web page from dev2 in dev2 only window2000 profeesion is installed i tried with following url http://dev1/anikita/index.aspx but its not working it does not produce any error blank page shows can any one give me clue to run web page from another computer what should i configure in my IIS how can i run web page from other computer thanks

    ASP.NET database windows-admin help question

  • started thread to wait till the other thread finishes
    K ksanju1000

    hi i have started one thread. it has read four lines. After that i want to wait that thread so that second thread so that execute. HOw can i wait a particular thread. i do not to use Thread.sleep(500); it stops all the thread. I want to wait that thread for some time or tilll other threads completed its job. thanks

    C# question career

  • Unload DOM
    K ksanju1000

    Hi John, In my project every time XML file is loaded and read thr Xml reader but when the form is closed it should be freed by memory but it does not happen its due to XmlDocument I just for example tried to do inside the button i want that after pressing the button it should load and free the memory occupied by processor. Do you have any idea you can tell me in class to load the XMlDocument and Unload XmlDocument Thanks sanjeev

    C# performance html xml help tutorial

  • Unload DOM
    K ksanju1000

    Hi I need to free the memory occupied by xml document. I tried to use this code inside button XmlDocument xmldoc = new XmlDocument(); xmldoc.Load("c:/a.xml"); you can check for memory performance in windows task manager I have already made one project The problem is coming in this xml loading every time its creatting own instance and incraeasing the memory. If any one has any idea to free momory if some one give me example of relasing momory thanks

    C# performance html xml help tutorial

  • Enumeration of all inactive modem names
    K ksanju1000

    Hi I have one big problem I have been facing this problem for the last three months since project has started I have to enumerate all the inactive modem connectio names in list box on form load. Can any one has idea about getting all modems name thanks

    C# help

  • Installtion Problem
    K ksanju1000

    Hi I have made setup installation using Set and Delpyment I am using Visual Studio 2003. Suppose i have opened the my Product and word and internet explorer when i press ALT + TAB , there shows the windows Picture in my product. I want to change that picture How can i change my product picture when i press ALT + TAB . Is there any properties when i make the installation . This is my desktop application . I have made set up of desktop application. When i press ALT + TAB I can see windows picture of my product I want to change that picture is there any option to change the picture when i press ALT +TAB Some has given some help--- If you press ALT+TAB the icon showing is your installation exe 's icon. So you should change setupiconfile while creating setup program. This facility is available in all major setup program creation applications like innosetup, Install Sheild etc. Check this facility is available in the deployment tool in visual studio. --- I tried to set exe file ' icon still i am getting the picture of Windows when i proess the ALT + TAB pls Help me its very urgent Thanks

    C# help csharp visual-studio sysadmin question

  • dataSet Problem
    K ksanju1000

    Hi, I am connecting my Winform with MySql 3.27 i c# I am connected through MySql Connector 1.0. In mY database of mysql Table has Datetime column example -- values of datetime column comes in that way 2005-04-11 17:21:33 DateTime column has some corrupted format 0000-00-00 00:00:00 or 2005-00-00 00:00:00 when i store it in dataset it can store only correct format of datetime if it gets corrupted format it throws exception My client wants to bypass the corrupted datetime format. how can i store correct and corrupted datetime format in dataset Is there any way to set default value to the datetime feild of the dataset pls provie me code for that any clue thanks

    C# csharp database mysql help tutorial

  • DataSet with DateTime Problem with MySql
    K ksanju1000

    Hi, I am connecting my Winform with MySql 3.27 i c# I am connected through MySql Connector 1.0. In mY database of mysql Table has Datetime column example -- values of datetime column comes in that way 2005-04-11 17:21:33 When i retrive thr winform it displays 2005-04-11 17:21 this format How can i get the complete Datetime format from MYSql pls provide me complete code Its very Urgent Any clue Thanks

    C# csharp database mysql help tutorial

  • find blue tooth lan connection from registry
    K ksanju1000

    Hi My computer has Two lan connection and ONe is conneted through modem. I am able to find out the only one Lan connection(Ethernet Lan Card) (This setting is retrieved from the registry) and Modem connection is also showing on Winform. But i am not able to identify Blue Tooth Lan Connection Where it stores inside the registry if Blue tooth lan connection is connected. I have winform and List box and one button When i press the button it displays all the avaliable Lan and modem and blue tooth lan connection of local host displays inside the list box. I am able to retrive only two connection right now (Ethernet Lan card and one modem through) but i am not able to identify Bluet tooth connection Can anoy body tell me how will identify thanks sanjeev

    C# windows-admin

  • Stoping thread
    K ksanju1000

    Hi Is it possible to stop two running thread on cancelJob event Any example THanks sanjeev

    C# tutorial

  • Do not allow to delete folder using Set up and Deployment for desktop application
    K ksanju1000

    hi I am making Set up using Visual Studio 2003 fro desktop application(Winform). I want that Some folders should not be deleted while uninstalling the set up I have made set up when i uinstall the set up it removes all the directory I want that one folder should not be deleted after uninstallation Which option or properties i have to select in set up and deploymenet regards sanjeev

    C# csharp visual-studio sysadmin

  • Windows Service
    K ksanju1000

    hi, I am making Windows Service(User defined) I have written code inside OnStart within Windows Service Inside the onstart i want that suppose a.exe is already running I want to close that a.exe and start a.exe from windows Service When i run the windows Service two exe runs cocuurently. On Start i have written Process.Start(@"c:\a.exe"); I want to identify in beginning of any process of a.exe if exist how can i check in windows service OnStart() protected override void OnStart(string[] args) { // TODO: Add code here to start your service. Process[] aProcesses1; if (aProcesses1.Length > 0) { if(rd1==true) { // The last excel process is the orphaned process which is killed aProcesses1[aProcesses1.Length-1].Kill(); rd1=false; } } int intExcelPID; aProcesses1=Process.GetProcessesByName("a"); string strProc="These are the processes running \n"; for (int i = 0; i <= aProcesses1.GetUpperBound(0); i++) { intExcelPID = aProcesses1[i].Id; strProc+=intExcelPID.ToString()+ " "; } //Retrive from registry the value of Path RegistryKey hklm =Registry.LocalMachine; hklm=hklm.OpenSubKey("SOFTWARE\\man"); Object obp=hklm.GetValue("Path"); string file=obp.ToString() + "\\man.exe"; Process.Start(@file); } Thanks sanjeev

    C# windows-admin question

  • Windows Service in c#
    K ksanju1000

    hi, I am making Windows Service(User defined) I have written code inside OnStart within Windows Service Inside the onstart i want that suppose a.exe is already running I want to close that a.exe and start a.exe from windows Service When i run the windows Service two exe runs cocuurently. On Start i have written Process.Start(@"c:\a.exe"); I want to identify in beginning of any process of a.exe if exist how can i check in windows service OnStart() protected override void OnStart(string[] args) { // TODO: Add code here to start your service. Process[] aProcesses1; if (aProcesses1.Length > 0) { if(rd1==true) { // The last excel process is the orphaned process which is killed aProcesses1[aProcesses1.Length-1].Kill(); rd1=false; } } int intExcelPID; aProcesses1=Process.GetProcessesByName("a"); string strProc="These are the processes running \n"; for (int i = 0; i <= aProcesses1.GetUpperBound(0); i++) { intExcelPID = aProcesses1[i].Id; strProc+=intExcelPID.ToString()+ " "; } //Retrive from registry the value of Path RegistryKey hklm =Registry.LocalMachine; hklm=hklm.OpenSubKey("SOFTWARE\\man"); Object obp=hklm.GetValue("Path"); string file=obp.ToString() + "\\man.exe"; Process.Start(@file); } Thanks sanjeev

    C# csharp windows-admin question

  • Windows Service in Windows XP
    K ksanju1000

    hi I have installed dotnetframework in Win XP and Win2k when i run Windows Service and click on desktop of my product its showing me the following error Commn Language Runtime Debugging Services Process id=0xb50(2896),Thread id=0xb54(2900) click OK to terminate the application Click CANCEL to debug the application What should i write in my Windows Services(User defined service) so that it should not show the above error When i run my product exe from the desktop and after that i run my windows services it shows that only one instance of application is allowed at a time This program should identify if any man.exe exist it should stop that instance and start another instance of man.exe but this program as a windows service does not work protected override void OnStart(string[] args) { // TODO: Add code here to start your service. Process[] aProcesses1; if (aProcesses1.Length > 0) { if(rd1==true) { // The last excel process is the orphaned process which is killed aProcesses1[aProcesses1.Length-1].Kill(); rd1=false; } } int intExcelPID; aProcesses1=Process.GetProcessesByName("man"); string strProc="These are the processes running \n"; for (int i = 0; i <= aProcesses1.GetUpperBound(0); i++) { intExcelPID = aProcesses1[i].Id; strProc+=intExcelPID.ToString()+ " "; } //Retrive from registry the value of Path RegistryKey hklm =Registry.LocalMachine; hklm=hklm.OpenSubKey("SOFTWARE\\man"); Object obp=hklm.GetValue("Path"); string file=obp.ToString() + "\\man.exe"; Process.Start(@file); } When i write the above program it does not work even it does not start when i start my computer Regards sanjeev

    C# csharp help

  • Integrate WIndows Service and my application project
    K ksanju1000

    Hi, Can u tell me to make one set up exe for both the project Currently i have made two installer one for WIndows Service and another for my project. I can install the project set up and after that i am able to install Windows Service(This is user defined service) My client wants to integrate into one set up exe can anybody help me Thanks

    C# help

  • Windows Service in Windows XP
    K ksanju1000

    Hi, I have made set up for user defined Windows Service and tested with Window2000 It working fine but when i install the windows service in Windows XP, i get error while running the windows service can any one tell me is there an\y difference in making Windows service in Win2k and Win XP I am making WIndows service (User defiend) in c# regards, Sanjeev

    C# csharp help

  • how to open a dial up internet connection from my aplication
    K ksanju1000

    Hi, Pls check the given link complete code is there if you have any problem pls tell me http://www.dotnetspider.com/technology/kb/Article1438.aspx hope this will help you Thanks & regards sanjeev

    C# csharp tutorial question

  • Set up problem
    K ksanju1000

    Hi I have two set up installaation file and i want to merge both of them and make one set up file how can i merge both the .msi file pls tell me complete procedure everyone must have seen that while installating the dotnet cd its first seraches the windows up date product i.e service pack ,internet exploreer i also want to make first screen and give the user option for installing after the sleection of all the option which must be installled intiallay pls tell me the c omlete path Thanks & Regards sanjeev

    C# csharp help question

  • urgent help please
    K ksanju1000

    Hi I have some notes on this topic if you still getting problem pls tell me 5.7.6. Get current user name This sample presents two different approaches to getting current user information. Namespaces: using System; using System.Net; using System.Security.Principal; Code: static void Main(string[] args) { // get info about current user using Environment class Console.WriteLine(Environment.UserDomainName + @"\" + Environment.UserName); // -------------------------- // get current user from WindowsIdentity class WindowsIdentity user = WindowsIdentity.GetCurrent(); // output current user name Console.WriteLine(user.Name.ToString()); } 5.7.7. Impersonate as another user using System; using System.Runtime.InteropServices; using System.Security.Principal; class ImpersonateUser { // this implementation doesn't handle GetLastError function to catch error messages, it should be implemented in standard application // mapping of Win32 function to logon under another account [DllImport("advapi32.dll", SetLastError = true)] public static extern bool LogonUser( String lpszUsername, String lpszDomain, String lpszPassword, int dwLogonType, int dwLogonProvider, ref IntPtr phToken); // this will duplicate access token based on current user's one [DllImport("advapi32.dll", CharSet = CharSet.Auto, SetLastError = true)] public extern static bool DuplicateToken( IntPtr ExistingTokenHandle, int SECURITY_IMPERSONATION_LEVEL, ref IntPtr DuplicateTokenHandle); [DllImport("kernel32.dll", CharSet = CharSet.Auto)] public extern static bool CloseHandle(IntPtr handle); static void Main(string[] args) { const int LOGON32_LOGON_INTERACTIVE = 2; const int LOGON32_PROVIDER_DEFAULT = 0; const int SecurityImpersonation = 2; // handle of access token of current user IntPtr token = IntPtr.Zero; // new token based on the old one IntPtr duplicateToken = IntPtr.Zero; // this method returns handle to access token of user we want to use to logon, user is check just in local database if (LogonUser("TestUser", ".", "Test1234]", LOGON32_LOGON_INTERACTIVE, LOGON32_PROVIDER_DEFAULT, ref token)) { // token is duplicated according to the token of impersonated user if (DuplicateToken(token, SecurityImpersonation, ref duplicateToken)) { Console.WriteLine("Current user name: " + WindowsIdentity.GetCurrent().Name); // new identity is created WindowsIdentity newIdentity = new WindowsIdentity(duplicateToken);

    C# csharp sysadmin windows-admin help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups