Click here to Skip to main content
15,891,136 members
Home / Discussions / C#
   

C#

 
Questionoverride issue Pin
Brendan Vogt11-Jul-07 4:50
Brendan Vogt11-Jul-07 4:50 
AnswerRe: override issue Pin
Luc Pattyn11-Jul-07 4:57
sitebuilderLuc Pattyn11-Jul-07 4:57 
AnswerRe: override issue Pin
CPallini11-Jul-07 5:04
mveCPallini11-Jul-07 5:04 
QuestionString parameter is not equal Pin
DyOswald11-Jul-07 4:28
DyOswald11-Jul-07 4:28 
AnswerRe: String parameter is not equal Pin
Luc Pattyn11-Jul-07 5:01
sitebuilderLuc Pattyn11-Jul-07 5:01 
GeneralRe: String parameter is not equal Pin
DyOswald12-Jul-07 5:15
DyOswald12-Jul-07 5:15 
GeneralRe: String parameter is not equal Pin
Luc Pattyn12-Jul-07 5:29
sitebuilderLuc Pattyn12-Jul-07 5:29 
GeneralRe: String parameter is not equal Pin
DyOswald13-Jul-07 3:36
DyOswald13-Jul-07 3:36 
Thanks for the reply, Luc Pattyn.

Yes those strings are indeed different, and I'm aware of that.
But the real problem is when I use those strings as a parameter value in UploadData(string data).
My function works just fine if I use variabel like string data = "Blablabla" or string data = TextBox1.Text or string data = "Bla\nbla\nbla.", they're all return true.
But if I use string data = ds.GetXml(), my function returns false.
Is the string generated with GetXml() has differences from the usual string?
Correct me if I was wrong, but aren't they both string type?
Please help me on this...


WS Code:
[WebMethod]<br />
public int MyWebFunction(string data)<br />
{<br />
   int retVal = data.GetHashCode();<br />
<br />
   ... rest of my code ...<br />
<br />
   return retVal;<br />
}



Client-Side Code:
public bool DataUploader(string data)<br />
{<br />
   bool retVal;<br />
   int hashCode;<br />
<br />
   MyWebService ws = new MyWebService();<br />
   hashCode = ws.MyWebFunction(data);<br />
<br />
   if (hashCode == data.GetHashCode())<br />
   {<br />
      retVal = true;<br />
   }<br />
   else<br />
   {<br />
      retVal = false;<br />
   }<br />
<br />
   return retVal;<br />
}



I would be very grateful if you could email me the solution (orkaholic@gmail.com).
Again, thanks for your reply Luc.

I'll make sure they remember my name a hundred years from now!

QuestionDistribution license for Interop.ShockWaveFlashObjects.DLL Pin
Tapas Das11-Jul-07 3:29
Tapas Das11-Jul-07 3:29 
AnswerRe: Distribution license for Interop.ShockWaveFlashObjects.DLL Pin
Pete O'Hanlon11-Jul-07 3:35
mvePete O'Hanlon11-Jul-07 3:35 
QuestionRefresh DataGrid with Latest Values Pin
ramdil11-Jul-07 3:02
ramdil11-Jul-07 3:02 
AnswerRe: Refresh DataGrid with Latest Values Pin
Drew McGhie11-Jul-07 4:08
Drew McGhie11-Jul-07 4:08 
GeneralRe: Refresh DataGrid with Latest Values Pin
ramdil11-Jul-07 5:25
ramdil11-Jul-07 5:25 
GeneralRe: Refresh DataGrid with Latest Values Pin
Drew McGhie11-Jul-07 7:27
Drew McGhie11-Jul-07 7:27 
QuestionAutoCompleteStringCollection + Specified cast is not valid Pin
Nouman Bhatti11-Jul-07 3:00
Nouman Bhatti11-Jul-07 3:00 
AnswerRe: AutoCompleteStringCollection + Specified cast is not valid Pin
Scott Dorman11-Jul-07 3:29
professionalScott Dorman11-Jul-07 3:29 
QuestionIPC-Remoting call hangs Pin
BhaaL-san11-Jul-07 2:52
BhaaL-san11-Jul-07 2:52 
AnswerRe: IPC-Remoting call hangs Pin
michalburger24-Aug-10 1:00
michalburger24-Aug-10 1:00 
GeneralRe: IPC-Remoting call hangs Pin
BhaaLseN24-Aug-10 6:37
BhaaLseN24-Aug-10 6:37 
QuestionXML serialization #2 Pin
ruanr11-Jul-07 2:50
ruanr11-Jul-07 2:50 
QuestionFile Conversion from CSV format Excel format in C# (I have to do Programatically) Pin
liyakhat_shahid11-Jul-07 2:34
liyakhat_shahid11-Jul-07 2:34 
AnswerRe: File Conversion from CSV format Excel format in C# (I have to do Programatically) Pin
Christian Graus11-Jul-07 2:37
protectorChristian Graus11-Jul-07 2:37 
GeneralRe: File Conversion from CSV format Excel format in C# (I have to do Programatically) Pin
liyakhat_shahid11-Jul-07 2:46
liyakhat_shahid11-Jul-07 2:46 
QuestionConvert string in DB to DateTime in .NET Pin
blackjack215011-Jul-07 2:19
blackjack215011-Jul-07 2:19 
AnswerRe: Convert string in DB to DateTime in .NET Pin
originSH11-Jul-07 2:21
originSH11-Jul-07 2:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.