问题标签 [detailsview]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
asp.net - 如何在 ASP.NET 的 DetailsView 中创建自定义按钮?
我是 ASP.NET 的新手。我只想问是否可以在 DetailsView 中创建按钮或超链接。我知道DetailsView中有Edit、Delete等,但我想为我自己的函数创建另一个按钮或超链接。
实际场景:我通过 ObjectDataSource 在临时 sql server 表中连接了一个 DetailsView。我需要做的是通过DetailsView检查/查看该表中的每个数据,如果我认为数据正确,我必须单击某个按钮/超链接将该数据(行)传输到该数据库中的另一个表。
请帮我...
c# - 在 DetailsView 中绑定 DropDownList
我在尝试从数据库中填充下拉列表时遇到问题。当我尝试设置数据源时,我找不到下拉控件,它位于 DetailsView 中,所以我认为它可能与它仅在处于编辑模式时才被创建有关。虽然在我编辑时它仍然说它处于当前模式,所以不确定那里发生了什么。
这是aspx文件中的代码:
这是来自后面的代码:
asp.net-mvc - 这个错误在 asp.net-mvc 中说明了什么?
我在 asp.net mvc 中有存储库类,它有这个,
我的控制器有这个详细的操作结果,
但为什么我得到这个错误,
The parameters dictionary contains a null entry for parameter 'id' of non-nullable type 'System.Int32' for method 'System.Web.Mvc.ActionResult Details(Int32)' in 'CrMVC.Controllers.MaterialsController'. To make a parameter optional its type should be either a reference type or a Nullable type.
Parameter name: parameters
任何建议...
asp.net-mvc - asp.net mvc 中的 URL 路由建议
我的一个视图页面中有一个操作链接
<%=Html.ActionLink("Details", "Details", new { id = Model.Id })%>
并将我重定向到具有这样http://localhost:1985/Materials/Details/2
而不是这样的 url 的页面我想将我的 url 作为http://localhost:1985/Materials/Details/steel
材料名称而不是 Id ...这可能吗......这是我的控制器操作方法,
编辑: 我正在迭代从 jsonresult 控制器返回的 json 对象....
我的路线是这样的,
asp.net-mvc - 'Details' in asp.net mvc routing doesn't seem to get removed
I am trying to remove Details
from http://localhost:1985/Materials/Details/2/Steel
but some how my route doesn't seem to work...
Edit:
placing the answer below in my route collection my index page failed to call to jsonresult controller method....
and my index page has a jquery function which uses the json result....
This jquery function doesn't seem to call the jsonresult controller method...... But if i specify Default
route first it works...
When inspected through firebug it shows this,
The parameters dictionary contains a null entry for parameter 'id' of non-nullable type 'System.Int32' for method 'System.Web.Mvc.ActionResult Details(Int32)' in 'CrMVC.Controllers.MaterialsController'. To make a parameter optional its type should be either a reference type or a Nullable type.<br>Parameter name: parameters
asp.net - 如何有条件地禁用详细信息视图数据绑定字段
我有一个 ASP.Net detailsview 控件。它的 DataSourceId 不同,我在 Page_load 中相应地设置它......(基于 LLBLgen 子类型,但这不是太重要)
我想这是我没有“得到”的页面生命周期泄漏抽象。
问题是我绑定到可能存在或不存在的字段,具体取决于数据源......
为了在某些条件下“禁用”绑定字段,我尝试将绑定字段包装在我在代码隐藏中设置为可见或不可见的面板中,但我仍然收到以下错误:
Sys.WebForms.PageRequestManagerServerErrorException:DataBinding:实体不包含名为“FilePrefix”的属性。
我在页面加载中更改了 detaislview.datasourceid ...在生命周期中可能为时已晚。
我不想绑定到该字段,因为新数据源不存在它,但它尝试这样做,但我得到了错误。
有任何想法吗?;)
[编辑]:按要求编码...
ASP,detailsview绑定栏:
代码隐藏:(确定数据源,detaislview 仅在回发时可见,因为网格显示在初始页面加载中。)
...
显示/隐藏面板:
c# - 获取 DetailsView 和 UpdatePanel 之间的控件 ClientID/UniqueID
我想知道如何在 Detailsview 控件 EditItemTemplate 元素中获取控件的 ClientID/UniqueID 以及何时将 DetailsViews 更改为编辑模式并且 DetailsView 在 AJAX UpdatePanel 内。如果没有 UpdatePanel,在 PostBack 期间我可以获得 ClientID 的控制权,但现在有了 UpdatePanel。
如您所见,EditItemTemplate 包含一个 Checkbox 控件。因此,当 Detailsview 更改为编辑模式时,我试图获取此复选框的 ClientID。我需要这个值来处理 Javascript。
捕捉事件ChangingMode/ChangedMode 不起作用;chkbox 为空:
也许我使用了错误的事件?有人可以给我一个提示吗?谢谢。
asp.net - EntityDataSource 中的默认日期时间参数
我有一个 ASP.Net DetailsView,绑定到一个 EntityDataSource 控件。我的 EntitySet 有一个 DateTime 属性,我想将它设置为DateTime 的默认值。 现在我不想在 DetailsView 上显示这个属性。我想我可以在我的 EntityDataSource 中使用 InsertParameter,但不知道语法,或者这是否可能:
我是否采取了正确的方法?
iphone - 从 JSON NSDictionary 创建下钻详细信息 UITableView
我很难找到如何做到这一点,
我想在 UITableDetailView(Drill-Down 样式)中显示这个,每个项目都在不同的单元格中。我读过的所有内容都显示了如何在细节上加载单个图像,而不是显示为 UITableView。字典是否必须有“孩子”才能正确加载?这是从 JSON rowsArray 创建 *dict 的第一个视图的代码。
我想我正在寻找的是在FollowingDetailViewController.m 中放置什么以查看*dict 的其余内容,因此在选择一行时,它会加载*dict 的其余部分。
我的 rowsArray 如下所示:
'{ 登录名 = 约翰逊;
成员ID = 39;
名字=克里斯;
年龄 = ;} 等等等等...
谢谢,
// 设置表格和单元格
winforms - 列表视图不会在详细信息视图中呈现项目
我在 WinForms 应用程序中有上述代码。控件直接添加到主窗体中。出于某种原因,当布局设置为详细信息时,它永远不会呈现任何项目或列- 只有滚动条可见。以下代码用于将项目添加到其集合中:
切换到任何其他视图(在运行时或设计时)可以解决此问题。关于为什么会发生这种情况的任何想法?
编辑:撞!或者这是不允许的?