Ejemplo n.º 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        List <publisher> pubs = Pubs.GetPublishers();

        ddlPub.DataSource     = pubs;
        ddlPub.DataTextField  = "pub_name";
        ddlPub.DataValueField = "pub_id";
        ddlPub.DataBind();
    }
Ejemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         List <publisher> pList = Pubs.GetPublishers();
         ddlPubs.DataSource     = pList;
         ddlPubs.DataTextField  = "pub_name";
         ddlPubs.DataValueField = "pub_id";
         ddlPubs.DataBind();
         //now repeat the above for jQuery tab
         ddlPubsJquery.DataSource     = pList;
         ddlPubsJquery.DataTextField  = "pub_name";
         ddlPubsJquery.DataValueField = "pub_id";
         ddlPubsJquery.DataBind();
         //bind initial data grid to the default publisher in the DDL
         RefreshRoyalties();
         RefreshContacts();
     }
 }