Dear, Please help me to get C# code to Get User Privileges in a machine for a specific user. I will have a Service userName like String userName = "myDomain\userName"; String remotemachineName = "RemoteMachineName"; Form my C# code, I should be able to find the User Priviliges for the User in the specified Machine. GetUserPrivileges(userName, remotemachineName) Thanks for the help in advance. Regards, Rijz
Rijz
Posts
-
Get User Privileges in a machine for a specific user -
OpenXML SDK - a link in MS Excel to open another MS Excel. how would the request be authenticated?thanks, I have moved the post to the .Net discussion board..
-
Open XML - AuthenticationHi all, I am using the OpenXML SDK to work with MS products in the .Net web application. I understand that it is possible for a link in MS Excel to open another MS Excel using OpenXML SDK. Now would like to know how we can manage authentication of the new document that is opened. For Example: In web application, say one doc is already downloaded from server to browser, and user clicks on a link in that document which connects to another doc in the server. How this clicking on link request will be authenticated? Will that be taken care by browser or should we create a new session cookie for that and authenticate? In OpenXML is there anyway if this can be managed easily without the end user knowing how this takes place. Please share your thoughts on the request. Thanks alot for your help! Regards, Rijesh
-
OpenXML SDK - a link in MS Excel to open another MS Excel. how would the request be authenticated?I understand that it is possible for a link in MS Excel to open another MS Excel using OpenXML SDK. Need to create Hyperlinks object and append it to Worksheet object. Now would like to know how we can manage authentication of the new document that is opened. For Example: In web application, say one doc is already downloaded from server to browser, and user clicks on a link in that document which connects to another doc in the server. How this clicking on link request will be authenticated? Will that be taken care by browser or should we create a new session cookie for that and authenticate? In OpenXML is there anyway if this can be managed easily without the end user knowing how this takes place. Please share your thoughts on the request. Thanks alot for your help! Regards, Rijesh
-
Calling a delphi dll from VB.netHi all, Please provide steps to call a Delphi dll from vb.net. Any help is very much apprecited. Thanks alot. Following I have tried and no luck. 1) Added the DLL as a refernce to the project. -Shows an error message "Please MAke Sure that the file is accessible , and that it is a valid assembly or COM Component" 2) Used the DllImport method of System.Runtime.InteropServices
<DllImport("delphiProgram.dll", CallingConvention:=CallingConvention.StdCall, CharSet:=CharSet.Ansi)> _
Public Shared Function TestFunction(ByVal strTif As String) As Long-- Runtime it shows an error message "Unable to load DLL 'delphiProgram.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)" 3) used the tlbimp.exe to make the dll as an interop -- Shows a message 'delphiProgram.dll' is not a valid type library. Thank you. Regards, Rijz
-
Generating code behind file after converting an ASP application to ASP.NETHi all, Earlier from a suggestion from this message board I was able to migrate my ASP application to Aspnet 1.1 application successfully using the Migration Assistant. Thanks guys.. After migration, the code behind file was not generated automatically for each aspx page that was converted. How can I do this for all the aspx files? Individually, renaming a file to asp and then back to aspx will allow me an option to create code behind files manually. But this is a one by one process. Is there any option in the Visual studio 2003 editor to create code behind files automatically for all the aspx files? Thanks Rijz
-
Asp to asp.net 2.0 migrationThanks all for the suggestions
-
Asp to asp.net 2.0 migrationThanks Mr.Maseko for your suggestion.
-
Tables in Web Site.set border = 1 use the 'Style' property to set the background color
-
Asp to asp.net 2.0 migrationHi all, I am trying to migrate classic ASP application to ASP.Net 2.0 or above. While Googling I have found Asp to Aspnet migration Assistant which will migrate to 1.1 framework. Is there any tool which will help me to directly migrate classic ASP application to framework 2.0 or above? Or is it the process like 1) ASP to ASP.Net 1.1 using the 'ASP to ASP.NET Migration Assistant' 2)Then ASP.Net 1.1 to ASP.Net 2.0 or above using the Visual studio upgradation Wizard. Kindly advice. Regards, Rijz
-
Restrict users to access the help file, download js filesHi all, I have a set of help files(html files) in the application root directory. Now these HTML files can be accessed by the users even if they are not logged into the application. How can I restrict this? Similarly, how can I restrict users to download java script files which is in my application root directory by directly typing the URL in the browser. Please note, the authentication mode is windows and framework used is 1.1. Kindly help... Thanks in advance.. Rijz
-
Image previewohhh.. :( :( :( Anyway thanks enver for your help...
-
Image previewThanks for your reply Abhishek.. I cannot use a Virtual path here because, this path is obtained from a browse button text field. The user will be selecting file from any physical location on the disc and my program is supposed to preview it. It is working fine with IE6... but not in IE7 :( How can I achieve this? Thanks Rijesh
-
Image previewI am displaying a preview of the Image before uploading it to the server. This works fine with IE6, but not working with newer versions. The previewing is achieved using an aspx page which has an asp:image control. I set the ImageURL property to the "file from the physical location". But in IE7's case, the ImageURL property does not display "file from the physical location". for instance: <asp:image id ="imgPreview" ImageUrl="file:///D:\image1.jpg"> Kindly provide any help. Thanks in advance. Regards, Rijz
-
Scheduled downloadHi, I am develping a web project in c#.net 1.1. The application reads an xml file which is stored in the application directory. This xml file is a thirdparty xml from internet. They will update this xml in every point of time (ie: currency xml). In this case, I need a scheduled download of the file from the internet to my application directory. Please guide me on how to achieve this. Thanks. I would like to appreciate all the techies providing wonderful solutions to all the queries in this website. Thanks rijz
-
XML VersionThank you..... works fine!!!
-
XML VersionThank you very much.. I will be here..
-
Error executing child request [modified] {can anyone help please...}friends, I doubt html page execution is totally out of the C# compiler process and so the session values are getting destroyed. Is there any other alternatives so that I can maintain the Session values? Please help me out... Thanks, Rijz
-
XML VersionThanks for the reply. I am saving the creatred XML using the save method into a physical Location as xmlDoc.Save(@"d://xmltest/InputxmlNew.xml")... But the version is not getting displayed. Am I missing something somewhere? Thanks Rijz
-
Error executing child request [modified] {can anyone help please...}Hi, I am trying to redirect from the current aspx page to an html page using Response.Redirect. But once it comes back to the aspx page the Session Values are destroyed. So I tried the following alternatives... but throwing errors!! 1) string srvname = Request.ServerVariables["SERVER_NAME"].ToString(); Server.Transfer("http://"+ srvname + /Project1/Part2/page2.html",true); Error: {"Invalid path for child request 'http://localhost/Project1/Part2/page2.html'. A virtual path is expected." } 2)Server.Transfer("/Project1/Part2/page2.html,true); Error: {"Error executing child request for ("/Project1/Part2/page2.html" } 3)Response.Redirect("Project1/Part2/page2.html") disposes the Session value once it returns back to the page…. Please help me out.. Thanks in advance Rijz
modified on Wednesday, August 13, 2008 8:33 AM