I am creating 2 extension methods for a textbox, which need to store a value and get the value, same like property, unfortunately dotnet 3.5 doesnt support extension property, so created two extension method for set and get, I am so confusing where should I store the value, like session, cache or anything else, but my recommendation to store in the viewstate object. how can I store value to viewstate.
example my code look like
public static class clsExt
public static bool getValue(this TextBox tb)
public static void setValue(this TextBox tb, bool value)
Viewstate[tb.ID] = value;
Its not good idea to store session or cache, bcoz its should store only in the pagelevel, how can do this? How other textbox property storing? Could any one help on this issue please?
Thanks in advance.
View Complete Post