Hi, I have make a HyperLink control to a form and use a image to be a button, like the following,
Script Part:
Sub Page_Load(Sender As Object, E as EventArgs)
hlEndDate.NavigateUrl = "Javascript
ickDate('" & txtEndDate.ClientID & "')"
end sub
HTML Part:
<td valign="center">
<asp:HyperLink id="hlEndDate" tabIndex="1" runat="server" ImageUrl="Images\date-picker.gif"></asp:HyperLink>
<asp:TextBox id="txtEndDate" runat="server" Width="80" CssClass="textbox"></asp:TextBox>
<asp:button id="cmdSearch" tabIndex="3" runat="server" Width="70px" ForeColor="White" BackColor="Gray" Font-Bold="True" Font-Names="Verdana" Font-Size="X-Small" Text="Search"></asp:button>
</td>
The problem I found , I cannot align with the controls, and texts in the same cell.
I have tried to used imagebutton. It is good for alignment, as it has property to set. But it will do postback when everytime I click it.
Any solution on this problem?
Script Part:
Sub Page_Load(Sender As Object, E as EventArgs)
hlEndDate.NavigateUrl = "Javascript

end sub
HTML Part:
<td valign="center">
<asp:HyperLink id="hlEndDate" tabIndex="1" runat="server" ImageUrl="Images\date-picker.gif"></asp:HyperLink>
<asp:TextBox id="txtEndDate" runat="server" Width="80" CssClass="textbox"></asp:TextBox>
<asp:button id="cmdSearch" tabIndex="3" runat="server" Width="70px" ForeColor="White" BackColor="Gray" Font-Bold="True" Font-Names="Verdana" Font-Size="X-Small" Text="Search"></asp:button>
</td>
The problem I found , I cannot align with the controls, and texts in the same cell.
I have tried to used imagebutton. It is good for alignment, as it has property to set. But it will do postback when everytime I click it.
Any solution on this problem?