Click here to Skip to main content
Page 1 of 2
Page Size: 10 · 25 · 50


Author filtered by: mayankkarki [x]
Question 9 May 2013   license: CPOL
Hi, I am working on winrt app that have some financial calculation involved. I searched on net and find Financial.dll which have all financial functions as in excel. I used it in my app and get desired result. But when I test my app on APP CERT KIT it failed because of it.• Error...
Question 30 Apr 2013   license: CPOL
I am using bing map in winrt and I have a list of IATA code. user can select a code and then i have to show that airport in bing map.
Question 29 Apr 2013   license: CPOL
I am working on a encryption algorithm and using cryptography for this. I want to make this portable, but didn't find any way to resolve this class.
Question 24 Apr 2013   license: CPOL
I find something really weird, if I used below expression in excel and c# I get different results.(1) ^ (-12)Excel gives 1 and c# gives -11.Which one is right one?
Question 11 Apr 2013   license: CPOL
I am using google provisioning api on my website. I created a domain on google and some users. Now I want to authenticate them using AppsService class. AppsService service = new AppsService("domain", "admin username", "admin password"); UserEntry user =...
Answer 11 Apr 2013   license: CPOL
I found a very easy way AppsService service = new AppsService("domain", "adminusername", "adminpassword"); UserEntry user = service.RetrieveUser("viresh1"); user.Login.Password = "newpassword"; service.UpdateUser(user);
Question 10 Apr 2013   license: CPOL
I am working on a password reset application, which works on Google domains. I used .net provisioning api. I googled and tried everything but didn't find any way to change password.
Question 7 Apr 2013   license: CPOL
I have a webview in my xaml, due to the size of the webview, it couldn't display all the html content once, so there's a scrollviewer. I want to print all the content of the html file, but when I select a printer in the device charm, the preview page only displays the content which currently...
Question 13 Mar 2013   license: CPOL
I am working on a metro app with c#. I want to share some attachment with subject and mail body to mailto application.I code like this DataRequest request = args.Request; DataRequestDeferral deferral = request.GetDeferral(); ...
Question 11 Mar 2013   license: CPOL
I am working on a website in VS 2010 and need to connect to mysql to perfrom some db operation. I used .net connector 6.6.5 to connect with mysql. Coded like this MySql.Data.MySqlClient.MySqlConnection con = new MySql.Data.MySqlClient.MySqlConnection(); con.ConnectionString =...
Question 7 Mar 2013   license: CPOL
I am working on a metro app. I used background uploader to upload file but my question is how I get response value after uploading it. I coded like this: BackgroundUploader uploader = new BackgroundUploader(); uploader.SetRequestHeader("Content-Disposition", "form-data");...
Question 6 Mar 2013   license: CPOL
Following iphone code is used to upload file in server. And I want to convert this to c# so that I can it use it in my metro application.NSString *urlString = [NSString stringWithFormat:@"http://ip address/win8/PNGUpload-xml.php?device=win8&UID=%@",appDelegate.UID];NSMutableURLRequest...
Question 4 Mar 2013   license: CPOL
I am working on a metro app which provides a change language option to user, so that it changes the application language. I have used resource file for this and coded like this Windows.Globalization.ApplicationLanguages.PrimaryLanguageOverride =...
Question 8 Feb 2013   license: CPOL
Hi,I am working on a windows phone app. I want to make a list whose items are dragable anywhere horizontally or vertically. List items are of image types. Basically I want this like windows phone main page that contains tiles. When we hold a tile for some time it popups and can be dragable...
Question 5 Feb 2013   license: CPOL
I am working on a windows phone 8 app. I have a canvas containing images which I can drag to change their position in canvas. My problem is that canvas is not scrollable, I want a vertical scrollbar in page. I tried like this:
Question 24 Jan 2013   license: CPOL
Hi,I am working on a win 8 app using VS 2012 and win 8 pro as development environment. I want to make sure that can I run this app in win RT also? or does it support only win8 pro
Question 19 Jan 2013   license: CPOL
Hi,I am working on a metro app and want to share something on Facebook and twitter. But in metro sharing their is source and target app concept. Source app is mine but how should I get Facebook and twitter as target app.
Forum Message 6 Jan 2013  
Hi, I used the way you described user authentication but its not working in some cases like if user account is locked, disabled or user with "must change password at next log in" property enabled.
Question 4 Jan 2013   license: CPOL
Hi, I am working on a store app using html5 and js. I have two listview in a page with vertical scroll. Now I want to scroll them simultaneously. I coded like this
Question 18 Dec 2012   license: CPOL
Hi,I am working on a website to manage ldap. I am stuck in a situation, when I am trying to authenticate user with account locked or disabled it fails. What I want to do is first authenticate user after that show message that account locked or disabled.I am coding like...
authenticate user in LDAP by mayankkarki
Answer 14 Dec 2012   license: CPOL
Hi, I am describing the way I used to connect and authenticate user in ldap. I have to connect over SSL and I am getting some problem with DirectoryEntry So I used LdapConnection class.LdapConnection connection = new LdapConnection(new LdapDirectoryIdentifier("SJTPNOC.com",...
C#
Answer 23 Nov 2012   license: CPOL
At last I find the answer of my question. This class convert the byte[] to valid security descriptor com object.ActiveDs.ADsSecurityUtility secUtility = new ActiveDs.ADsSecurityUtility();ActiveDs.IADsSecurityDescriptor sd =...
Answer 23 Nov 2012   license: CPOL
At last I find the answer of my question. This class convert the byte[] to valid security descriptor com object.ActiveDs.ADsSecurityUtility secUtility = new ActiveDs.ADsSecurityUtility();ActiveDs.IADsSecurityDescriptor sd =...
Connect to LDAP over ssl by mayankkarki
Question 23 Nov 2012   license: CPOL
Hi ,I am working on a website which is used to reset password of ldap users.I am not able to make connection with server over ssl. I tried various code and authentication types.This is what used on server for connectivity with ldap on which website is hosted.I also tested it with both...
Question 23 Nov 2012   license: CPOL
Hi,I am trying to find out that in ad, user has allowed to change password or not. I have used SearchResponse to find out that user exists or not. I just want to find out that user cannot change password is true or false.LdapConnection connection = new LdapConnection(new...
Connect to LDAP over ssl by mayankkarki
Answer 23 Nov 2012   license: CPOL
Just add one more line connection.SessionOptions.VerifyServerCertificate = new VerifyServerCertificateCallback((con, cer) => true);
Answer 23 Nov 2012   license: CPOL
Solution of my problem. SearchResponse response = (SearchResponse)connection.SendRequest(request); DirectoryAttribute attribute = response.Entries[0].Attributes["ntSecurityDescriptor"]; if (attribute != null) { const...
Answer 23 Nov 2012   license: CPOL
This is the solution that I find. SearchResponse response = (SearchResponse)connection.SendRequest(request); DirectoryAttribute attribute = response.Entries[0].Attributes["ntSecurityDescriptor"]; if (attribute != null) { ...
Answer 23 Nov 2012   license: CPOL
At last I find the answer of my question. This class convert the byte[] to valid security decriptor comobject.ActiveDs.ADsSecurityUtility secUtility = new ActiveDs.ADsSecurityUtility();ActiveDs.IADsSecurityDescriptor sd =...
Question 19 Nov 2012   license: CPOL
Hi,I am working on active directory. I fetched value of "ntSecurityDescriptor" in DirectoryAttribute class object. But it is in byte array and I am unable to cast it into IADsSecurityDescriptor.Any help.
Question 18 Nov 2012   license: CPOL
Hi,I am working on a website to manage active directory. I want to check that whether user has permission to change password or not. So I have to find "ntSecurityDescriptor" property value after that I have to cast it into IADsSecurityDescriptor. Now if I use DirectorySearcher class then...
query in asp.net language by mayankkarki
Answer 17 Nov 2012   license: CPOL
Code like thisSqlCommand cmd=new SqlCommand();cmd.CommandText="";cmd.Connection=cn;cmd.ExecuteScalar();If you have parameters that clear them.cmd.Parameters.Clear();cmd.CommandText="";cmd.executeScalar();Ask me if you have any questions?
Question 5 Nov 2012   license: CPOL
Hi,My problem is that I am using LDAPconnection class and connecting over ssl. I manage to get nTSecurityDescriptor value but now getting error."Unable to cast object of System.Byte[] to ActiveDs.IADsSecurityDescriptor"I am using code like this.SearchResponse response =...
Question 4 Nov 2012   license: CPOL
Hi,I am working on a website. I have to find the value of user can't change password property of a user. I get this linkhttp://msdn.microsoft.com/en-us/library/aa746448(v=vs.85).aspx[^] according to which I have to find "ntSecurityDescriptor" value of that user. They are using...
Answer 3 Nov 2012   license: CPOL
Hi,Thank god its not a big deal. I just added the newtonsoft dll reference, may be this is the problem beacause when I install the newtonsoft package from package console everything gets solved, no error is thrown.
Question 3 Nov 2012   license: CPOL
Hi,I am working on a metro app. I have to play youtube video in its embeded player not in that provided by metro app.I search in net and find that there is iframe, flash and object player .I tried to implement in my app but not succeed.Is there any to play video or I have to use the...
Question 3 Nov 2012   license: CPOL
Hi,I am working in a metro app to show youtube videos and user can play or rate video. I am using this uri http://gdata.youtube.com/feeds/api/videos/ADos_xW4_J0?v=2&alt=jsoncand get json response but now when I am trying to deserialize it into c# class I am getting error. I am using...
Forum Message 25 Oct 2012  
Hi, I am working on a website in which I have to detect that website is open in kiosk mode or not. And based on it performs some sort of function.
Answer 25 Oct 2012   license: CPOL
Hi ,It was just two lines to add and its working now. Create an instance of BackgroundTaskDeferral class at start point of background service and call its complete method where you think that this was the last task. private BackgroundTaskDeferral _deferral =...
Question 24 Oct 2012   license: CPOL
Hi,I am working on a metro app in which I am sending a web request in background service but not getting web response. I coded like this: private void SendRequest(string url, Action OnResponse, string requestParameter) { HttpWebRequest request =...
Question 21 Oct 2012   license: CPOL
I am working on a website. And in some situation I want to detect that my website is open in kiosk mode. Is there any way to detect this?
Question 21 Oct 2012   license: CPOL
Hi,I am working on a website which interact with active directory and perform certain user operations. I want to handle the timeout situation in case of server is offline.I am coding like this LdapConnection connection = new LdapConnection(new LdapDirectoryIdentifier(this._domain,...
Question 17 Oct 2012   license: CPOL
Hi,I had made a app for windows phone in which I am using Reminder class of scheduler namespace. Now I want to make this app for win8 also but did not find how to do this in metro application.
Question 16 Oct 2012   license: CPOL
I am working on a website to change ldap user password. But after changing user password both old and new password worked. I don't know how its happening but I want to prevent this.
Question 30 Sep 2012   license: CPOL
Hi, I am using 4shared rest api, and working on edit file information by http put. I coded like this: public void UpdateFile(string fileID, string accessToken, int uniqueID){ Action OnResponse = this.OnFileUpdate; string uri =...
Question 28 Sep 2012   license: CPOL
Hi,I am using this code LdapConnection connection = new LdapConnection(new LdapDirectoryIdentifier("DOMAIN",636));connection.SessionOptions.VerifyServerCertificate = new VerifyServerCertificateCallback((con, cer) => true);connection.SessionOptions.ProtocolVersion =...
Question 27 Sep 2012   license: CPOL
Hi,I am working on a win phone app. I have to perform all crud operation of rest api on 4shared.com. I am working on updating file info (name and description). I tried to perform put in 4shared api console by passing parameters and also get file response. But information is not updated one it...
Question 19 Sep 2012   license: CPOL
Hi,I am trying to access user data of 4Shared. But didn't find anything useful in net.I am using oauth and succeed to get access token of user. But didn't know how to move forward.
Question 24 Aug 2012   license: CPOL
Hi,I have to connect to local ldap which is on apache server. I use your code like thisprivate string sDomain = "ldap://localhost:10389"; private string sDefaultOU = "ou=users,ou=system"; private string sServiceUser = @"uid=admin,ou=system"; private string sServicePassword =...
C#

Page 1 of 2
1 2


Advertise | Privacy | Mobile
Web01 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid