Answer Questions
ChrisCow Parameters in a sql statement
I am creating a simple sql statement that returns all from the table that is equal to Comp_UserID. The problem I am having is that I want to pass in the Comp_UserID as a variable. I am not sure of how sql parameters work, i have tryed searching the msdn network but I can see nothing for begineers so if anybody has any useful links that would be great. Below is the code I am using. //This is statement works correctly SqlDataSource ...Show All
Clifford Dibble Problem with path to DTD when calling CreateDocumentType in C#
Dear Community-members. I got a problem while creating the document type of my target xml file. I' ve written a console application. If i start it this way in C:\w2d\w2d.exe /f:filename.doc, the call to create the document type for the output xml file fails. The call is: _doc = new XmlDataDocument(); ... XmlDocumentType doctype = _doc.CreateDocumentType("map", "-//OASIS//DTD DITA Map//EN", "../dtd/map.dtd", null); T ...Show All
Nils Andreas Svee Retreiving ClickOnce Published Version Number
I would like to retreive the Last or Next ClickOnce Published Version Number at run time. Is this Possible If so how VB Only Please. Framework 2 Thank you for this, I have it working! In System.Deployment.dll there's an ApplicationDeployment class whic exposes the current version: ApplicationDeployment.CurrentDeployment.CurrentVersion There's also an UpdatedVersion prop ...Show All
Daniel Wellesley Login to website?
Hi group, This is a complete first for me and I have no idea where to start looking... I need to retrieve data from a php website. This website requires a login. So before it's possible to retrieve data I need to login :-) I need to use the HTTP POST method, most likely because in the source of the url I found this: <tr><td class="menu_cell_repeater"><form action="login.php" method="post"> So how d ...Show All
niceguy007 Remoting - disconnection over WAN
I wrote a custom bi-directional TCP channel to do my remoting. Using this channel, the client can receive messages back from the server once the client connects to the server. My problem is that over a WAN/Internet environment, my custom channel is consistently getting disconnected after a period of time for no apparent reason. I have 2 questions: should I expect unstable connections over WAN/Internet, am I to expect these disconnections ...Show All
Ovidiu SignedXML
.NET 1.1 I have been able to do the simple examples from MSDN and such in which I just make up a generic key and then check against that. eg. Dim key As New RSACryptoServiceProvider signer.KeyInfo = New KeyInfo signer.KeyInfo.AddClause(New RSAKeyValue(key)) signer.SigningKey = key Later I verify the sig Dim verifier As New SignedXml(doc) Dim myel As XmlElement myel = doc.GetElementsByTagName("Signature")(0) verifier ...Show All
xiaoyifang curious Q: can i use connection without building it
hi, i know its strange question, but i really need the answer , can i use an established tcp connection on my computer to exchange messages , for example yahoo messenger establish tcp connection with the server , can i use this connection to send messages , or do i have to build a complete independent client thx in advance I know that there is a way to reuse an existing connection but I don't remember the restrictions on when it is ...Show All
tmstewart How to run a standalone application independly from any DLL files
I developed an application under Visual Studio C#. However, the EXE file was unable to run in a PC without .Net environment, which is short of those relevant .DLL files. Can I build up a C# application running independently from DLL files If the PC you are attempting to run the application on is a Windows NT (ie NT, 2k, XP) system, then you can download a .NET Framework installation program from Microsoft. Th ...Show All
Altug Atik Serialization design problem relating to custom objects
Hi, I am developing a modeling application where custom objects would be created by certain external assemblies. These assemblies would be picked up on the fly by using reflection. In my application, I have defined an abstract class ObjectBase, which implements ISerializable. The custom objects would derive from this class. Lets say that a model is created, and a custom object from an external assembly is added to the model. Now we save ...Show All
Luka79 How to access webservices using soap protocol from javascript?
I cannot access web services using http get and post so only option isto use soap Please help in this regard.. Thanks in advance If the web service will ONLY support the Soap Protocol then you'll need a client that makes these soap requests. You're right, the XMLHTTP and ServerXMLHTTP objects use HTTP Post or HTTP Get requests to call the web service. We have a few more options for you: 1. Use the SoapTool ...Show All
Red2034 Out of Memory Exception
I have written a .NET Framework 1.1 Component which is called from either an ASP.NET Form or a command line program. Using the command line option, the Component is called repeatedly, once for each file in a folder, each of which is processed and uploaded into a SQL Server database. The command line program uses a ThreadPool to process multiple files in parallel. My problem is that the command line program apparently leaks! (I und ...Show All
senordotnet AWhy Does Deleted Rows Keep Coming Back?
Can someone comment (DataGridView dev team...hint, hint, nudge, nudge!) why deleted rows in the grid keep coming back. I'm sure its programming error on my part, but after about 3 weeks of fiddling with the DataGridView, trying to find the ideal steps to do all the steps, I can't seem to find the ideal combination to assure that rows get deleted and stay deleted. Also, seeing a lot of errors trying to save rows. ...Show All
jjbunn C# equiv of isdate?
Hi, How do i check if a string contains a valid date Ex, i have a string ="jan 6 15:15", I want to set the year to 2006, but only if it's not already a valid date as is the case. so, the resulting string should be "jan 6 2006 15:15". but if the string already has a valid date, ex "jan 7 2005", I don't want to touch it. I try to use the datetime.parse inside a try/catch, but i couldn't get it to fail. It ...Show All
fcampanini Regex question
Hello, I am new to c# and i am having some problems with regex. Every time i try to "scape" . or ^ or +, etc i keep geting this error: Error 1 Unrecognized escape sequence . I have search the net among other things on how to scape those character and they say i need to use \. or \^ ,but that doesn't help. This is the regex i am using: if(!File.Exists(Regex.Replace(textBox2.Text,"\\.+\.html","").ToS ...Show All
maman .NET Runtime
I have an application that I distributed to a windows 2000 server machine with only the .net runtime on it. The application would not even start. I created a quick form program with a label where the text was just "Hi". Built the installation, installed it on the server and it wouldn't start. I downloaded the .NET SDK to the windows 2k machine, installed it and the aplications ran fine. What am I missing in the inst ...Show All
