Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

malikjhangirahmed hotmail com

@malikjhangirahmed hotmail com
About
Posts
18
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Security in Web Services
    M malikjhangirahmed hotmail com

    How can i implement security in my web services other than using encryption decryption explicitly. Please keep in mind that this service is to be accessed from a mobile device. Any method(the most easiest one) will be accepted... Regards, Wasif Ehsan.

    C# security wcf question

  • radio button in windows form..urgt plzz..
    M malikjhangirahmed hotmail com

    Dear Reehan Bhai, Please change your Insert query as following: String idata="Insert into db1 values("+txtID.Text+","+(rbmale.Checked ? rbmale.Text:tbfemale.Text+")"; I think above query must solve your problem. Regards, Wasif Ehsan

    C# database csharp security help

  • C#/SQL Question
    M malikjhangirahmed hotmail com

    As i have understood from your description, you need this SQL query String SQLString="SELECT * FROM Costs WHERE PartID= "+ "(SELECT ID FROM Parts "+ "WHERE PartNumber="+txtPartNumber.Text+")"; This query is right if your part number is not the part id which stored seprately in parts table along with part id. But if Part no. and part id are the same then you could use following query: String SQLString="SELECT * FROM Costs WHERE PartID= "+txtPartNumber.Text; I think it should work.... Wasif Ehsan

    C# question csharp database asp-net sql-server

  • Checking if an event is being handled
    M malikjhangirahmed hotmail com

    In source code, you can check by comparing that event against null. If the event is equal to null, it means corresponding event is not being handled. Otherwise, it is being handled.

    C# help

  • Encoding Problem
    M malikjhangirahmed hotmail com

    HI, I have the following scenario. I am getting data from a web service which is encrypted. I decrypt the data and get a buffer of bytes. Now i need to convert that to a string. When i use Encoding.UTF8.GetString(byte[]), the returned string is complete but there is a space between every two consecutive characters. But when i use Encoding.Unicode.GetString(byte[]) then the string is fine(without spaces), but it eats away the last character of the string. Here is the code byte[] cipherTextBytes=Convert.FromBase64String(cipherText); /* My decryption code goes here */ return Encoding.UTF8.GetString(removeLength (outputBuffer)); Any solution please.... Wasif Ehsan

    C# help

  • C# Resizing a form the programming way.
    M malikjhangirahmed hotmail com

    Whenever you need to resize your form, you can reset the size property of your form like this.size=new Size(newWidth,newHeight) As soon as this line will be executed, you form will be resized. Here you can give the height and width whichever you want. But remember, you need to take into consideration the new sizes of your controls on the form since they may not look pretty with the resized form. That's it... Wasif Ehsan.

    C# csharp visual-studio help

  • a special Format For MaskedTextBox [modified]
    M malikjhangirahmed hotmail com

    At design time, in the property window, set the mask property to the mask you want to set.That's it... Wasif Ehsan

    C# question help tutorial

  • [Message Deleted]
    M malikjhangirahmed hotmail com

    Set the MultiLine property to true, then \n will work. Wasif Ehsan

    C#

  • Data Table Problem
    M malikjhangirahmed hotmail com

    Use following syntax DataTable.Rows[index].Columns[name/index]=value; If you need more guidance, feel free to reply again Wasif Ehsan

    C# help tutorial

  • Encryption/Decryption Bad Data Exception
    M malikjhangirahmed hotmail com

    Hi, I am getting Cryptographic Exception while calling FlushFinalBlock method of CryptoStream after decrypting a buffer. Here is my code that decrypts the buffer.... DESCryptoServiceProvider des=new DESCryptoServiceProvider(); des.BlockSize=blockSize; des.Key=kDESKey; des.KeySize=64; des.Padding=PaddingMode.PKCS7; des.Mode=CipherMode.ECB; ICryptoTransform cryptoTransform=des.CreateDecryptor(); MemoryStream mem=new MemoryStream(); CryptoStream cryptoStream=new CryptoStream mem,cryptoTransform,CryptoStreamMode.Write); byte[] outputBuffer=new byte[cipherTextBytes.Length]; cryptoStream.Write (cipherTextBytes,0,cipherTextBytes.Length); cryptoStream.FlushFinalBlock(); outputBuffer=mem.ToArray(); cryptoStream.Close(); mem.Close(); return removeLength(outputBuffer); As soon as i call FlushFinalBlock it throws Cryptgraphic exception with message BadData. Please help me to solve this problem... Wasif Ehsan.

    C# help security

  • What is "turning on a trace"?
    M malikjhangirahmed hotmail com

    I dont know if there is any option -t but there is a command line option /t that specifies the type of target assembly i.e. whether its exe,dll or module. Wasif Ehsan.

    C# question csharp debugging

  • how can we run a program pernemently on our desktop?
    M malikjhangirahmed hotmail com

    Its very simple 1. Put its exe in startup folder on your system 2. Or make your program as a Windows service and configure to start as soon as your system starts. Regards, Wasif Ehsan

    C# tutorial question

  • Copy/Paste Problem
    M malikjhangirahmed hotmail com

    Hi, Can anyboyd tell me how can i prevent user from Copy pasting text in Text Boxes and the Cells of a grid? Is there any way of doing that? Wasif Ehsan.

    C# question css help

  • Listbox Item Selection
    M malikjhangirahmed hotmail com

    I think the best way to check for selected items is to use SelectedIndex if the selection mode property is One or SelectedIndices if its multiple. Regards, Wasif Ehsan.

    C# question

  • Invalid Character in XmlDocument
    M malikjhangirahmed hotmail com

    Hi, I have a web service and a web service consumer. Whenever i call the function of the web service, i get exception System.Xml.XmlException with message Character 0x12 is not valid in XmlDocument. I know that characters whose code are under 0x20 are not allowed in XML Documents. Actually i am sending encrypted data to the web service that's why when i encrypt, characters under 0x20 also appear in the XML Document. I have searched the net but could not get the work around. Please help me to solve this problem. Wasif Ehsan.

    C# help xml

  • Encryption Decryption Problem in Web Services
    M malikjhangirahmed hotmail com

    Hi, I am using the following code to decrypt an array of bytes: DESCryptoServiceProvider des=new DESCryptoServiceProvider(); des.BlockSize=blockSize; des.Key=kDESKey; des.KeySize=64; des.Padding=PaddingMode.PKCS7; des.Mode=CipherMode.ECB; ICryptoTransform cryptoTransform=des.CreateDecryptor(); MemoryStream mem=new MemoryStream(cipherTextBytes); CryptoStream cryptoStream=new CryptoStream(mem,cryptoTransform,CryptoStreamMode.Read); byte[] outputBuffer=new byte[cipherTextBytes.Length]; cryptoStream.Read(outputBuffer,0,outputBuffer.Length); mem.Close(); cryptoStream.Close(); return outputBuffer; But the problem is that when i call Read of the cryptoStream, i get System.Cryptography.CryptographicException with the message of "Bad Data". Basically above code is the part of a web service. I am not concerned with the above code. I just want to provide some security feature to my web service. If it can be done through some other easy way, that's also welcome. Please guide me in this regard... Wasif Ehsan.

    C# security wcf data-structures help tutorial

  • Check box Databinding problems
    M malikjhangirahmed hotmail com

    Hi, I have a problem with checkbox. Actually i have a form on which there are two grids, two radio buttons and a check box. Basically when i databind the check box and/or radio buttons, the other controls dont work properly. Specially when adding new rows to grids(Which are added by clicking NEW button on the tool bar) the CURRENT row does not get to the new row. And also the only textbox does not become blank when we click NEW. I know there is some problem with Checkbox databinding but i really dont know what that problem is and how to remove that problem. Please tell me if any one know about that... Regards, Wasif Ehsan, Software Engineer. -- modified at 9:25 Saturday 6th May, 2006

    C# help tutorial

  • Databinding Problem
    M malikjhangirahmed hotmail com

    Hi, I have two grids and a text box on a form. One grid is the parent & other is the child and two grids are related to each other through a DataRelation object. Whereas the text box is bound to one of the columns of the parent. The only thing that we can add in the parent grid is in its only single column through text box. The problem is that when i try to add new row to the parent grid, the text box does not become blank which it should. Moreover any recors which we add to the child grid dont get updated to the data sources. Any suggestions, solutions etc... Regards, Wasif Ehsan.

    C# css help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups