<ASP:DataGrid id="MyDataGrid" runat="server" OnItemDataBound="check"
> void check(Object o,DataGridItemEventArgs e){
DropDownList drop = (DropDownList)e.Item.FindControl("edit_state");
if(drop!=null){
}
}
> void check(Object o,DataGridItemEventArgs e){
DropDownList drop = (DropDownList)e.Item.FindControl("edit_state");
if(drop!=null){
}
}
解决方案 »
- 判断101-200之间有多少个素数,并输出所有素数
- 验证控件为什么会失效?还没有发布前的源文件,vs2005下载的
- 关于 .net下的测试!
- asp.net可以限制页面头文件比如cookie的大小吗,还是IIS可以控制
- 急,sql问题,如何在使用execute方法时,直接调用用语句声明好的变量?
- 如何在DetailsView中实现CheckBoxList的编辑问题?
- win2003 声音问题 (困扰我很久的小问题,高手帮帮忙!)
- 网页跳转的问题?
- 如何动态隐藏web控件?
- 对这个Crystal Report问题谁能给我解答?????必定给分!!!!
- 关于active控件的事件问题.我用VB写了一个控件,将其放入asp.net环境,发现我自定的事件都没有了!!!!!应如何解决?
- aspx页如何与其内包含的ascx控件共享同一个dataset实例?
protected void check(Object o,DataGridItemEventArgs e){
DropDownList drop = (DropDownList)e.Item.FindControl("edit_state");
if(drop!=null)
{
drop.DataSource = ...;
drop.DataTextField = "id";
drop.DataBind();
}
}