Answer Questions
hehongyu2000 OleDbCommand.Update method bug - parameter values overlap
Here's a weird one I haven't been able to figure out. I have a DataSet with several new rows that I need to insert into my Access database. I have a query in access called 'insNewUser' that takes a single parameter -- 'UserName'. My DataAdapter fills the DataSet with no problem. If I add a single new row to the DataSet and then call my DataAdapter's Update() command, the row gets added without a problem. If, however, I add 2 new rows to the DataSet and call the Update() command, the first row gets inserted properly, but the second row contains "left-over" text from the first row! For example, if I added two new rows with the values: 1) "UsuallyPrettyKnowledgeable" 2) "Stumped" my DataAdapter would ins ...Show All
Kartit WSE 3 Bug? Custom SecurityPolicyAssertion
Someone from the WSE team please help me out here…. This post is about Secure conversation with a custom SecurityPolicyAssertion I trying to write a custom SecurityPolicyAssertion that supports secure conversation. I’ve followed the documentation example ‘Create a Custom Policy Assertion That Supports Secure Conversations’ ( http://msdn.microsoft.com/library/default.asp url=/library/en-us/wse3.0/html/2169b720-80b1-46a8-a990-7e9619de1ea9.asp ). I created everything as instructed, overrode the SecurityPolicyAssertion.ReadXML() method to read in all my custom configuration it was all working perfectly until I added the attribute establishSecurityContext="true" on the policy in the policy config file. The strange thing is that when SecurityP ...Show All
WizMan Shutting down network computers?
I suspect that I once again have someone leeching of my Wireless router again and I can't connect and lock it for some reason. So I thought perhaps I could shutdown the computer who is leeching off my network As a lesson :P There are probably a lot of software out there that could do this but it would be nice to learn how I could create such software. ah! completely forgot, add a reference to System.DirectoryServices - right click references in your project in solution explorer then go to add reference and select System.DirectoryServices.dll New problem: It works perfectly fine when I shutdown my own computer, but doesn't work whenever I try to shut other computers down, it starts a cmd window titl ...Show All
Jon_H Version 2.0 downloaded - now getting can't load messages on reboot
Upon downloading the latest driver and ATI Control Center for my ATI X1300P video card, I was instructed to install .NET version 2.0, for it to work (hopefully for the video driver and not that pesky ATI Control Center application). I am working with Windows XP, Service Pack 2, and have no other reason to download this software - I don't even understand why I really need it. Anyway, I downloaded Microsoft .NET Framework Version 2.0 Redistributable Package (x86), and am now getting 2 messages on reboot: Could not load file or assembly 'MOM.Implementatiom, version 2.0 2589.34834 Culture=neutral, PublicKey Token=90ba9c70f846762e' or one of it's dependencies. System cannot find file specified. and Could not load file or assembly ' ...Show All
ImagineNation Bug in 2.0 SqlDataSource Object ?
I think that I have stumbled across a bug with the SqlDataSource object. I am using the web control in a page and it is set up as follows. < asp : SqlDataSource ID ="dsFees" runat ="server" ConnectionString =" <%$ ConnectionStrings:LoanLevelConnectionString %> " UpdateCommand ="update brokeredLoansFees set amount = CONVERT(money,@amount), feeDesc=@feeDesc where loannumber=@loannumber and feeDesc=@feeDesc" SelectCommand ="SELECT * FROM [brokeredLoansFees] WHERE (([branchId] = @branchId) AND ([loanNumber] = @loanNumber))" DeleteCommand ="delete from brokeredLoansFees where loannumber = @loannum and feedesc = @fdesc"> < SelectParameters & ...Show All
withers IsArabic
what is wrong in this code to know if the text is arabic or not >>> the error is the underlined... public bool IsArabic( string strCompare) { int i; string strTemp; IsArabic = false ; _____________ for (i = 1; (i <= strCompare.Length); i++) { strTemp = strCompare.Substring((i - 1), 1); if ((((AscW(strTemp) > 1575) ________________________ && (AscW(strTemp) < 1609)) || ((AscW(strTemp) == 1575) || (AscW(strTemp) == 1609)))) { return true ; } } } Thrace's code returns true if *all* of the characters are Arabic. Your code returns true if *any* character is Arabic. Looks like you're tryin ...Show All
_JORGE_ mouseUp event of vertical scroll bar
Hi all, Plz tell me hos get MouseUp event of vertical scroll bar of browser in javascript. Thanks for reply, I would like exact when the user scroll page and leave the mouse. Event of leave the mouse button after end the scrolling page. Would handling window.onscroll meet your needs Or do you need to specifically handle the mouseup event for some reason the onscroll doesnt fire until the user stops scrolling, effectively the same as mouseup. It also works for the middle mouse wheel that many users use to scroll, which a specific mouseup event on the scrollbar wouldn't detect. I found a little html on the net that illustrates this point. If you still think you need the mouseup event please elabora ...Show All
Bernaridho Custom object serialization
Hello, I am building a web service to query for information from a database and am having some difficulty making the serialization work as I want it to. The data is stored in a somewhat complex structure where I have a "data object" which can be of several types and has different data depending on the type. The data objects I have can be simplified into something like this: class DataObject { string type; HashTable data; } If, for example, dataObject.type is set to "Client", I want to have the web method return a SOAP body as follows: <GetClientResult> <Client> <id>int</id> <name>string</name> </Client> </GetClientResult> And similar structures for oth ...Show All
fatquack ConfigurationElement Design : Programmatic Model vs. Declarative Model
I am currently in the process of writing my own ConfigurationSection and ConfigurationElement (s) for the .config file on a development project. I have read the online documentation and have also used a reflector tool to analyze some of the .NET Framework classes to decide the best possible approach. I am just curious if someone has more experience with this than I, and would be willing to offer some design consultation on one or more of the questions I have. In the documentation it describes a programmatic model vs. a declarative (attributed) model. This statement can be found with the following documentation link for ConfigurationSection – http://msdn2.microsoft.com/en-us/library/system.configuration.configurationsectio ...Show All
Georgyporgy top-level param default value is ignored
Hi, I have the following line right after the output element in my xslt file: <xsl:param name="selectedColorScheme" select="'default'" /> I set a breakpoint after this point so that I could check the value of "selectedColorScheme" and it shows up as null instead of the string "default". If I change it to a variable instead of a parameter, it works. Unfortunately, that doesn't give me the flexibility of passing in an override value. Am I missing something here MylesRip wrote: Hi, I have the following line right after the output element in my xslt file: <xsl:param name="selectedColorScheme" select="'default'" /> I set a breakp ...Show All
tantz How about constructors that are selfaware?
I ran into a solvable problem that led to the following consideration: why not allow a return null from a constructor There maybe times when the state of a system may not allow the instantiation of an object. I posted the following on the Code Project: http://www.codeproject.com/script/comments/forums.asp msg=1591017&forumid=1650#xx1591017xx What do you think Factoring is certainly a candidate solution. Hi Giancarlo Yes, there are imporant side effects to using partially constructed objects. You cannot assume any member variables have been initialized yet, you cannot assume the security state or culture. Consider the Dispose pattern. Inside your Dispose method, you should be freeing any unmanaged resources. You ...Show All
Wally9633 Access query to transpose table data
Hello, I have the following table structure in my database and would like to create a query or table that displays a single record for each country with the three different RatingsType1 across the top as column headings with the respective rating filled in. Something like this: Country Rating1 Rating2 Rating3 US AAA CCC Baa1 where Rating1, Rating2, Rating3 are one of the three types of ratings from the tblRatingsType1 table. Here's the table structure: tblCountry CountryID (PK autonum) CountryName tblCountryRating CountryRatingID (PK autonum) RatingType1ID (FK to tblRatingType1) Rating RatingDate tblRatingType1 RatingType1ID (PK au ...Show All
Shepherd Can't figure out this error message
Good Day all, I seem to have hit a dead end. I am "attempting" to write a web application to retrieve, insert and update information in a SQL2000 database. I can retrieve information just fine but when I try to update it I keep getting the following message: System.Data.SqlClient.SqlException: Line 1: Incorrect syntax near 'UDPATE'. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataS ...Show All
nick5454 .net 3.0
Is there any advantages of the .net 3.0 framework for xp or is it really just for vista You can install it on xp but to use it with Visual studio 2005 you have to download some extra addons so that the new .net3 components appear in the object browser. You also need these for the express editions though not all of these will work with the express editions. Visit .net3 homepage http://www.netfx3.com/ the new VS is still a while away (about a year), in regards to the benefits on Windows XP - not entirely sure. It really depends what you are trying to aim for/develop with .NET 3.0 :-) I guess the true question is. Is it worth the benefits for windows xp ...Show All
Allen_Simmons Random number generator
hello everyone :) can someone please explain how to generate a random number between 0 and 1 in ms visual studio 2005 i tryed something like... Random^ x = gcnew Random(); x->Next(0,1); and then, to see if it works i tryed Show:Messagebox(x->ToString(), .........) but it doesnt seem to be working....., any ideas :/ (sorry if this is in a wrong subforum) This forum is intended for questions and issues regarding Visual Studio's Help and Documentation system. However, this question seems fairly straightforward, and I think I can answer it without sending you to another forum. It appears that you are on the right track here. Look at the "Random.Next Method ...Show All
