扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
作者:朱先忠编译 来源:天极开发 2007年11月3日
关键字:
<appSettings> <add key="ConnectionString" value="Data Source=(local);Initial Catalog=Northwind;User Id=sa;Password=xxx;" /> </appSettings> <httpHandlers> <add verb="POST,GET" path=" type="Ajax.PageHandlerFactory, Ajax " /> </httpHandlers> |
private void Page_Load(object sender, System.EventArgs e) { if(!Page.IsPostBack) { WebDataGridUserControl.MainTableName="suppliers"; WebDataGridUserControl.DetailTableName = "products"; //这些可选的值将会覆盖默认的属性 WebDataGridUserControl.Height =300; WebDataGridUserControl.Width = 780; WebDataGridUserControl.Editable = 1; WebDataGridUserControl.PageSize = 4; } } |
[Ajax.AjaxMethod] public ArrayList InitializeInfo() { ... // int pageable=1; masterDetail =1;editable = 1;pageSize=10; height=300 string [] FunctionProperty = {"1", "1", gEdit, gPageSize, gridHeight, gridWidth}; //={}-没有可用控件,0-标签,1-图像,2-超级链接,3-文本框,4-复选框,5-下拉列表框 string [] ColumnControlType = {"0","2","3","3","0","3","4"}; //显示哪些列(3,4,5,7)是可编辑的 string [] ColumnEditable = {"0","0","1","1","1","0","1"}; //下列属性仅仅用于非页面支持情况下 //下列一句用于把第3,4,5列编辑按钮的尺寸重新设置为10,10,10 string [] ResetIfNoEditable = {"0","0","10","10","10", "0"}; string [] CustomizedHeadZize={"68","140","120","120","120", "0"}; //当没有页面支持设置时,需要列宽度;你应该把一列设置为"0" string [] columnWidth ={"68","140","120","120","120","0"}; ... return al; } [Ajax.AjaxMethod] public ArrayList GetHeadArray() { ... //这个数组应该匹配编辑字段-column3=Decimal,column4=Email,column5=Number string [] ValidateType = {"","","Decimal","Email","Number"}; //赋值ColumnDisplayName = {};如果不使用定制显示名 string [] ColumnDisplayName = {}; ... } |
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者