Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:664154
More Search Options
RSS Available
Matching Posts
Re: using UpdateParameters with LinqDataSource
no one?
Posted to
Data Access and ObjectDataSource Control
(Forum)
by
stupid
on 4/5/2008
using UpdateParameters with LinqDataSource
I am having problems figuring out how to use UpdateParameters with LinqDataSource. Basically I want to insert a bunch of values from a DetailsView into a database. There will be no 'name' category and I simply want to input the user's name without allowing them to change it. In the past, I would simply use a SqlDataSource UpdateParameter like this: < asp:SessionParameter SessionField= "name" Name= "name" DefaultValue= "error" Type= "String"
Posted to
Data Access and ObjectDataSource Control
(Forum)
by
stupid
on 4/4/2008
Re: Finding/Editing a Phone Number in AD through .Net
You are being extremely helpful in getting me where I want to go, thank you! Now I have the query working with this (I hard-coded the sn for now): 1 DirectoryEntry entryRoot = new DirectoryEntry( "LDAP: //RootDSE"); 2 string domain = entryRoot.Properties[" defaultNamingContext "][0].ToString(); 3 DirectoryEntry entryDomain = new DirectoryEntry(" LDAP: //" + domain); 4 string [] propertiesToLoad = { "cn" , "telephoneNumber" , "accountExpires"
Posted to
Active Directory and LDAP
(Forum)
by
stupid
on 4/2/2008
Re: Finding/Editing a Phone Number in AD through .Net
Thank you for the reply! I see what I am doing wrong, but now I am having problems accessing LDAP. Could you possibly give me an example? I went off of a few examples I have been finding on blogs and such, but it is seeming to error out. 1 string strLdapString = "LDAP: //OU=XYZ,OU=PARTY BDE,OU=Users,OU=ABCD,DC=ex3,DC=ex2,DC=ex1,DM=com 2 DirectoryEntry de = new DirectoryEntry(strLdapString); 3 DirectorySearcher ds = new DirectorySearcher(de); 4 ds.Filter = " (cn=Naspinski\\,Stan W)";
Posted to
Active Directory and LDAP
(Forum)
by
stupid
on 4/2/2008
Re: Finding/Editing a Phone Number in AD through .Net
the code I am using to get this is here: 1 System.Security.Principal.WindowsIdentity wi = System.Security.Principal.WindowsIdentity.GetCurrent(); 2 string [] a = Context.User.Identity.Name.Split( '\\' ); 3 DirectoryEntry ADEntry = new DirectoryEntry( "WinNT: //" + a[0] + "/" + a[1]); 4 5 foreach (string Key in ADEntry.Properties.PropertyNames) 6 { 7 string sPropertyValues = String.Empty; 8 foreach (object Value in ADEntry.Properties[Key]) 9 sPropertyValues += Convert.ToString
Posted to
Active Directory and LDAP
(Forum)
by
stupid
on 3/26/2008
Re: tabbed interface - back button and bookmarks
As far as I know, the back button is never going to work. Because according to the browser, you never went anywhere when you are using AJAX. Without changing the behavior of the browser, you aren't going to get the browser based back button to work (no even sure if you could do that) - now an in-app back button is very doable. As for bookmarks, you would do best to use a querystring variable that changes with each ajax call. Though it would not show up in url of the browser without a page refresh
Posted to
ASP.NET AJAX Control Toolkit
(Forum)
by
stupid
on 3/26/2008
Finding/Editing a Phone Number in AD through .Net
What I am trying to do is to allow a user to edit their own phone number through a simple, dummy-proof web interface, just a textbox and a submit button. I can seem to pull up the LDAP object (DirectoryEntry) just fine using the code from this post: http://forums.asp.net/t/1222482.aspx Problem is I only get the following properties when I output: UserFlags=262689 MaxStorage=-1 PasswordAge=8053937 PasswordExpired=0 LoginHours=System.Byte[] FullName=Doe, John Guy Some Company (party) Description=Doe
Posted to
Active Directory and LDAP
(Forum)
by
stupid
on 3/26/2008
Re: Cant make a ActiveDirectorySearch object?
Added that and still nothing?
Posted to
Active Directory and LDAP
(Forum)
by
stupid
on 3/22/2008
Re: Where do I get System.DirectoryServices?
Figured it out, I had to do a search for the .dll and put it in my Bin file. Still not sure why it wasn't in my GAC... any ideas?
Posted to
Active Directory and LDAP
(Forum)
by
stupid
on 3/18/2008
Cant make a ActiveDirectorySearch object?
I am trying to set an ActiveDirectorySearch object and I cannot seem to find out where I can access this? I am using the following namespaces: using System.DirectoryServices; using System.DirectoryServices.ActiveDirectory; but it is still not seeming to work. Any ideas how I can get this to work? Thank you.
Posted to
Active Directory and LDAP
(Forum)
by
stupid
on 3/18/2008
Page 1 of 13 (130 items) 1
2
3
4
5
Next >
...
Last »
WindowsClient:
The (Near) Final Word on Multi-Monitor Taskbars for Windows 7 - Ultramon vs. DisplayFusion
WindowsClient:
Looking back at 2009, and forward to 2010
Silverlight:
Polling Video – A Viable sub-second alternative?
TechNet Edge:
Windows Server 2008 R2 Quick Look #2 - Active Directory Recycle Bin
Channel 10:
I'm a Windows 7 PC Themes
Channel 10:
24 Years of Windows Box Art
WindowsClient:
Silverlight tutorial: HOW TO build CommandLink Control in Silverlight with Expression Blend 3 and Behaviors
ASP.NET:
Converting an RGB Color To Hex With JavaScript
Silverlight:
Silverlight HVP Design – Configuration & Scenarios
Channel 9:
Channel 9 Live at PDC09: Day 3 Welcome
Channel 9:
Channel 9 Live at PDC09: TWoC9 Day 3
Channel 10:
Microsoft's Mobicast: Stiched Cell Streams
Channel 10:
Festive Bing
TechNet Edge:
How Microsoft Reduces Operational Risk through Business Continuity Management
Channel 9:
Jeffrey Van Gogh and Bart De Smet: Inside System.Interactive
WindowsClient:
Runtime Fault Injection using TestAPI
TechNet Edge:
TechNet Radio: Community Corner with John Weston (Episode 1)
TechNet Edge:
Windows Firestarter Events (Part 3 of 5): IE8 - Browse the Web in Style!
WindowsClient:
The year ahead, 2010.
TechNet Edge:
FOPE Policies Deep Dive Interview
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online