The problem I have is that it is okay to have one of the textboxes to be empty while the other one is filled. It is invalid only if both the textboxes are emtpy. I should prevent this condition. I thought RequiredFieldValidator works with a single control. How can I use to check if both the controls are empty and only then flag the condition. Besides does this result in a Postback - if it does, then it defeats the purpose. I am trying to do client side validation. Thanks.
krisko
Posts
-
Javascript validation for DataGrid -
Javascript validation for DataGridHi, I have a DataGrid where in each row has couple of text boxes and an update button. Each row is dynamically generated as the number of rows are not known ahead of time. When the user clicks the update button, I do a postback to capture the data entered. However I dont want to do a postback when the textboxes are empty. How do I prevent this using Javascript? My main problem is with ClientIDs. This is a common problem and if it has been beaten to death, please bear with me as I am new to Web Development. Thanks in advance for any tips or pointers. Kris.
-
Iranian Presidential Election (Some Pics)You are indeed right. There is a club called Shiraz in my city where the Persians hang out and I was there by accident. We were amazed at the number of gorgeous beauties. My friend goes "Are we in paradise?":-D
-
Expect LibraryOops there was a formatting error. Here is the link once again http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/creating\_a\_child\_process\_with\_redirected\_input\_and\_output.asp
-
Expect LibraryIf it is a Unix client (assuming C/C++/Perl/Shell Script), it should be easy to use the Expect API within the client program itself to invoke a telnet session to a Windows Server. However this assumes that the program(yours) running on the Windows server should be a command line program and can be executed via a telnet session on the Windows Server, then Expect would be a good bet. However if it has to go through the Windows Service then I think you will have to spawn a child process and control its Read/Write handles from your service and finally return the output to the Unix client. I am assuming the communication b/w your Windows Service and the Unix Client is Sockets. A quick search yielded this and the idea I used is the pretty much the same for my project
-
Expect LibraryExpect works wonderfully on Unix and I have used it to be called from Shell Scripts to log on to remote server and execute commands on the server interactively. It is more of a network based tool/library and what you seem to be doing is an IPC kind of application. I doubt if it would work for your scenario. However I developed a similar app as yours where an old command line program was controlled via an MFC app. If you are trying to do the same, then there is a MSDN article that talks about how to do this and I found my solution based on that. I cant remember the title as it was several years ago. If you really need it, let me know and I will it dig it up. Good Luck.
-
how do i load a dll made in C#?I dont think you can create a DLL in C#. You can only build an assembly in C#. There is a difference between DLL and Managed assembly, although they share the same extension. To use the assembly from C++, as another reader pointed out convert the C# class to a COM object and use the COM object in VC++. Else you can host the CLR runtime in your VC++ app and then load your assembly there in.
-
SOAP With Attachments over MQ/MSMQThanks for your reply. Unfortunately I dont have a choice about the receiving end. It expects SOAP with MIME Attachments. I couldnt find any examples with MIME attachments and .NET. That's why I had mentioned - PocketSOAP which seems to support it but was wondering if it was tranport dependent (as I am not using HTTP but MQ). Apache also has a C++ Axis implementation. I should probably look at it too. Any other suggestions would be welcome.
-
SOAP With Attachments over MQ/MSMQHi, We are planning to send some Fax related data as a SOAP with Attachments messages to a Fax consuming Service over MQ. I would like to know if it is possible (in .NET, PocketSOAP or SOAPToolkit) to create the SOAP Message along with attachments and then serialize it to a byte stream, which can then be used to populate the MQ Message. What I am looking for is the equivivalent of the SAAJ library in Java. Can anybody point me to some info on this or give advise. Thanks, Kris
-
outsourcing....Embrace them!:laugh:
-
.NET Browser Controls for TAPI NotificationWe have a custom ASP.NET based CRM application. We are planning to integrate the ASP.NET application with Telephony switch so that it can receive phone call notifications. In order to do this we need to have a Java Applet kind of model. We are planning to use to J# as it is an ASP.NET application. Does anybody have any advice on this? Are there any alternatives to this? Any information with regard to the same would be appreciated. Thanks, Kris
-
Burn CD's using C#??Its called IMAPI. Its based on COM. You might have to write a wrapper for .NET. I remember seeing a sample using this API on www.gotdotnet.com. Check under C++ Samples.