Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: No subject given


Message #1 by renevazquez@c... on Thu, 18 Jul 2002 21:37:07 -0400
      Hi I am binding a html drop down list to one typed dataset that I 
     fill somewhere else. I call the fillddnParts() in the onload event of 
     my page. I have the html control named  ddnParts in the aspx page with 
     the directive runat = server.
     
     Is there something else that I must Do.
     
     
     
     protected System.Web.UI.HtmlControls.HtmlSelect ddnParts;
                
                public void fillDdnParts()
                {
                        dsPart tempDsPart = new bllPart().data;
                        ddnParts.DataSource = 
     tempDsPart.Tables["Part"].DefaultView;
                        ddnParts.DataTextField = "descr";
                        ddnParts.DataValueField = "partNo";
                        ddnParts.DataBind();
                }


  Return to Index