|
|||||||
New to SitePoint Forums? Register here for free!
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
SitePoint Articles
Join Date: Apr 2001
Posts: 0
|
Article Discussion
This is an article discussion thread for discussing the SitePoint article, "Using the ASP.NET Repeater Control"
|
|
|
|
|
|
#2 | |
|
SitePoint Guru
![]() ![]() ![]() ![]() ![]() Join Date: Sep 2004
Location: NY, USA
Posts: 710
|
Repeaters are cool, no doubt, as are datagrids and datalists.
Databinding in .NET is a real pleasure, Makes life easy compared to procedural scripting languages such as PHP or old classic ASP. But this bit I really don't understand: Quote:
Also if using MS-SQL Server... why wouldn't you use functions that call stored procedures and return an sqldatareader (as part of the database class), instead of sending raw SQL strings from random pages to the database? Maybe I'm nitpicking and maybe you illustrated in this way for simplicity's sake. But to me that's just bad practice. |
|
|
|
|
|
|
#3 |
|
SitePoint Guru
![]() ![]() ![]() ![]() ![]() Join Date: Oct 2004
Location: Portugal, Lisboa
Posts: 822
|
Instead of :
NavigateUrl='<%# "mainframeset.aspx?CatType=" + DataBinder.Eval(Container.DataItem,"Sub_Category_ID")%>" You can use another overload of DataBinder.Eval <%# DataBinder.Eval(Container.DataItem, "Sub_Category_ID", "mainframeset.aspx?CaType={0}") %>, much cleaner. {0}, gets replacled with the value of "Sub_Category_ID", and DataBinder.Eval returns mainframeset.aspx?CatType=Sub_Category_ID_Value |
|
|
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
|
All times are GMT -7. The time now is 01:42.








Hybrid Mode
