[英]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"
使用ImageUrl属性代替PostBackUrl
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.