RcBuilder@walla.com
call centre: 054-5614020

custom config section example

Posted by: RcBuilder  /   Category: configuration / Custom section / IEnumerable / Serialize / XML   /   No Comments
01
Oct
2014

custom config section example namespace ConfigSections // this class should define the xml structure of your custom config section in order to get the // ability to deSerialize it public class MTGroups : ConfigurationSection, IEnumerable<MTGroups.Key> { public MTGroups.Group keys { get { return (MTGroups.Group)this; } } public IEnumerator<MTGroups.Key> GetEnumerator() { foreach (MTGroups.Key k in this.keys) yield return k; } IEnumerator IEnumerable.GetEnumerator() { throw new NotImplementedException(); } public class Group : ConfigurationElementCollection { protected.

Read more

Predicate query

Posted by: RcBuilder  /   Category: IEnumerable / Interfaces / Lambda / Linq / Predicate / SOURCE CODE   /   No Comments
23
Sep
2014

Predicate query user entity public class User{ public int Id{set;get;} public string Name{set;get;} public byte Age{set;get;} public static List<User> users = new List<User>() { {new User(){ Name = "ROBY", Age= 30, Id = 1}}, {new User(){ Name = "ISAAC", Age= 20, Id = 2}}, {new User(){ Name = "AVI", Age= 17, Id = 3}}, {new User(){ Name = "RON", Age= 40, Id = 4}}, {new User(){.

Read more

Asp.Net Session in ashx file

Posted by: RcBuilder  /   Category: BUGS / Generic Handlers / Interfaces / IRequiresSessionState / SOURCE CODE   /   No Comments
23
Sep
2014

Asp.Net Session in ashx file Problem Asp.Net Session is null in ashx file (generic handler) Solution You have to "implement" either IRequiresSessionState or IReadOnlySessionState, with former providing full access to session, and the latter providing read-only access. using System.Web.SessionState; USING using System.Web.SessionState; public class MyHandler : IHttpHandler, IRequiresSessionState{ var user =.

Read more
  • פיתוח מערכות
  • פתרונות טכנולוגים
  • קידום אתרים
  • בניית אתרים