Ejemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         this.DropDownList1.DataSource     = UserTypeManager.UserTypeDrop();
         this.DropDownList1.DataTextField  = "TypeName";
         this.DropDownList1.DataValueField = "UserTypeID";
         this.DropDownList1.DataBind();
     }
 }
Ejemplo n.º 2
0
 public void ProcessRequest(HttpContext context)
 {
     context.Response.ContentType = "text/plain";
     context.Response.Write(JsonConvert.SerializeObject(UserTypeManager.UserTypeDrop()));
 }