well iam trying to get that programatically in C#
kalyanPaladugu
Posts
-
Getting the log on information for a windows service -
Getting the log on information for a windows serviceIam trying to get the log on information for a windows service. does any body know how to get this. I know you can use serviceinstaller to create a service and define the username and password for it.but how does one get the username for already existing service
-
ACL in widows 2000 server in c#How do i access Access Control List on a directory in windows 2000 in C#
-
Printers attached to windows machineI like to find out programatically the users for the printers in C# That is if you go to start -- settings -- printers and faxes and select a printer and right click its properties you should find security there. I want to access the users inside that security and see if a particular user is there programatically. I did some research and found out that Win32_Printer class can be used to get all the printers connected to a computer but not able to figure out how to get to the security of it. Any help is greatly appreciated.
-
How to get the printers in C#1.For the first i think i figured out. Using System.Management API you can actually get the printers online. 2.If you go into the windows and go to start-settings-printers and faxes, select a printer and right click properties. You will find security and inside it you will find users. Is there a way to get to see those users programatically through c#
-
How to get the printers in C#1)Is there a way in C# to programatically get the printer list attached to the computer 2)How to check if a user is there in security for the printer attached to the computer in c# Any resources in that direction will be greatly appreciated
-
Stored Procedure and c#My Stored procedure in oracle is CREATE OR REPLACE PROCEDURE GETSOME(ctest out INTEGER) AS BEGIN select count(*) into ctest from test; END; My Code in C# is OracleConnection con = GetConnection(); con.Open(); OracleCommand cmd = new OracleCommand("GETSOME", con); cmd.CommandType = CommandType.StoredProcedure; OracleParameter op = new OracleParameter("Emp_ID",OracleType.Int32); op.Direction = ParameterDirection.Output; cmd.Parameters.Add(op); cmd.ExecuteScalar(); con.Close(); Its giving me an error wrong number or types of arguments in call to GETSOME. Can somebody please explain me what iam doing wrong
-
Like to Re installI suspect some thing is messed up with the .NET 1.1 and so i want to reinstall that The reason i came to that conclusion is that a .NET application i wrote previously which was working previously well is now generating an error "Application has generated an exception that could not be handled process id = .... Thread id = .... " The same application works perfectly on my computer and i know that it worked perfectly two days before too on one of our customer computer and some thing was done on that server afterwards. Well i want to know if there is an easy way to remove it and reinstall it its on windows 2003 server. It does not show up in Add Remove Programs. When i just run dotnetfx.exe(redistributable package) it says its already there.
-
Like to re installI suspect some thing is messed up with the .NET 1.1 and so i want to reinstall that The reason i came to that conclusion is that a .NET application i wrote previously which was working previously well is now generating an error "Application has generated an exception that could not be handled process id = .... Thread id = .... " The same application works perfectly on my computer and i know that it worked perfectly two days before too on one of our customer computer and some thing was done on that server afterwards. Well i want to know if there is an easy way to remove it and reinstall it its on windows 2003 server. It does not show up in Add Remove Programs. When i just run dotnetfx.exe(redistributable package) it says its already there.
-
.NET FrameworkI suspect some thing is messed up with the .NET 1.1 and so i want to reinstall that The reason i came to that conclusion is that a .NET application i wrote previously which was working previously well is now generating an error "Application has generated an exception that could not be handled process id = .... Thread id = .... " The same application works perfectly on my computer and i know that it worked perfectly two days before too on one of our customer computer and some thing was done on that server afterwards. Well i want to know if there is an easy way to remove it and reinstall it its on windows 2003 server. It does not show up in Add Remove Programs. When i just run dotnetfx.exe(redistributable package) it says its already there.
-
.NET FrameworkHow do i de install .NET framework 1.1 and re install it. i have .NET framework 2.0 on the same machine and its a windows 2003 server. How do i do it
-
Like to re installHow do i de install .NET framework 1.1 and re install it. i have .NET framework 2.0 on the same machine and its a windows 2003 server. How do i do it
-
DataGridView QuestionI have a dataGridView and just three rows. I wrote dataGrid_RowEnter and dataGrid_RowLeave event. Basically i am changing the color to red of the row in the Row_Enter event and in the RowLeave and changing the color back to no color. I have also button in the same form. I have not written any thing on the button. but even if i click the button RowLeave event is firing and changing back my color. Is there a way around it. Is this the normal behavior. Thanks kal
-
Inserting a Null value in BLOB field in OracleI have a Blob field in a table in oracle database. Some times i need to put null values into this field This is what iam doing in my C# Code byte[] blobTest = new byte[0]; string insert = "INSERT INTO exampel VALUES(:test)"; OracleParameter test = new OracleParameter(); test.OracleType = OracleType.Blob; test.ParameterName = "test"; test.Value = blobTest; con.Open(); cmd = new OracleCommand(insert, con); cmd.Parameters.Add(test); cmd.ExecuteNonQuery(); cmd.Dispose(); con.Close(); Its throwing up an error ORA-01459 invalid length for variable if i change byte[] blobTest = new byte[1]; in the above code its working. Basically how do i pass in a null value for a blob field in oracle database. Thanks kal
-
Display Word Document in browserI tried that I created a page and wrote those things in the Page_Load Event and its throwing up an error. Am i doing some thing wrong. This is error An invalid character was found in text content. Error processing resource 'http://localhost:2550/TestWebsite/Test.aspx'. Can you please help me
-
Adding a row from one table to anotherI was doing this dt.Rows.Add(ds.Tables[0].Rows[1]); Where dt is one table and ds.Tables[0] is another table. Now the above statement throws up an error stating that "the row already belongs to one table" if i define an ArrayList ArrayList al = new ArrayList() and do al.Add(ds.Tables[0].Rows[1]) this one works. Does any one know why the first one doesn't work Probably the round about way is creating a new datarow and getting the values from the ds.Tables[0] for that row and rebuilding the new row for the dt table. But dont you guys think it make sense to directly copy the whole row from one datatable to another. How do i do it. Thanks kal
-
Display Word Document in browserHow do i display a Microsoft Word Document in Browser in ASP.NET Any Ideas Thanks Kal
-
Insert a word Document into databaseHow to retrieve the data from the blob field in the database Thanks Kal
-
Insert a word Document into databaseIts the same thing. The above code in the first link should work. Previously i was inserting into two blob fields in the database from the same file stream object and so it failed. So i created two file stream objects for two blob fields and it seem to work. So if you run the code as it is i posted it should work as it is only one blob field in the database and one file stream object to load that Thanks Kal
-
Insert a word Document into databaseI figured out the error. I was able to insert into the database. My second question is how should i retrieve it from the database. If i execute the statement select * from table name its showing as orablob in those columns i inserted. Is that the normal behaviour. Can some body provide the code to retrieve the word document from the database Thanks Kal