Answer Questions
redspider System.Web.Security.ActiveDirectoryMembershipProvide question
Hi, I'm using the "System.Web.Security.ActiveDirectoryMembershipProvide" provider in an ASP.NET app to authenticate users: < add name = " ADConnectionString " connectionString = LDAP://MyCompany.com/OU=People,DC=MyCompnay,DC=com /> The authentication process has no issues and works as expected. For authorization, I've set to use the "AspNetWindowsTokenRoleProvider": <roleManager enabled="true" defaultProvi ...Show All
AdamChen arrays of Datasets??
Easy guys, I’m just a beginner, used to be a programmer long time ago but now I forgot everything ( I’m a pro Poker player now), anyways; I am converting a program I wrote decades ago in Vb6. I need to now how I can make an array of datasets, if that is what I need to convert the equivalent of; for I=2 to 80 ...Show All
MrHedden SCOPE_IDENTITY doesn't seem to work
For several days, trying everything I can think of and having researched the net until I'm blue in the face, my ExecuteScalar command returns null when I execute: Dim IDCmd As SqlClient.SqlCommand = New SqlClient.SqlCommand( "SELECT SCOPE_IDENTITY()" , MyConnectionString) Dim NewID As Object = Nothing NewID = IDCmd.ExecuteScalar If IsDBNull(NewID) Then Label1.Text = "<NULL>" Else Label1.Text = ...Show All
Eric Proegler Incompelete object deserialization using XmlSerializer.Deserialize
I tried to implement object serialization and deserialization using XmlSerializer but somehow deserialization is incomplete, meaning the object is recreated with missing data. My class model is as follow: class A { public field1, field2, field3,...; // these are the serializable attributes public DataList1 data1 = new DataList1(); } class A_List: IXmlSerializable { ... // store an ArrayList of class A objects ...Show All
jirikraus Dynamic invoking and enumerations and indexes
Hi I've been able to dynamically create instances then invoke methods and properties of those instances using classes using the 2.0 framework. For example .. ObjectHandle objectHandle = Activator.CreateInstance("Microsoft.SqlServer.Smo, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91", "Microsoft.SqlServer.Management.Smo.Index", new object[] { tableInstance, "NewIndex" } ); object instance = objectHandle.Unwrap(); Ty ...Show All
Rathi SqlTransaction: Why is TableAdapter in generated dataSet.Designer.cs protected
In order to set the Transaction for a SqlCommand I have to get to the SqlCommand - Right But I have not found a way to unprotect the Adapter inside the generated class... Any ideas - workarounds or "Am I evil " ;-) Thanks Peter I have the same problem, I find this code but I don't know if this is the best way. Using transaccion As New Transactions.TransactionScope 'Put your code h ...Show All
Computertech156 Problem with SqlDependency
I can not get any SqlDependency examples get to work. I'm using VS05 Beta 2 and SQL2005 April CTP (the versions from the beta experience kit). My Code: private void Form1_Load(object sender, EventArgs e) { // ... more code ... cmd = new SqlCommand("SELECT from, text FROM Chat", con); dep = new SqlDependency(cmd); dep.OnChange += this.dep_OnChange; // ... more code ... } void dep_OnChanged(object sender, SqlNoti ...Show All
DougP Windows Explorer Translucent Selection Rectangle
Hi, I am writting a control for my company that needs to have a means to select items by means of a 'rubber band' or selection rectangle. The effect under Windows XP is that the selection rectangle is translucent. Is there an API way to so this Or does one have to use a LayeredWindow approch I am writting this in C# and would like to mimic the way explorer draws this. If anyone has any leads please let me know Thanks Tim Akehurst ...Show All
Bito Connection String problem with MSDAORA.1
Hi. I have two connection strings for my application, one using Microsoft ODBC Driver for oracle, and another using Oracle ODBC Driver. I am getting "Object not found error( ASP)" when I use MSDAORA.1. I am using oracle 8i. Thanks. What is the line of code that generates the error Check also for the version of Oracle you are using. I think you cannot use OracleDataAdapter to connect to Oracle 8i, ...Show All
Saul775 signing file and store as p7m
Hi I need to sign a file and save it together with the signature as a p7m file. Found some new classes in .net 2 (SignCMS), but I have no clue how to use .... does anyone have some example. Also tips for .net 1.1 are very welcome! Thank you! No, you're right that doesn't make sense. The PKCS7 classes are actually the only classes under crypto that I don't own, and I've reached the end of my knowledge of the ...Show All
Daniel Penalba Localized Month and Weekdays names in spanish
Any idea why the capitalization for localized months and weekday names for spanish cultures changed in the .NET 2.0 framework from the way it was in .NET 1.1 For example, the following program: CultureInfo c = new CultureInfo("es-CO"); Console.WriteLine(c.DateTimeFormat.MonthNames[1]); will print "Febrero" in .NET 1.1, but "febrero" on .NET 2.0 (and so on for all months and names". ...Show All
DalenCa ADO/SQLExpress Connection String Question
I'm working on a customer project and deployment project. SQLExpress is part of the installation and there is a pre-existing database. As installed, the database is detached. This application uses ADO.NET to establish SQL connections and it also uses Excel VBA to connect to the database via ADO. The following SQL Connection string works for SQL (as far as I can tell) Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\XYZ_Data ...Show All
EnateCode webcast on remoting
anybody knows any webcast on Remoting using vb.net.If yes pls let me know. thankX. there are lot.... http://www.microsoft.com/events/webcasts/calendar/monthview.aspx http://www.microsoft.com/events/series/modernsoftdev.mspx ...Show All
Darell F. Butch Jr. XMLDocument.Load Proxy Error 407
Hi All, I am trying to use the XMLDocument.Load method to load an XML document from a web site ( http://www.xxx.com/file.xml ). As I am going through ISA and require Proxy authentication, I cannot seem to use any property on the XMLDocument object to specify such. I tried using the XML Resolver but to no avail. All I can specify there is the URLResolver and pass some credentials, but no proxy. I am using VB.NET 2005 PRO, and will be usi ...Show All
Murph the Surf HttpListener windows authentication fails for domain account
I have a very simple console app using an HttpListener to listen for incoming HTTP requests (see code below). My client and server machines are both in an ADS domain and I'm logged into both using my domain account. The server app is running as admin on an XPSP2 box. If I set authentication to Anonymous or Basic, I can get requests. If I change to IntegratedWindowsAuthentication, however, IE on the client prompts me for credentials. I can get t ...Show All
