D
Dan
I started coding with ASP.Net a little while ago and am trying to find the
right balance of when to use classic ASP (<%...%>) style scripting. I
originally tried to code all server-side logic with the code-behind page,
with certain databinding exceptions (repeater control etc.), but now am
reconsidering that approach.
For example, I want to show different columns in a list on a form depending
on what filters the user selects. Lets say the data is baseball players and
I want to show pitching stats if the list is for pitchers vs batting stats
for everyone else. I essentially have 3 options (I'm sure there are more
but I can only see 3).
1) Have multiple WebForms for each column set to be displayed (Pitching and
Batting).
2) Use a server-side table and do all the logic and html building in the
code-behind page.
3) Use a repeater (or similar control) but do classic <%...%> style
scripting to determine what columns show.
I'm guessing that 2) is the best because it is early bound and handles the
logic on the same WebForm, but is there a better way? When is it considered
ok or desirable to use <%...%>?
Thanks in advance,
Dan
right balance of when to use classic ASP (<%...%>) style scripting. I
originally tried to code all server-side logic with the code-behind page,
with certain databinding exceptions (repeater control etc.), but now am
reconsidering that approach.
For example, I want to show different columns in a list on a form depending
on what filters the user selects. Lets say the data is baseball players and
I want to show pitching stats if the list is for pitchers vs batting stats
for everyone else. I essentially have 3 options (I'm sure there are more
but I can only see 3).
1) Have multiple WebForms for each column set to be displayed (Pitching and
Batting).
2) Use a server-side table and do all the logic and html building in the
code-behind page.
3) Use a repeater (or similar control) but do classic <%...%> style
scripting to determine what columns show.
I'm guessing that 2) is the best because it is early bound and handles the
logic on the same WebForm, but is there a better way? When is it considered
ok or desirable to use <%...%>?
Thanks in advance,
Dan