I use to bind years ago, but overall in the end, the bindings have to be recreated if you move your project to another server or something. And it was so slow, because the binding code has to be created every time it's used.
So you create a function to load the data, and package the data in a class or structure, and loop through the class or structure records. Something like below code, that's just off the top of my head in vb, but you should get the idea.
Public p_StateName asstringPublic p_StateAbbr asstringEndStructurePublicSub load_States()
Dim p_stateCount asInteger = get_StateNames_Count()
Dim sSn(p_stateCount) as structure_States
Dim dwExitCode asInteger = load_StateNames(sSn)
if (0 = dwExitCode) thenFor idx asInteger = 0to sSn.length - 1
ddl_StateNames.Item.add(new ListItem(sSn(idx).p_StateName, sSn(idx).p_stateAbbr))
NextendifendSubPublicFunction load_StateNames(ByRef s_StateNames() as structure_States) AsIntegerDim dwExitCode asInteger = 2'Do Database Readreturn dwExitCode
I have a great opportunity at work to get to learn ASP.NET. One of the project I need to work on is to design a web form for software registration. However, I do not know ASP.NET that well... actually not at all. I was wondering if any of you can recommend either books or web sites that you found that was helpful in learning ASP.NET.
By the way, I am not asking for a Google search of "Asp.net Tutorials" what I am asking is what tutorials have you found helpful in learning ASP.Net.
Not sure if that helps at all but I am using VS2010 and using C# for the behind code.
However, in working with a lot of developers over the years, you don't want to focus on the specifics of ASP.Net, which is just a server-side HTML-generator, essentially. Since it's generating HTML, and the browser only understands HTML, an ASP.Net developer who isn't an EXPERT in HTML is going to have difficulties. So, my suggestion, to become a good ASP.Net developer, is to go learn HTML5/CSS3/JQuery and how to build pages using only that stuff. THEN, you will be competent at programming the ASP.Net server to emit HTML pages.
One of the best tutorial sites on the web is Codecademy - interactive tutorials which run automated tests against your code to check your work. I've done almost all of their tutorials on various languages, and I highly recommend doing their basic web development tutorials, AND the advanced ones about JQuery and you should also pick an API like Parse, and learn that too. This will give you a holistic view of current web programming languages, and a simple introduction to all of them.