Advertisement
Advertisement
| 04.24.2008 at 11:45AM PDT, ID: 23351436 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: |
here is how i'm using:
i have 3 classes and classes have methods/properties
1) SuggustControl
2) SuggestItem
3) ColumnCollection
my SuggestControl is calling #2 and #3
here is my all classes looks like:
public class AutoSuggestMenuItem
{
public AutoSuggestMenuItem(string label, string value, string displaylabel) : this()
{
_label = label;
_value = value;
_displaylabel = displaylabel;
}
public string GetJSON()
{
XJsonWriter writer = new XJsonWriter();
writer.WriteNameValue("label", _label);
writer.WriteNameValue("displaylabel", _displaylabel);
writer.WriteNameValue("value", _value);
writer.WriteNameValue("isSelectable", _isSelectable);
writer.WriteNameValue("cssClass", _cssClass, true);
return writer.ToString();
}
}
[Serializable]
public class ColumnsCollection
{
public ColumnsCollection() { }
public ColumnsCollection(string HeaderText, Column.Align HeaderAlignment, Column.Align ItemAlignment, Unit Width, string DataField, Column.MatchType Match, bool isAutoSuggest, bool isVisible)
{
this._HeaderText = HeaderText;
this._HeaderAlignment = HeaderAlignment;
this._ItemAlignment = ItemAlignment;
this._Width = Width;
this._DataField = DataField;
this._Match= Match;
this._isAutoSuggest = isAutoSuggest;
this._isVisible = isVisible;
}
}
i add the server control to my .aspx page and in my .aspx page
<%@ Register Assembly="MySuggest" Namespace="MySuggest" TagPrefix="cc1" %>
<cc1: {i see all the classes (AutoSuggestMenuItem....ColumnsCollection }
i dont want to display the #2 and #3 classes in my .aspx page
i hope i explain clear enough.
|