Answer Questions
Tess_H Do I need the Microsoft Jet OLE DB Provider on XP SP2 (MDAC 2.8) via VB?
Windows XP SP2 implements MDAC 2.8 - which does not include the Microsoft Jet OLE DB Provider. So what will the connection string look like without the provider eg: PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source=mydatabase.mdb;Jet OLEDB:Database Password=<pwd> What is the equivalent without the Microsoft Jet OLE DB Provider and without ODBC Hi ahmedilyas, thanks for your response... However your suggested: "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\myFile.mdb;User Id=admin;Password=;" seems to imply that the syntax "Jet OLEDB:Database Password" is no longer supported Are you sure about that Hi Paul, thanks for your reponse... Are you sure that the Mi ...Show All
Jay Thomas Porting part of a large COM+ application to .net
I'm a litle currious that I can't find anything on this subject in the forum. There should have been written lots of COM+ application, and it's very unlikely that they all are trown away, just because .net is the current technology now. Anybody have any experince with using COM+ component in a .net application (It's simple enough - in teory - but reality usally is not so simple. Is this the right forum to ask such a question BTW Thanks for your answeere. We have problems with a 3. party com component that we can not get to register, and this is used all over the application. (To make it possible to use Unicode chars in the program.) If we can not solve that, it should be possible to write a .net component that supports ...Show All
hanozo Inserting into two sql tables at the same time
Hi, I have two tables in my database, Orders and OrdersId and are laid out as following: Orders OrdersId ------- ---------- OrderId (comp key) OrderId (PK) LineId (comp key) RepId ProductCode CustId ProductPrice ProductQuantity The OrderId field in table OrdersId is the primary key, whereas the Orders table has a composite key (OrderId and LineId). I need to add a row of purchased item data data into both tables but am not sure how. I want the OrdersId table should be filled first as the OrderId field is also required in the other table, but how do I take the OrderId value and fill the the Orders table including this value ...Show All
Ntc Purpose of dynamically-generated WSDL?
Several resources, including Aaron Skonnard's excellent 8/2002 "XML Files" column discuss the subject of pointing ASMX to a static WSDL file. Aaron's comments include this quotation: "Even when you generate an ASP.NET page from a static WSDL document, the ASP.NET infrastructure continues dynamically generating a new WSDL document each time the wsdl query string is received. The dynamically generated WSDL document will be equivalent to the static WSDL document that served as the starting point for the class but it may not be exactly the same (and it won't include comments or other extensions that you may have added)." If the ASP.NET infrastructure continues dynamically generating a new WSDL document each time the w ...Show All
Alexander_Monday List<> with unknown type
I have something like this: public List<MyClass> GetItems { get{ return (List<MyClass>)GetList(); } } public List<MyBaseClass> GetList() { List<MyBaseClass> lst = new List<MyBaseClass>(); Type typeOfProperty = EvaluateType(); // List<typeOfProperty> -- does not work //... AddItems // return (typeOfProperty)lst; -- does not work return lst; } How can I create a List with the unkown type List<typeOfProperty> is not possible Or how can I cast the list from <MyBaseClass> to List<MyClass> Because return (typeOfProperty)lst; also doesn't work. Hi, This is an interesting subjects.... I used to be a delphi programmer. In Delphi ...Show All
Beej80 Create Validation Regular Expression
Hello! I want to ask a simple question about regular expression in asp.net. the question is how to handle "javascript" as a single word by creating a validation expression for regular expression server control. Please, I need the answer as soon as possible. Thank's I need to deny the user of enter the word " in a text box. my application have a shared file have the Validation Expressions for all the application pages, because of that i need the expression to solve this problem. as you know when the user enter Javascript followed by ":" and write any java script code, some errors occur in the system, so because of these problems i nee ...Show All
cplusplus1 SendKeys Unfocused Windows
Is there a way to send keys to your program even if its not in focus It would make going through a web document that much easier, having it do the work for me. Thanks you can focus an application using the SetForegroundWindow and FindWindow API's. I wouldnt think there would be a way to send keys to an application not in focus as SendKeys does just that - sends keys to the application that is currently in focus. Perhaps there is another way, I am unsure. ...Show All
vgrigor One-Way IM
Hey I was wondering how I would go about making a program that would send text or numbers to my computer from another computer. This is basically like an IM program, but one way. Any help Ok, well I am not talking about a local network but over the internet. Like if I sent my program to my friend and he type something in and hit the button it would send a message/ or a .txt file to my computer. Would that method work Um, I just want to recieve a text file with the information entered into textboxes. Sorry if I am confusing anyone... Can it just be sent through email Directly connect to my computer I really don't know, anything that would work is fine. how would u want to receive the info u might want to take a lo ...Show All
KnobCreek FTP ListDirectory specifying type of file (extension) ???
Hi, I have been playing around with the FtpWebRequest, but I just can't find the way to send a ListDirectory using an specific kind of file, for example I only want the list of the xml files in the remote directory. Is there a way to achieve this using the FtpWebRequest (I'm not really interested in using the socket) Thanks in advance. Thanks Mc, nice solution George, try adding the pattern to your Uri. For instance, send your FtpWebRequest, with method ListDirectory, to: " ftp://www.yourserver.com/yourfolder/*.jpg " HTH --mc ...Show All
bryanedds getting xsl sort order of another attribute
hello here's the case. I have two different attributes of each item. <chart> <album name="a1" thisweek="100" lastweek="175" /> <album name="a2" thisweek="150" lastweek="100" /> <album name="a3" thisweek="200" lastweek="150" /> </chart> I sort the albums based on the thisweek attribute. but in another column I want to display the position of the album based on the "lastweek" attribute. position album position this week name last week ------------------------------------------------ 1 a3 2 2 a2 3 3 a1 1 how can I get th ...Show All
Buddhist How to convert XML Schema DateTime type to .Net long type format
Hi I want to convert XML Schema DateTime type to .net long type like as follows from dateTime: “2006-01-27T13:47:31.321-05:00” to .Net long datatye: “20060127134731321” I tried with convert members... but Iam not able to find that. Thanks or DateTime.Parse(str).Ticks; Use: str.Substring(0, str.LastIndexOf( '-' ) + 1).Replace( "-" , "" ).Replace( "T" , "" ).Replace( ":" , "" ).Replace( "." , "" ); Cheers, Dimitre Novatchev ...Show All
pc_bond RSA decryption problem, wrong providerversion
Hi, I am currently trying to decrypt an RSA encrypted file. The file has been encrypted using 4D (www.4d.com) code. I have both the private and public keys. But I can't seem to get the file content decrypted. So far all I get is a "providerversion" error. Any help on this issue is highly appreciated. The code looks like this... public static void AssignParameter() { const int PROVIDER_RSA_FULL = 1; const string CONTAINER_NAME = "SpiderContainer"; CspParameters cspParams; cspParams = new CspParameters(PROVIDER_RSA_FULL); cspParams.KeyContainerName = CONTAINER_NAME; cspParams.Flags = CspProviderFlags.UseMachineKeyStore; cspParams.ProviderName = "Microsoft ...Show All
loonysan is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.
im trying to do a simple select statement across sql server express. it is able to return me the query when i try on sdk but the a/m error appear when i try on web browser or emulator. btw, im doing a web service with mobile app. command = new SqlCommand("SELECT MAX(AID), UID, isDefault FROM Alert where (UID =" + uid + ") AND (isDefault='" + isdefault + "')", dc.Connection); above is my code when i try on web broswer and emulator. SELECT MAX(AID) from Alert where (UID =1) AND (isDefault='n') above is my code when i try on sdk (vs.net2005) what is wrong im trying to find the latest entry into the table by searching the largest AID in the table. that works in sq ...Show All
jcb1269 PasswordDeriveBytes.GetBytes bug not fixed
Dear All, PasswordDeriveBytes.GetBytes bug at http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx FeedbackID=93955 has been reported against Visual Studio 2005 Beta 1, and marked as fixed long time ago. However, it seems that .NET framework 2.0.50757 still suffers the same issue. Why the status is 'fixed' while it is not and should I submit a new incident (since the old one cannot be reopened) Thank you very much. ...Show All
sureshv System.Uri is not able to represent a query string properly?
This seems very odd to me, but I may have encounted an uri that cannot be properly represented by System.Uri. Console.WriteLine(new Uri(" http://www.example.com/somepage.html foo=bar%2bbaz ")); This should print the following line: http://www.example.com/somepage.html foo=bar%2bbaz Instead, the following line is printed: http://www.example.com/somepage.html foo=bar&baz Note that the semantic meaning of the uri has been changed. In .NET 1.1, a workaround exists: escaping the uri before passing it into the constructor of System.Uri: Console.WriteLine(new Uri(System.Web.HttpUtility.UrlEncode(" http://www.example.com/somepage.html foo=bar%2bbaz "))); In .NET 2.0, this workaround no lo ...Show All
