Trying to understand...

  • Thread starter Thread starter Paul K
  • Start date Start date
P

Paul K

I'm trying to understand how to implement logic I
currently have in an ASP application in an ASP.NET
application.

In ASP I have an entry application that draws an html
table for a specified week. The columns are the days for
the week and the rows are activities. The day being
currently modified has textboxes and textareas in each
cell.

Currently, the ASP application uses javascript to iterate
through recordsets returned via traditional ado to create
the necessary tags.

According to my understanding of ASP.NET, it would be
better to move the tag creation logic to a code behind
file instead of using javascript in the page.

My question is:

If I do move the code to a code behind file, how do I
access the buffer containing the code? Using COM I could
just create the object and have the object return the
buffer, but I want to use managed components. It
occurred to me that I could just do all of the page
creation code in the code behind files, but that approach
seems kind of...weird.

Any help would be greatly appreciated!

Paul K
 
One possible solution is to just query the database and bind the result to a
datagrid. The datagrid takes care of the rendering so you don't need any
javascript. To enter information you will need to add an edit button to take
care of editing. You can find a lot of information on this very straight
forward approach at www.dotnet247.com
regards
 
Alvin,

I figured out what I needed to do. I didn't realize
at first that I could just call a method in the code
behind file from javascript.

Paul K
 
Back
Top