ASP.NET ImageButton PostBackUrl property
Definition and Usage
PostBackUrl property gets or sets the URL when the ImageButton control is clicked to return the target page.
grammar
<asp:ImageButton PostBackUrl="string" runat="server" />
属性 | 描述 |
---|---|
string | 字符串值。规定要回传的目标页面的 URL。默认是空字符串,这会使页面向自身回传。 |
Examples
The following example sets the return URL ImageButton control:
<form runat="server">
Name:<asp:textbox id="TextBox1" runat=Server />
<asp:ImageButton id="Button1" ImageUrl="img.gif"
PostBackUrl="demo_postbackurl.htmlx" runat="Server" />
</form>
Name:<asp:textbox id="TextBox1" runat=Server />
<asp:ImageButton id="Button1" ImageUrl="img.gif"
PostBackUrl="demo_postbackurl.htmlx" runat="Server" />
</form>
The demonstration >>
ImageButton control