How to go about converting this classic asp to asp.net -


I have some classic ASP code that needs to be changed in asp.net. So far, I have tried to get it through Detroitder and Repeaters and there is no luck because the menu has 4 different record sets through it, going with the menu before going to the next record.

Can you please tell me which method you will use to convert this code ... i.e. Datreaders? Dataset? e.t.c?

Thank you

Aha ... it's a bit slow and repeat code. (I'm sorry to be blunt ...)

You can read all the data using datatelle (dataset and an SQL Data Adapter) so that you can reuse it and you do not have it To run a query in each level and each item in the menu. In this way you can call a single database instead of a lot of them, and the database call is exactly the bottle neck in this code.

You can use recycling to get different levels instead of repeating the same code repeatedly.

To create elements of the menu, you have several options, one is to put a placeholder in the page and adding them to each other is to create a tree of control to control the collection. Another option is to simply create HTML code in stringbuilder, and keep the result in a lexical control.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -