ASP.NET 2.0 BasicsIf you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 2.0 Basics section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
I have a form called "formStudentDemographics". Is is bound to datasource "sqlStudentDemographics". There is a textbox on the insert section of the form call "studentNameID". The format for the field in the DB is int. This textbox has the following code for binding it to the database:
When the form loads to the insert section, I need the "studentNameID" to automatically be filled in with or equal to "IDStudentName" which is in the dropdownlist "ddlStudentNamefilter". I've provided the code for that dropdownlist below: