R
Ralf Müller
Hi all,
I'm trying to implement the interface IPostBackDataHandler in a composite
control in order to raise events depending on changes to the postback data.
The examples on how to implement "LoadPostData" given by the msdn or
different books all the same. They are all based on a custom TextBox with
the following code in "LoadPostData":
public bool LoadPostData(string postDataKey, NameValueCollection
postCollection) {
string postedValue = postCollection[postDataKey];
if (!Text.Equals(postedValue)) {
Text = postedValue;
return true;
}
return false;
}
But I am developing a composite control and my postCollection just holds the
following three keys __EVENTTARGET, __EVENTARGUMENT, __VIEWSTATE. I can't
figure out why. I'm afraid this is really a newbie question but perhaps this
makes it easier for you to help me...
regards, ralf
I'm trying to implement the interface IPostBackDataHandler in a composite
control in order to raise events depending on changes to the postback data.
The examples on how to implement "LoadPostData" given by the msdn or
different books all the same. They are all based on a custom TextBox with
the following code in "LoadPostData":
public bool LoadPostData(string postDataKey, NameValueCollection
postCollection) {
string postedValue = postCollection[postDataKey];
if (!Text.Equals(postedValue)) {
Text = postedValue;
return true;
}
return false;
}
But I am developing a composite control and my postCollection just holds the
following three keys __EVENTTARGET, __EVENTARGUMENT, __VIEWSTATE. I can't
figure out why. I'm afraid this is really a newbie question but perhaps this
makes it easier for you to help me...
regards, ralf