Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 30th, 2004, 10:33 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default JavaScript Error For Server-Side LinkButton

Hello,

I use Panel controls to navigate through a process within the same page. I had a back button that changes the display (or in some instances navigate to another page via Page.Response.Redirect()). However, when I click the button. I get a javascript error:

'undefined is null or not an object'

Any ideas?

Brian
__________________
Brian
 
Old June 30th, 2004, 10:58 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

What does the source for the button you are clicking look like?
 
Old June 30th, 2004, 01:03 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

<asp:Panel id="pnlMessage" runat="server">

    <asp:LinkButton id="lnkMsgBack" runat="server">Back</asp:LinkButton>
</asp:Panel>

I had one event handler handle three "back" LinkButtons; however, just recently I set CausesValidation = False, and now it works. I did have form validation in one of the panels, and that must of been the problem.

Thanks,

Brian





Similar Threads
Thread Thread Starter Forum Replies Last Post
diff b/w javascript validation & server side valid ashu VS.NET 2002/2003 1 March 27th, 2007 09:30 AM
javascript after server side code k.manisha ASP.NET 1.0 and 1.1 Professional 1 March 12th, 2007 06:28 PM
How to pass javascript variable to server side Andraw Classic ASP Basics 17 January 22nd, 2007 01:05 PM
LinkButton should not show javascript in Statusbar savan_thakkar ASP.NET 1.0 and 1.1 Professional 2 August 27th, 2006 06:25 AM
create server side logfile from javascript senthilkumar Javascript 1 March 22nd, 2006 02:50 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.