我页面放了一个datalist,我有一个编辑按钮,点击编辑后进入编辑列,编辑列里面我放有一个我自己写的用户控件(上传用的),ascx格式的。
protected void DataList1_UpdateCommand(object source, DataListCommandEventArgs e)
{
int intID = Convert.ToInt32(e.CommandArgument);
}
页面是这样的上是这样的<td width="30">
<wlg:MyFileUpload ID="MyFileUpload1" runat="server" FileSize="307200" SavePath="~/Upload/CPimg/" ExFilterpattrn="(jpg|gif|bmp|png)" />
</td>
怎么才能拿到我的用户控件的对象来使用他的方法
protected void DataList1_UpdateCommand(object source, DataListCommandEventArgs e)
{
int intID = Convert.ToInt32(e.CommandArgument);
}
页面是这样的上是这样的<td width="30">
<wlg:MyFileUpload ID="MyFileUpload1" runat="server" FileSize="307200" SavePath="~/Upload/CPimg/" ExFilterpattrn="(jpg|gif|bmp|png)" />
</td>
怎么才能拿到我的用户控件的对象来使用他的方法
解决方案 »
- 求个FCK在线编辑器 最好是配置好的 。然后要改的地方给个说明谢谢
- 关于FCKeditor的问题
- filefield问题
- 关于web开发界面排版的问题
- 关于数据库自定义函数—怎样随机生成密码
- 怎样通过按钮事件再次引发页面回发?也就是点击一下按钮实际是回发页面两次
- 菜鸟请教:window.open()指定了窗口名称怎么不管用???
- 如何在asp.net里用odbc连接数据库?
- 高分请教达人asp.net开发b/s软件全程问题
- 不會到服務器執行Text_change事件,怎樣辦﹖
- 请前辈推荐一些asp.net做管理系统的一成熟工具! 小弟先感谢前辈了!
- 使用AJAX的updatepanel后的问题
private MyFileUpload MyFileUpload1 = new MyFileUpload();然后就可以使用了。