简体   繁体   English

如何在ImageButton中看到图像?

[英]How I can see a Image in my ImageButton?

I write a ASP.NET Application for creating a signatur and other stuff. 我编写了一个ASP.NET应用程序,用于创建签名和其他内容。 And I use the AjaxToolkit with the CalenderExtender. 我将AjaxToolkit与CalenderExtender一起使用。 I want if I click on a ImageButton that open the extender and the TextBox get the Data. 我想要单击打开扩展器的ImageButton,然后TextBox获取数据。 It works fine but I don't see the ButtonImage :( >.< 它工作正常,但我看不到ButtonImage :(>。<

Where I can get a Image for my ImageButton and how it works? 在哪里可以获取ImageButton的图像及其工作方式? Here my ASPX Site Code 这是我的ASPX网站代码

 ...
<tr>
                                <td>Abwesenheit von: </td><td>
                                <asp:TextBox ID="txtAbwesenheitVon" runat="server" Enabled="false"></asp:TextBox>
                                <asp:ImageButton ID="imgbtnAbwesenheitVon" runat="server" ToolTip="Abwesenheit von..." PostBackUrl="~/App_Theme/Calender.ico" />
                                <asp:CalendarExtender ID="AbwesenheitVon" runat="server" TargetControlID="txtAbwesenheitVon" 
                                                      Format="dd.MM.yyyy" PopupButtonID="imgbtnAbwesenheitVon"></asp:CalendarExtender>
                                </td>
                                </tr>
    ...

My second Question is. 我的第二个问题是。 Can I use a Label for the textBox, too? 我也可以为文本框使用标签吗?

But I see only this..._-> 但是我只看到这个..._->

在此处输入图片说明

Replace 更换

PostBackUrl="~/App_Theme/Calender.ico"

with

ImageUrl = "~/App_Theme/Calender.ico"

Image.ImageUrl Property Image.ImageUrl属性

使用ImageUrl属性代替PostBackUrl

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我如何将我的imageButton值传递给C#函数 - How can i pass my imagebutton values to c# function 我如何显示图像到ImageButton asp.net C# - How can i display an image to ImageButton asp.net c# 如何将我的新图像的路径作为字符串保存到数据库中,以便在创建新记录后我可以看到我选择的图像? - How to save the path of my new image to the database as a string so that after creating a new record I can see the image that I selected? 如何将ImageButton(其图像和按钮)居中在网页中间? - How do I center the ImageButton ( its a image and a button) in the middle of the webpage? 如果ImageButton是在后面的代码中创建的,如何获取javascript的ImageButton的ID? - How can I get the ID of ImageButton for javascript, if the ImageButton was created in code behind? 如何查看我的程序集的强名称? - How can I see the strong name of my assembly? 如何查看最接近我的清单的时间? - How can I see what time is closest to one is my list? 如何检查数组是否有偶数排列? - How can I check to see if my array has an even permutation? 如何从工具箱中看到我选择的日历日期? - How can I see my choice of day in calender from the toolbox? 如何查看 IronPython 脚本生成的异常? - How can I see what exceptions my IronPython script is generating?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM