Ca4nul @ facebook Ca4nul @ Twitter
Forum announcement: $$ Top Contributors Contest (March 2010) - Win Instant extra Cash $$
Welcome Guest Search | Active Topics | Members | Log In | Register

default button in panel not working in firefox Options
seo_guy
Posted: Thursday, July 23, 2009 7:24:17 AM
Rank: Advanced Member
Groups: Member

Joined: 11/26/2007
Posts: 124
Points: 275
Location: UK
Hi guys

i have a panel control that has a default button, it works fine in IE 8, 7 and even 6! but it does not work in firefox and google chome, any ideas? heres my code below.

Code:
<div id="crackHolder">

<asp:Panel ID="Panel1" runat="server" DefaultButton ="LinkButton1">

<div id="crack1"><input id="txtFind" value="Search:" runat ="server" onclick ="emptySearch()"/></div>

<div id="crack"> <asp:LinkButton ID="LinkButton1" runat="server" CssClass="specialLink8">search</asp:LinkButton>

</div>

</asp:Panel>

</div>

And the code behind is below

Protected Sub LinkButton1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LinkButton1.Click

Session("value1") = txtFind.Value

Response.Redirect("Search.aspx")

End Sub



Sponsor
Posted: Thursday, July 23, 2009 7:24:17 AM
Amit
Posted: Thursday, July 23, 2009 7:26:47 AM
Rank: Advanced Member
Groups: Member

Joined: 8/18/2008
Posts: 57
Points: 177
Location: New Delhi, India
Link button is not supported as Panel default button.

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.panel.defaultbutton.aspx

See my answer in this thread for workaround:

http://forums.asp.net/t/1446859.aspx
hightech
Posted: Friday, July 31, 2009 4:55:30 AM
Rank: Advanced Member
Groups: Member

Joined: 9/6/2008
Posts: 61
Points: 183
I agree with Amit, some codes not works in firefox, but in opera and in IE those works.. I feel its because of control panel settings.

Microsoft: "You've got questions. We've got dancing paperclips
Test Management
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

ASPNET Theme created by Boskone (Dan Ferguson)
Powered by Ca4nul.Com
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.
This page was generated in 0.204 seconds.