I want's to use asp:Button with Images and set there UseSubmitBehavior Property to False so that they cannot behave like a submit button
[I don't want's to use asp:ImageButton as there isn't any UseSubmitBehavior property there]
Any suggestion How Can I achieve it
What I am having a problem is that
I have a Master page on which top area there is a loginStatus control
when ever I enter on a page I get logout
Code:
<body>
<form id="form1" runat="server">
<table align="center" width="1024" cellpadding="0" cellspacing="0">
<tr>
<td colspan="4">
<asp:Image ID="Image1" ImageUrl="~/Images/header.jpg" runat="server" /></td>
</tr>
<tr height="25" align="right" bgcolor="#FFFFFF">
<td valign="middle" align="right" width=90%>
<asp:LinkButton ID="lnkBtnAddCV" runat="server" Text="Add CV" Font-Size="10" CausesValidation="false" OnClick="lnkBtnAddCV_Click" />
<asp:LinkButton ID="lnkBtnViewV" runat="server" Text="View CV" Font-Size="10" CausesValidation="false" OnClick="lnkBtnViewV_Click" />
</td>
<td width=10% align="right">
<asp:LoginStatus ID="lgnStatus" runat="server" LoginText="" LogoutImageUrl="~/Images/logout.jpg"
LogoutPageUrl="~/Default.aspx" LogoutText="Logout" LogoutAction="Redirect" OnLoggedOut="lgnStatus_LoggedOut" /> </td>
</tr>
</table>
<table align="center" width="1024" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td>
<asp:ContentPlaceHolder ID="XXXContentPlaceHolder" runat="server">
</asp:ContentPlaceHolder>
</td>
</tr>
</table>
<table align="center" width="1024" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td>
</td>
</tr>
<tr>
<td height="20" align="center" valign="middle" background="../images/footer.jpg"
class="footer">
©2007 www.abc.com All Rights Reserved</td>
</tr>
</table>
</form>
</body>
</html>
My Page is have a Next button on the top suppose if i remove the loginstatus control from the master page then click on my the vent associated with the next button get fired my content page is [In this page I am adding user control at runtime]
<asp:Content ID="Content1" ContentPlaceHolderID="XXXContentPlaceHolder" runat="Server">
<table bgcolor="#FFFFFF" width="1024" border="0" cellpadding="0" cellspacing="2"
align="center">
<tr>
<td align="left" valign="top">
<table border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"
class="text">
<tr align="center" valign="top">
<td>
<asp:Label ID="lblSaveMessage" runat="server" EnableViewState="false"></asp:Label>
</td>
</tr>
<tr>
<td align="right" valign="middle">
<asp:ImageButton ID="imgBtnNextUpper" ImageUrl="~/Images/button-next.jpg" runat="server"
OnClick="imgBtnNext_Click" />
</td>
</tr>
<tr>
<td align="left" valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="2" runat="server" id="MainTable">
<tr align="left">
<td width="49%" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0" runat="server" id="LeftRow" />
</td>
<td width="1%" align="center" valign="top" style="border-right: 1px solid #C6C5C5;">
</td>
<td width="50%" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0" runat="server" id="RightRow" />
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="right" valign="middle">
<asp:ImageButton ID="imgBtnNextLower" ImageUrl="~/Images/button-next.jpg" runat="server"
OnClick="imgBtnNext_Click" /> </td>
</tr>
</table>
</td>
</tr>
</table>
</asp:Content>
Please help me what can I do to overcome these problems
e.g in one of user control used in the page i have a fileupload control when focus is on Browse and I click I get logout.
I have done some posts but no helpful reply from the forum
http://forums.asp.net/t/1153640.aspx
http://forums.asp.net/t/1153174.aspx