mohlamia
04-21-2003, 07:08 AM
Dear All,
I have a problem with adding an onclick action to an aspx.
I am using asp.net in VB and want to add a Client-side redirection to another page when the user clicks on a button. I have tried several ways like
<asp:Button id="Button1" style="Z-INDEX: 107; LEFT: 276px; POSITION: absolute; TOP: 202px" onclick="<%# response.redirect("ListCompany.aspx")%>" Font-Size="XX-Small" Font-Names="Verdana" BackColor="LightSlateGray" ForeColor="White" Height="24px" Width="279px" Text="Company List" BorderStyle="Outset" BorderColor="White" Visible="true"></asp:Button>
and like ...same code above and onclick="document.location = 'search.aspx'"
and like...same code above and onclick="search.aspx"
All of these returns an error....anyone have any idea,
Thanks in advance,
I have a problem with adding an onclick action to an aspx.
I am using asp.net in VB and want to add a Client-side redirection to another page when the user clicks on a button. I have tried several ways like
<asp:Button id="Button1" style="Z-INDEX: 107; LEFT: 276px; POSITION: absolute; TOP: 202px" onclick="<%# response.redirect("ListCompany.aspx")%>" Font-Size="XX-Small" Font-Names="Verdana" BackColor="LightSlateGray" ForeColor="White" Height="24px" Width="279px" Text="Company List" BorderStyle="Outset" BorderColor="White" Visible="true"></asp:Button>
and like ...same code above and onclick="document.location = 'search.aspx'"
and like...same code above and onclick="search.aspx"
All of these returns an error....anyone have any idea,
Thanks in advance,