Last post Apr 26, 2012 12:32 AM by kelviyean
Apr 25, 2012 10:27 PM|dj_kopral|LINK
it's been a long time since i've done this before so i'm sorry if this question is too stupid..
i wonder if there is a way to programmatically setup the class for ObjectDataSource.
so i've built this class, it contains DataType and DataMethod( the selectMethod which return List<>)
the thing is i create a constructor for this class... it's dbname, username and password
i don't allow empty constructor so without the constructor then the class will throw an exception.
the only property in ObjectDataSource that i know for defining the class is "typeName"...
but typeName can only be filled with classname so :
i wonder if there is away to do it like this typeName="classname("mydbname","myuser","mypassword")"
or worst case scenario... do i have to modify the class so the dbname, username, password hard coded
help.. help... help... :P
Apr 26, 2012 12:32 AM|kelviyean|LINK
Follow the threads below. It will help you.