Click here to Skip to main content
15,892,537 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# and old "C" Dlls Pin
LobsterDK8-Aug-05 9:17
LobsterDK8-Aug-05 9:17 
GeneralChange ScrollBar Color for ListView Pin
blueguitar18-Aug-05 5:54
blueguitar18-Aug-05 5:54 
GeneralRe: Change ScrollBar Color for ListView Pin
Guffa8-Aug-05 7:18
Guffa8-Aug-05 7:18 
GeneralRe: Change ScrollBar Color for ListView Pin
Alomgir Miah8-Aug-05 8:01
Alomgir Miah8-Aug-05 8:01 
QuestionHow to create a Bitmap from a DataGrid Pin
Rick Beideman8-Aug-05 5:40
Rick Beideman8-Aug-05 5:40 
GeneralProblems with Designer executing property's code Pin
Stephen Caldwell8-Aug-05 3:45
Stephen Caldwell8-Aug-05 3:45 
GeneralRe: Problems with Designer executing property's code Pin
leppie8-Aug-05 4:08
leppie8-Aug-05 4:08 
GeneralWebService problem Pin
Dario Solera8-Aug-05 3:41
Dario Solera8-Aug-05 3:41 
Hi all.

I have a strange problem with Webservices:

In a webmethod I modify the value of a variable (string) inside an instance of a class that I created. When the webmethod returns, the change of the string is lost, and it returns to its initial value.

a concrete example

class MyClass {
private string s;
public string String {
get { return s; }
set { s = value; }
}
}

private MyClass data = new MyClass();

[WebMethod()]
public MyMethod(string s) {
data.String = s;
// Consume data.String -> correct value
}

private void otherMethod() {
// Consume data.String -> WRONG VALUE
}

The webservice calls MyMethod().

In a successive call to another webmethod, otherMethod() is called and the data.String value is wrong!!!

I tries to use methods Set() Get() instead of the public property but nothing changes.

Maybe I don't know an important thing???

Any help will be very ... HELPFUL!
GeneralRe: WebService problem Pin
leppie8-Aug-05 4:12
leppie8-Aug-05 4:12 
GeneralRe: WebService problem Pin
Dario Solera8-Aug-05 4:15
Dario Solera8-Aug-05 4:15 
GeneralComboBox Pin
zaboboa8-Aug-05 3:11
zaboboa8-Aug-05 3:11 
GeneralRe: ComboBox Pin
Alomgir Miah8-Aug-05 3:23
Alomgir Miah8-Aug-05 3:23 
GeneralRe: ComboBox Pin
zaboboa8-Aug-05 3:25
zaboboa8-Aug-05 3:25 
GeneralRe: ComboBox Pin
Alomgir Miah8-Aug-05 4:02
Alomgir Miah8-Aug-05 4:02 
GeneralRe: ComboBox Pin
Mohamad Al Husseiny8-Aug-05 4:05
Mohamad Al Husseiny8-Aug-05 4:05 
GeneralCreating DTS Packages in C# Pin
JMichael24688-Aug-05 3:05
JMichael24688-Aug-05 3:05 
GeneralRe: Creating DTS Packages in C# Pin
JMichael24688-Aug-05 8:27
JMichael24688-Aug-05 8:27 
Generalreading XML from a string Pin
Mridang Agarwalla8-Aug-05 3:01
Mridang Agarwalla8-Aug-05 3:01 
GeneralRe: reading XML from a string Pin
Anonymous8-Aug-05 4:14
Anonymous8-Aug-05 4:14 
GeneralMultiple calls to same function Pin
Dwayner798-Aug-05 2:33
Dwayner798-Aug-05 2:33 
GeneralRe: Multiple calls to same function Pin
Alomgir Miah8-Aug-05 10:44
Alomgir Miah8-Aug-05 10:44 
GeneralRe: Multiple calls to same function Pin
Dwayner799-Aug-05 5:21
Dwayner799-Aug-05 5:21 
QuestionInsert Null to Foxpro table with DataSet? Pin
Member 18559638-Aug-05 1:49
Member 18559638-Aug-05 1:49 
GeneralWebBrowser security level Pin
gnjunge8-Aug-05 1:27
gnjunge8-Aug-05 1:27 
Generalcreating a programming software package Pin
Atmadarshini8-Aug-05 1:17
Atmadarshini8-Aug-05 1:17 

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.