Any help on this?
Kodanda Pani
Posts
-
Regular Expression -
Regular ExpressionHi All, I was trying to find out a correct regular expression to match 0 < i < 1 with no luck. It will be very helpful to me if you can provide me some help on wrtiting a regular expression to validate any values between in 0 and 1. Thanks and Regards Pani
-
Raising Events from IF hosted winfrom control to container(aspx) pageHi All, I have an winform control which needs to be hosted in a aspx page. Iam using the tag do so and its working. When an event occuers (like tab click) on the IE hosted winform control i need to raise this event to the aspx page which hosted the control. Any sort of help is appriciated. Thanks in advance. Regards Pani.
-
Display Duplicate Rows Only onceThanks for the response. But i need the ID as well in the display. Regards Pha
-
Display Duplicate Rows Only onceHi All, I have a table with the below columns. ID , First Name , Last Name , City. The ID column is unique. This table contains duplicate rows (First Name , Last Name , City values are same). Could you please advise me on how to write a select query to display duplicate rows only once along with the other rows. Thanks and Regards Pha
-
Simple example of DataGridView..?Hi, Use a binding source to bind your list and then bind the binding source to the data grid view. dataGridView1.DataSource = bindingSource1; dataGridView1.AutoResizeColumns(DataGridViewAutoSizeColumnsMode.AllCellsExceptHeader); this.bindingSource1.DataSource = myList; Thanks and Regards Mahen
-
Connecting to a FTP ServerHi All, How can i connect to a FTP server and down load the files from there in a C# application. We are using .NET frame work 1.1 and cant use any third party components. I have tried using Webclient class. Its working fine when i use a http URL But generating the following exception while connecting to a FTP server. System.NotSupportedException: The URI prefix is not recognized. Any help is appreciated. Thanks and Regards Mahe
-
Parsing XML with XPath Navigator [modified]Hi, Thank you for your response. My XML file is Singapore
IA 20
My Xpath is selecting country element. So how can i differentiate between name element and Address element. Thanks, Pani
-
Parsing XML with XPath Navigator [modified]Hi All, While parsing an xml document using Xpath navigator how we can check whether a node has child nodes or not. Tried using both HasChildern and IsEmptyChild but no luck. I should be able to differentiate between No child child 1 child 2 How to diff between node1 (no children) and node2 (which has children) Thanks in advance. Regards Mahe -- modified at 1:57 Wednesday 11th April, 2007
-
Localisation of c# Windows ApplicationHi, To implement the localization we need to do 1) Create .resx file for each language. 2) Generate .resource file from the .resx file using resgen tool. 3) Create the ResourceManger in your application. 4) The .resx files store the language strings as key value. So read the language string using the Getstring method of ResourceManager passig key value as input parameter. Guess this will help you. Pani
-
How to detect if a service is running or notHi, ServiceController.Status give the status of the service. I guess you can use this. Thanks and Regards Mahe
-
hiding/encrypting connection stringHi, Use the following code to encrypt and decrypt your connection string. public static byte[] Encrypt(byte[] clearData, byte[] Key, byte[] IV) { //create the memory stream MemoryStream ms = new MemoryStream(); //create a crypto service provider Rijndael objrj = Rijndael.Create(); //set the Key and iV values objrj.Key = Key; objrj.IV = IV; //create a crypto ctream CryptoStream cs = new CryptoStream(ms,objrj.CreateEncryptor(),CryptoStreamMode.Write); cs.Write(clearData,0,clearData.Length); cs.Close(); byte[] encryptedData = ms.ToArray(); return encryptedData; } public static byte[] Decrypt(byte[] cypherData, byte[] Key, byte[] IV) { //create the memory stream MemoryStream ms = new MemoryStream(); //create a crypto service provider Rijndael objrj = Rijndael.Create(); //set the Key and iV values objrj.Key = Key; objrj.IV = IV; //create a crypto ctream CryptoStream cs = new CryptoStream(ms,objrj.CreateDecryptor(),CryptoStreamMode.Write); cs.Write(cypherData,0,cypherData.Length); cs.Close(); byte[] clearData = ms.ToArray(); return clearData; }
-
Single InstanceHi Yadav Guess the following 2 links will help you. http://msdn.microsoft.com/msdnmag/issues/05/09/NETMatters/ http://www.codeproject.com/threads/simplesingleinstanceapp.asp Thanks and Regards Pani
-
Problem while working with Oracle client in 1.1Thank you. I guess you can make out whats the problem is from the link given by me. Anyhow thanks for your response and iam able to solve my probling by cloning the parameter before adding it to the command collection. Regards Pani
-
Problem while working with Oracle client in 1.1Hi All, Iam using classes in the name space System.Data.OracleClient to call the stored procedure on the Oralce database. When iam trying to add a new parameter to OracleCommandObject's Parameter collection iam getting the following error. The OracleParameter with ParameterName '' is already contained by another OracleParameterCollection. The simillar problem is posted in the other forums like http://www.dotnet247.com/247reference/msgs/46/232504.aspx but i have failed to find any solution there. Thanks in advance. Regards Pani
-
Saving file(XML) on network driveHi, Do you have access to store the files on the remote machine? Aslo could you please let us know how you are saving the files on the local disk? Regards Mahe
-
Stored procedures in SQLHi Deeksha, Guess the following links will help you. http://vyaskn.tripod.com/coding\_conventions.htm http://www.extremeexperts.com/SQL/Articles/BestPractices.aspx Thanks and Regards Pani
-
Creating setup project which install mdac and fremeworkHi Dewang, Guess the following link will help you. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetdep/html/vsredistdeploy1\_1.asp Regards, Mahen
-
Using TripleDES Encryption [modified]Hi, In the code used to encrypt add the following statement to get the encrypted text into a string variable strRtnvalue. strRtnvalue = Convert.ToBase64String(ms.GetBuffer(),0,Convert.ToInt32(ms.Length)); Regards, Mahen
-
Using TripleDES Encryption [modified]Hi, strValue is the text that needs to be encrypted. Regards, Mahen