Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP Classic to ASP.Net

Status
Not open for further replies.

Trusts

Programmer
Feb 23, 2005
268
US
Hi,

I am converting an app. There is a lot of inline code in the Classic version.

Tables that are filled in the Classic code I can replace with grids. That's OK.

What I am mulling over is what to do with conditional code. For example:

<%if rsLast10.recordcount > 10 then%><a href="welcome.asp?show=<%= rsLast10("clientID")%>

Is there a way to move the conditional logic to some databound control (I don't think so). So my next thought is that all the code like has to go into the Load event, and fill up Divs or whatever.

Any thoughts/ideas/approaches??

Thanks!
KB



 
Yes you can put it into a databound control. It will go in the data bound event (for example, a GridView will have a data bound event named RowDataBound).


-------------------------------------------------------

Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Delivering professional ASP.NET solutions
[URL unfurl="true"]http://weblogs.asp.net/marksmith[/url]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top