Click here to Skip to main content
15,912,329 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: plz answer urgently.......Pop-up window in ASP.NET Pin
thomas_joyee28-Jul-06 17:45
thomas_joyee28-Jul-06 17:45 
AnswerRe: plz answer urgently.......Pop-up window in ASP.NET Pin
Guffa28-Jul-06 22:25
Guffa28-Jul-06 22:25 
QuestionJavascript does not work on asp.net 2 page Pin
Rookie28-Jul-06 12:19
Rookie28-Jul-06 12:19 
AnswerRe: Javascript does not work on asp.net 2 page Pin
Guffa28-Jul-06 12:50
Guffa28-Jul-06 12:50 
GeneralRe: Javascript does not work on asp.net 2 page Pin
Rookie28-Jul-06 13:17
Rookie28-Jul-06 13:17 
GeneralRe: Javascript does not work on asp.net 2 page Pin
Guffa28-Jul-06 22:10
Guffa28-Jul-06 22:10 
QuestionGeneric query database and sort out returned DataSet? Pin
toptone7828-Jul-06 9:43
toptone7828-Jul-06 9:43 
AnswerRe: Generic query database and sort out returned DataSet? Pin
Ista28-Jul-06 9:57
Ista28-Jul-06 9:57 
toptone78 wrote:
Has anyone ever had this problem / created a similar class / knows what i'm talking about?


I doubt anyone here does. And they will reply with something about ado.net too!Laugh | :laugh:

So anyways you can create a player class and enclose it inside generic list
List<PlayerClass>



public class PlayerSort : ICompare

then when sort just pass in a new instance of that class

also populating classes;
lets say you have this

select PlayerName from Players

you create a class like this

public class Players
{
public string PlayerName{ get; set; ... }
}

then using reflection you can store the name you get from a reader

PropertyInfo prop = this.GetType().GetProperty(string name from the read for the column );
prop.SetValue();

this will load your entire object

you can do the same for Updating and Loading with reflection.

So while people are writing all types of code, you only need 4 lines of code to handle all database calls

And ADO.NET sucks by the way. Its bulky, huge, slow, and a waste of resources. <-- I'm sure that will start a good forumnLaugh | :laugh: Besides ADO.NET is just a do all IListSource.

And by the way, in c# 3.0 it does this anyways. With the new QLink and XLink. Unless the programmer is from a Java background they dont think this way

Nick

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

1 line of code equals many bugs. So don't write any!!

My mad coder blog

GeneralRe: Generic query database and sort out returned DataSet? Pin
toptone7828-Jul-06 11:31
toptone7828-Jul-06 11:31 
GeneralRe: Generic query database and sort out returned DataSet? Pin
Ista28-Jul-06 18:41
Ista28-Jul-06 18:41 
GeneralRe: Generic query database and sort out returned DataSet? Pin
toptone7829-Jul-06 5:22
toptone7829-Jul-06 5:22 
GeneralRe: Generic query database and sort out returned DataSet? Pin
Ista29-Jul-06 7:11
Ista29-Jul-06 7:11 
GeneralRe: Generic query database and sort out returned DataSet? Pin
Ista29-Jul-06 7:24
Ista29-Jul-06 7:24 
GeneralRe: Generic query database and sort out returned DataSet? Pin
toptone7829-Jul-06 8:50
toptone7829-Jul-06 8:50 
GeneralRe: Generic query database and sort out returned DataSet? Pin
toptone7829-Jul-06 12:11
toptone7829-Jul-06 12:11 
GeneralRe: Generic query database and sort out returned DataSet? Pin
Ista29-Jul-06 15:41
Ista29-Jul-06 15:41 
GeneralRe: Generic query database and sort out returned DataSet? Pin
toptone7830-Jul-06 0:25
toptone7830-Jul-06 0:25 
GeneralRe: Generic query database and sort out returned DataSet? [modified] Pin
Ista31-Jul-06 4:48
Ista31-Jul-06 4:48 
GeneralRe: Generic query database and sort out returned DataSet? Pin
toptone781-Aug-06 4:53
toptone781-Aug-06 4:53 
QuestionWant no postback on imagebutton click Pin
Vijaykumar Rajaram28-Jul-06 7:34
Vijaykumar Rajaram28-Jul-06 7:34 
AnswerRe: Want no postback on imagebutton click Pin
Ista28-Jul-06 8:44
Ista28-Jul-06 8:44 
AnswerRe: Want no postback on imagebutton click Pin
eggsovereasy28-Jul-06 8:51
eggsovereasy28-Jul-06 8:51 
QuestionAccess denied - urgent Pin
dansoft28-Jul-06 6:58
dansoft28-Jul-06 6:58 
AnswerRe: Access denied - urgent Pin
ToddHileHoffer28-Jul-06 7:03
ToddHileHoffer28-Jul-06 7:03 
GeneralRe: Access denied - urgent Pin
dansoft28-Jul-06 7:16
dansoft28-Jul-06 7:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.