问题标签 [imagebutton]
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.
c# - 使用 ASP.NET 中的函数设置 imageURL
我以前在中继器中完成过这项任务并且它已经奏效了。但是,我无法在正常的网络表单页面中为我工作。图像显示为断开的链接,并且我在代码隐藏中放置的断点没有被触发。
(在 aspx 文件中)
(代码隐藏)
这是我尝试过的第二种方法,在另一种方法中,我尝试将图像名作为字符串传递,它会以这种方式返回整个链接。还是没有运气!
有什么想法吗?
谢谢!
[编辑] 感谢大家的帮助。最后,在方便的提示之后,我找到了一个递归片段,它的技巧如下:
希望它可以帮助别人。
干杯
asp.net - ASP.NET No postback on asp:ImageButton
I have an ASP page with an asp:DropDownList (with AutoPostBack="true") so that when the user changes it, it reload the appropriate data.
Under that control i have a list of UserControls, that includes a tinymce editor (tied to an asp:TextBox) and an asp:ImageButton to save the data.
When clicking on the ImageButton, the applications send the postback data via ajax to the same page (__EVENTARGUMENT, __EVENTTARGET, etc...). Why does it load that ajax page, and how do i prevent it? I'm updating the value in the DB in the OnClick event handler on the ImageButton, so all I need to do, is get ride of that ajax call.
Any ideas?
android - 堆叠两个 ImageButton
我有两个 ImageButton,我试图将一个堆叠在另一个之上。我基本上想用两个大按钮制作一个屏幕,每个按钮占用 50% 的可用空间。代码如下。这是它产生的布局的捕获http://imgur.com/cQT0W.png我在父级上玩过 layout_gravity 和重力。用 layout_height=fill_parent 设置两个孩子不起作用,也不能将父级的重力设置为 fill_vertical。
android - Android中的图像按钮
谁能告诉我如何调整大小imageButton
以完全适合图像?这是我尝试过的代码,但图像放置在我使用 定位的位置android:scaleType
,但我无法减小imageButton
. 请帮我纠正这个问题。我尝试的代码是:
asp.net - 首次部署,首次加载页面时 ASP.net 图像按钮未显示
我终于让我的网站在我的服务器上运行,它现在可以在http://www.mhn.co上看到,但是当你点击顶部的任何类别时,它会加载专业人士的个人资料,但图像按钮我' m 在配置文件内容上使用类似选项卡不会加载,并且只显示“提交查询”,直到单击,然后加载图像。这是我部署的第一个 asp.net 站点,所以我对它应该如何工作非常不熟悉。服务器正在运行 asp.net 2.0、3.0 和 3.5,而我的站点使用的是 2.0
asp.net - VS 和调试版本之间的图像显示不一致
我有一个 GridView,其中包含三个设置有图像的 Button 列。当我使用 VS 提供的 GUI 工具为图像选择路径时,生成的路径类似于~/Images/myicon.png
并且图像在 VS 设计模式下(有时)显示良好。但是图像不会显示在网站的运行版本(使用 Firefox)上,因为图像位置解析为../Images/myicon.png
. 我可以手动将其更改为Images/myicon.png
,它在网站上运行良好,但在 VS 中却不行。
我如何让他们以同样的方式行事?这些文件路径让我发疯!
android - Android中的间距ImageButtons
你如何间隔 ImageButtons?
使用RelativeLayout,我可以将它们并排放置,但我希望它们之间有一个间隙。如何将按钮放置在屏幕中央和底部?
android - 如何拥有透明的 ImageButton:Android
这就是我试图获得一个透明的 ImageButton 以便将这些按钮放在 SurfaceView 上的原因。但是,只要我在 xml 中包含透明行,Eclipse 就会在项目中给我一个错误。
请帮忙。
android - Android:尝试获取 2x2 图像按钮等时,最好使用什么布局?
我试图让我的布局看起来像这样。我尝试过网格视图、表格布局等,但无法让它看起来正确。我想要这样的东西。
图像按钮图像按钮 2
图像按钮 3 图像按钮 4
图像按钮 5 图像按钮 6
ImageButton6 ImageButton7 ImageButton8(这些是较小的图标)
我似乎无法弄清楚如何让布局与图像按钮一起使用。我应该使用什么布局?如果可能的话,您能否发布 xml 布局的示例代码?
android - Android中使用Transitions的ImageButton
我正在尝试创建一个具有自定义选择器的透明(无按钮背景)ImageButton。我有选择器对按钮工作,但我现在希望选择器可绘制对象相互交叉淡入淡出。我看到了可以用 XML 表示的 TransitionDrawable 对象。有没有办法将它连接到我的选择器中?
下面是在屏幕左下角创建图像按钮的 XML 布局代码。它当前从一个图像转到下一个图像,突然忽略了过渡 XML。
选择器按钮.xml
transition_normal_to_pressed.xml
活动.xml