namespace exchange { using system; using system.web.ui; using system.web.ui.webcontrols; using system.data; using system.data.sqlclient; using system.web; using system.security.cryptography;
public class newjoin : system.web.ui.usercontrol {
protected datalist newjoinlist; public newjoin() { this.init += new system.eventhandler(page_init); }
protected void loaddata() { string strsql = "select top 10 id,left(corpname,13) as corpname from crop order by id desc"; mydataop mdo = new mydataop(strsql); dataset ds = mdo.createdataset(); newjoinlist.datasource = ds.tables[0].defaultview; newjoinlist.databind(); mdo.close(); }