当前位置:首页 > 技术问答集
firefox

SetLocalVariable 是干什么用的

 所属目录:asp.net   |   类型:技术问答   |   时间:2007-05-12
 问题:

dropdownlist的selecteditem.text总为第一条的内容  
  我把dropdownlist的数据绑定放在if(!ispostback){}中了也还是不行  
  代码:  
   
  private   void   page_load(object   sender,   system.eventargs   e)  
  {  
                    try  
                    {  
                    db.openconnection();  
  if(!ispostback)  
  {  
  bindgrid();  
  }  
  }  
   
  catch(system.exception   ex)  
  {  
  response.write(ex.message.tostring());  
  return;  
  }  
  }  
   
  public   void   bindgrid()//绑定数据库  
  {  
  try  
  {  
  db.getdatabind("select   *   from   systembulletintype",out   view);  
  typelist.datasource=view;  
  typelist.datavaluefield="sbulletintypename";  
  typelist.databind();  
  }  
   
  catch(system.exception   ex)  
  {  
  response.write(ex.message.tostring());  
  return;  
  }  
  }  
   
 

· 网友精彩回答:

发表者:jimu8130(虚荣心发作了,想得到msmvp称号发疯了)

datatextfield怎么没有设置?

.
处理 SSI 文件时出错
© 2006-2008 All Rights Reserved