Link to home
Start Free TrialLog in
Avatar of jtrapat1
jtrapat1

asked on

Replace Hyperlink with "asp:Button" Functionality

I need to replace the two attached code snippets with asp:buttons instead of an <a href> tag but still maintain the functionality:

These do 2 simple processes:

1- a hyperlink to close the current window
2- a hyperlink to pass a querystring to another web page url

Can anyone help?

<asp:TableRow runat="server">
                <asp:TableCell ID="TableCell1" HorizontalAlign="left" runat="server">
                <a href="ContactBookForm.aspx?CID=-1">Add New</a>
				</asp:TableCell>
				<asp:TableCell runat="server">
                    <a href="javascript:window.close();">Close Window</a>
				</asp:TableCell>
            </asp:TableRow>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of dabrat
dabrat

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial