9,869,444 members (25,657 online)
Visit CodeProject.TV
Discuss CodeProject.TV
Sign in
Email
Password
Forgot your password?
Sign in using
home
articles
Chapters and Sections
>
Search
Latest Articles
Latest Tips/Tricks
Top Articles
Beginner Articles
Technical Blogs
Posting/Update Guidelines
Article Help Forum
Article Competition
Submit an article or tip
Post your Blog
quick answers
Ask a Question
View Unanswered Questions
View All Questions...
C# questions
ASP.NET questions
VB.NET questions
C#4.0 questions
C++ questions
discussions
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work & Training Issues
Design and Architecture
ASP.NET
JavaScript
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
Adobe Technologies
C#
Free Tools
Objective-C
Ruby On Rails
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
.NET Framework
Mobile
VS 11 & .NET 4.5
Sharepoint
Silverlight / WPF
Visual Basic
Web Development
Site Bugs / Suggestions
features
Component & Service Catalog
Competitions
News
The Insider Newsletter
Newsletter archive
Surveys
Product Showcase
Research Library
CodeProject Stuff
community
The Insider News
The Lounge
The Weird & The Wonderful
The Soapbox
Press Releases
Who's Who
Most Valuable Professionals
Company Listings
Non-English Language
>
General Indian Topics
General Chinese Topics
help
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
Site Map
Advertise with us
Employment Opportunities
About Us
The default search term operator is
AND
.
You can use brackets,
AND
,
OR
, and
NOT
to improve your search. For example:
C# AND NOT(VB or SQL)
A query of a single
*
will return everything, filtered by any filters.
Filter examples:
Search by Author
author:"author name"
Filter by tag
tag:C#
or
tag:(C++ or Java)
Wildcard search
use "?" or "*" eg.
gr?d
or
gr*
68 Results
Search
Everything
Articles
Technical Blogs
Tips & Tricks
Questions
Answers
Forum Messages
News Items
Catalog Items
Videos
Training Courses
Just My Stuff
My Bookmarks
Sort by
Relevance
Rating Asc
Rating Desc
Title Asc
Title Desc
Author Asc
Author Desc
Date Created Asc
Date Created Desc
Date Modified Asc
Date Modified Desc
Price Asc
Price Desc
Duration Asc
Duration Desc
Match
All Fields
Title
Description
Author(s)
Tags
Any Date
Last 12 hours
Last 24 hours
Last week
Last 2 weeks
Last month
Last 3 months
Last 6 months
Last year
January
February
March
April
May
June
July
August
September
October
November
December
Rating Range
All - Including Unrated
1.0 - 5.0
2.0 - 5.0
3.0 - 5.0
4.0 - 5.0
4.5 - 5.0
4.8 - 5.0
5.0
Advanced Filters:
Article Topics
All Topics
Desktop Development
Web Development
Mobile Development
Cloud Computing
Enterprise Systems
Database
Multimedia
Languages
Platforms, Frameworks & Libraries
General Programming
Graphics / Design
Development Lifecycle
General Reading
Third Party Products
Mentor Resources
Article License
All Licenses
CPOL
CDDL
Ms-PL
MPL
CPL
Eclipse
MIT
BSD
Apache
CC (ASA 2.5)
Zlib
Public Domain
CC (Attr 3U)
CC (ASA 3U)
LGPL3
GPL3
Forums
All Forums
Feature Forums
General Programming
Web Development
Product Lifecycle
Database & SysAdmin
General Discussions
Non-English Language
Catalog Category
All Categories
Books & Training
Charting & Graphing
Components, Controls, Libraries
Data Manipulation & Mining
Database Tools
Debugging
Documentation & Help
Financial, Math & Scientific
Frameworks & APIs
General Development Tools
GIS & Maps
Graphics & 3D Modeling
Hardware and Robotics
Hosting
IDEs
Imaging
Mobility
Multimedia
Networking
Performance and Profiling
Programming Languages
Project Life-cycle Management (ALM)
Reporting
Search
Security
Setup & Deploy
System Adminstration
Utilities
Virtualization
Web Design/Development
Catalog License
All Licenses
Commercial
Fully Function Evaluation version
Limited Functionality Trial
Limited Time Trial
Shareware
Free For Personal Use
Freeware
Page 1 of 2
Page Size:
10
·
25
·
50
Author filtered by: mayankkarki
[x]
Winrt app failed on app cert kit because of financial.dll
by
mayankkarki
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...
General Programming
»
Uncategorised Quick Answers
»
General
C#
C#4.0
WinRT
How to set IATA code in winrt bing map
by
mayankkarki
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.
General Programming
»
Uncategorised Quick Answers
»
General
C#
WinRT
Bing
Is there any way to use RNGCryptoServiceProvider class in C# Portable class Library
by
mayankkarki
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.
General Programming
»
Uncategorised Quick Answers
»
General
C#
C#4.0
cryptography
portability
Two different expression result in c# and excel
by
mayankkarki
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?
General Programming
»
Uncategorised Quick Answers
»
General
C#
C#4.0
Excel
How to authenticate user using Google.GData.Apps of .net
by
mayankkarki
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 =...
General Programming
»
Uncategorised Quick Answers
»
General
C#
GoogleApp
How ot change password using Google.GData.Apps of .net
by
mayankkarki
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);
General Programming
»
Uncategorised Quick Answers
»
General
C#
password
GoogleApp
How ot change password using Google.GData.Apps of .net
by
mayankkarki
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.
General Programming
»
Uncategorised Quick Answers
»
General
C#
password
GoogleApp
Print invisible content of the webview in windows8
by
mayankkarki
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...
General Programming
»
Uncategorised Quick Answers
»
General
C#
XAML
WinRT
Share attachment and text from metro app
by
mayankkarki
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(); ...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Metro
Enable to connect asp.net with mysql using .net connector
by
mayankkarki
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 =...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
MySQL
How to get response stream after uploading a file using Backgrounduploader
by
mayankkarki
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");...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Metro
Convert iphone code to c# to upload a file
by
mayankkarki
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...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Metro
change textbox input language on change of app language
by
mayankkarki
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 =...
General Programming
»
Uncategorised Quick Answers
»
General
C#
globalization
Metro
How to make a dragable items list in windows phone like home page tiles of phone
by
mayankkarki
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...
General Programming
»
Uncategorised Quick Answers
»
General
C#
XAML
Mobile
Windows-Phone-7
Scrollable canvas containing images in windows phone 8
by
mayankkarki
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:
General Programming
»
Uncategorised Quick Answers
»
General
XAML
C#
C#4.0
Windows-Phone-8
Is this possible to run my app on win RT also?
by
mayankkarki
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
General Programming
»
Uncategorised Quick Answers
»
General
C#
windows-store
Sharing on facebook and twitter from my metro app
by
mayankkarki
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.
General Programming
»
Uncategorised Quick Answers
»
General
C#
XAML
twitter
Metro
Facebook
windows-store
Authentication not works in some special cases
by
mayankkarki
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.
General Discussions
»
Edirectory Authentication Using Ldapconnection And Custom Certificate Validation
Scroll two listview with single vertical scroll
by
mayankkarki
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
General Programming
»
Uncategorised Quick Answers
»
General
Javascript
HTML5/CSS
windows-store
Ldap user authentication not working for locked or disabled account
by
mayankkarki
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...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
LDAP
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",...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Is there any property of Password strength control of ajax toolkit that returns strength value
by
mayankkarki
Question
4 Dec 2012
license:
CPOL
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
Ajax
Property value returned by DirectorySearcher and SearchResponse are of different type System._comobject and Byte array
by
mayankkarki
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 =...
General Programming
»
Uncategorised Quick Answers
»
General
LDAP
Unable to cast byte[] value of DirectoryAttribute class to IADsSecurityDescriptor
by
mayankkarki
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 =...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
LDAP
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...
General Programming
»
Uncategorised Quick Answers
»
General
C#
C#4.0
Find out User cannot change password value of ldap
by
mayankkarki
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...
General Programming
»
Uncategorised Quick Answers
»
General
C#
LDAP
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);
General Programming
»
Uncategorised Quick Answers
»
General
C#
C#4.0
Find out User cannot change password value of ldap
by
mayankkarki
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...
General Programming
»
Uncategorised Quick Answers
»
General
C#
LDAP
How to get object of "ntSecurityDescriptor" of a active directory user
by
mayankkarki
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) { ...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
LDAP
"Unable to cast object of System.Byte[] to ActiveDs.IADsSecurityDescriptor"
by
mayankkarki
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 =...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
LDAP
Unable to cast byte[] value of DirectoryAttribute class to IADsSecurityDescriptor
by
mayankkarki
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.
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
LDAP
Property value returned by DirectorySearcher and SearchResponse are of different type System._comobject and Byte array
by
mayankkarki
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...
General Programming
»
Uncategorised Quick Answers
»
General
LDAP
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?
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
"Unable to cast object of System.Byte[] to ActiveDs.IADsSecurityDescriptor"
by
mayankkarki
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 =...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
LDAP
How to get object of "ntSecurityDescriptor" of a active directory user
by
mayankkarki
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...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
LDAP
Getting error on deserializing json in metro app
by
mayankkarki
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.
General Programming
»
Uncategorised Quick Answers
»
General
C#
Metro
YouTube
How to play youtube video in its embeded player in metro app
by
mayankkarki
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...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Metro
YouTube
Getting error on deserializing json in metro app
by
mayankkarki
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...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Metro
YouTube
Is there any way to detect that website is open in kiosk mode?
by
mayankkarki
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.
General Discussions
»
Article "Running A Web Site In Kiosk Mode With C#"
Send and receive web request in backgroud service of metro app
by
mayankkarki
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 =...
General Programming
»
Uncategorised Quick Answers
»
General
C#
C#4.0
Metro
Send and receive web request in backgroud service of metro app
by
mayankkarki
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 =...
General Programming
»
Uncategorised Quick Answers
»
General
C#
C#4.0
Metro
How to detect that website is open in kiosk mode
by
mayankkarki
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?
General Programming
»
Uncategorised Quick Answers
»
General
C#
C#4.0
LDAP
ASP.Net-4.0
How to handle LdapConnection timeout in case of offline server
by
mayankkarki
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,...
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
C#
C#4.0
LDAP
Equivalent of Microsoft.Phone.Scheduler namespace in win8
by
mayankkarki
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.
General Programming
»
Uncategorised Quick Answers
»
General
C#
C#4.0
Metro
Both old and new password worked after changing ldap user password
by
mayankkarki
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.
General Programming
»
Uncategorised Quick Answers
»
General
C#
LDAP
Edit file info using rest api
by
mayankkarki
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 =...
General Programming
»
Uncategorised Quick Answers
»
General
C#
C#4.0
OAuth
Reset ldap user password (Error : The server cannot handle directory requests. )
by
mayankkarki
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 =...
General Programming
»
Uncategorised Quick Answers
»
General
C#
C#4.0
upload file in 4shared using rest api in windows phone
by
mayankkarki
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...
General Programming
»
Uncategorised Quick Answers
»
General
C#
C#4.0
How to access 4Shared user data
by
mayankkarki
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.
General Programming
»
Uncategorised Quick Answers
»
General
C#
C#4.0
LDAP connection using PrincipalContext
by
mayankkarki
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 =...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Page 1 of 2
1
2
First
·
Prev
·
Next
·
Last
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